Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Wasm exemplar (#141)
Browse files Browse the repository at this point in the history
* exemplar wip

* gitignore

* updated

* add dotenv

* updates
  • Loading branch information
nitro-neal authored Oct 17, 2024
1 parent 2e56ab6 commit 83d762b
Show file tree
Hide file tree
Showing 13 changed files with 6,501 additions and 146 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ dist/
pkg/
bound/typescript/src/wasm/generated.js
bound/typescript/src/wasm/generated.d.ts
bound/typescript/tests/compiled
bound/typescript/tests/compiled
bound/typescript/node_modules/
examples/hosted-wallet-ts/node_modules/
4 changes: 4 additions & 0 deletions examples/hosted-wallet-ts/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PFI_PORTABLE_DID='{"uri":"did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y","document":{"id":"did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y","verificationMethod":[{"id":"did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y#0","type":"JsonWebKey","controller":"did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y","publicKeyJwk":{"alg":"Ed25519","kty":"OKP","crv":"Ed25519","x":"BYEFUF5bxXrwwuKUiyamOwYck_pDj4C3OOo_nYNWyzQ"}}],"authentication":["did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y#0"],"assertionMethod":["did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y#0"],"capabilityInvocation":["did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y#0"],"capabilityDelegation":["did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y#0"],"service":[{"id":"did:dht:ysyokwn6mxnzihgnhkkesjig8cdb3r94eq8abp3a7e935y4s3c4y#pfi","type":"PFI","serviceEndpoint":["http://localhost:8082"]}]},"privateKeys":[{"alg":"Ed25519","kty":"OKP","crv":"Ed25519","d":"EBvZ0Uw1MpddCT5Nqiyu1KBOAYQXvQxkXmInSVkAkzc","x":"BYEFUF5bxXrwwuKUiyamOwYck_pDj4C3OOo_nYNWyzQ"}]}'
HOSTED_WALLET_PORTABLE_DID_JSON='{"uri":"did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy","document":{"id":"did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy","verificationMethod":[{"id":"did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy#0","type":"JsonWebKey","controller":"did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy","publicKeyJwk":{"crv":"Ed25519","kty":"OKP","x":"kW2-CfY0XmGTVLurk7BJ14Mqc4L-oJpD3jH5ZmwxyUw","kid":"ezoEr4cxqaYa9eOA3YkvCL1kw9yUuCYl3KMKO79sIbI","alg":"EdDSA"}}],"authentication":["did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy#0"],"assertionMethod":["did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy#0"],"capabilityDelegation":["did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy#0"],"capabilityInvocation":["did:dht:1fs5hnxsgtxgdr4wzqi38cnj46b1whhn94ojwo66g8hsc5bt3fgy#0"]},"privateKeys":[{"crv":"Ed25519","d":"jVOdpSIN-DhddW_XVnDipukuzu6-8zieXQtkECZYJ04","kty":"OKP","x":"kW2-CfY0XmGTVLurk7BJ14Mqc4L-oJpD3jH5ZmwxyUw","kid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