Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bbs-dock-example RuntimeError: unreachable #381

Open
razorbohan opened this issue Nov 21, 2023 · 0 comments
Open

bbs-dock-example RuntimeError: unreachable #381

razorbohan opened this issue Nov 21, 2023 · 0 comments

Comments

@razorbohan
Copy link

I'm trying to run bbs example and receiving the following error:

$ npx babel-node example/bbs-dock.js
RuntimeError: unreachable
    at null.<anonymous> (wasm://wasm/00f8a7e6:1:2807247)
    at null.<anonymous> (wasm://wasm/00f8a7e6:1:3925200)
    at null.<anonymous> (wasm://wasm/00f8a7e6:1:3932287)
    at null.<anonymous> (wasm://wasm/00f8a7e6:1:3343026)
    at Object.bbsPlusSignG1 (/Users/razorbohan/Desktop/sdk-master/node_modules/@docknetwork/crypto-wasm-ts/node_modules/@docknetwork/crypto-wasm/lib/dock_crypto_wasm.js:7101:14)
    at module.exports.bbsPlusSignG1 (/Users/razorbohan/Desktop/sdk-master/node_modules/@docknetwork/crypto-wasm-ts/node_modules/@docknetwork/crypto-wasm/lib/bbs_plus_wasm.js:126:17)
    at Function.generate (/Users/razorbohan/Desktop/sdk-master/node_modules/@docknetwork/crypto-wasm-ts/src/bbs-plus/signature.ts:37:30)
    at Object.sign (/Users/razorbohan/Desktop/sdk-master/src/utils/vc/crypto/common/DockCryptoSignature.js:502:47)
    at getSigBytes (/Users/razorbohan/Desktop/sdk-master/src/utils/vc/crypto/common/CustomLinkedDataSignature.js:91:43)
    at Bls12381BBSSignatureDock2022.sign (/Users/razorbohan/Desktop/sdk-master/src/utils/vc/crypto/common/CustomLinkedDataSignature.js:106:36)
    at Bls12381BBSSignatureDock2022.createProof (/Users/razorbohan/Desktop/sdk-master/node_modules/jsonld-signatures/lib/suites/LinkedDataSignature.js:142:24)
    at ProofSet.add (/Users/razorbohan/Desktop/sdk-master/node_modules/jsonld-signatures/lib/ProofSet.js:75:19)
    at Object.sign (/Users/razorbohan/Desktop/sdk-master/node_modules/jsonld-signatures/lib/jsonld-signatures.js:63:12)
    at VerifiableCredential.sign (/Users/razorbohan/Desktop/sdk-master/src/verifiable-credential.js:260:22)
    at signAndVerify (/Users/razorbohan/Desktop/sdk-master/example/bbs-dock.js:107:3)
    at main (/Users/razorbohan/Desktop/sdk-master/example/bbs-dock.js:127:5)
error Command failed with exit code 1.

Steps to reproduce:

  1. Copy master branch
  2. Run yarn
  3. Run yarn bbs-dock-example

Have tried on node v18.18.2 and v16.20.2.

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant