-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2135 from input-output-hk/ensemble/2091/client-wa…
…sm-multiple-targets Client wasm multiple targets
- Loading branch information
Showing
42 changed files
with
3,411 additions
and
2,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.PHONY: clean install upgrade | ||
|
||
package-lock.json: | ||
npm install | ||
|
||
install: package-lock.json | ||
|
||
clean: | ||
rm -rf build | ||
rm package-lock.json || true | ||
|
||
upgrade: clean install | ||
npm install \ | ||
prettier@latest \ | ||
|
||
|
||
lint: | ||
npm run pretty:check | ||
|
||
format: | ||
npm run pretty:write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Mithril client wasm library example: Node.js | ||
|
||
## Description | ||
|
||
This example shows how to implement a Mithril client and use its features in a Node.js environment. | ||
|
||
In this example, the client interacts by default with a real aggregator on the network `testing-sanchonet` to: | ||
|
||
- Mithril Stake Distribution: | ||
- list the available Mithril Stake Distributions | ||
- verify the latest Mithril Stake Distribution | ||
- verify a certificate chain | ||
- compute a message | ||
- verify that the certificate signs the computed message | ||
- Cardano transactions | ||
- get proof of inclusion for a known set of Cardano transactions | ||
- verify a certificate chain | ||
- compute a message for | ||
- verify that the certificate signs the computed message | ||
|
||
## Build and run the example | ||
|
||
First you need to compile the Mithril client Wasm library: | ||
|
||
```bash | ||
make -C ../../mithril-client-wasm build | ||
``` | ||
|
||
Then you can run the example: | ||
|
||
```bash | ||
npm install | ||
npm run start | ||
``` | ||
|
||
## Links | ||
|
||
- **Developer documentation**: https://mithril.network/doc/manual/develop/nodes/mithril-client-library-wasm | ||
- **NPM**: https://www.npmjs.com/package/@mithril-dev/mithril-client-wasm |
Oops, something went wrong.