Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 3ff8c0f

Browse files
authored
feat: update sample (#112)
1 parent 7ada96c commit 3ff8c0f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

sample/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"repository": "https://github.com/mattrglobal/node-bbs-signatures",
77
"author": "Mattr Limited",
8-
"license": "Apache 2.0",
8+
"license": "Apache-2",
99
"private": false,
1010
"scripts": {
1111
"demo": "ts-node ./src/index.ts"
@@ -16,6 +16,6 @@
1616
"typescript": "3.7.5"
1717
},
1818
"dependencies": {
19-
"@mattrglobal/node-bbs-signatures": "0.5.0"
19+
"@mattrglobal/node-bbs-signatures": "0.8.0"
2020
}
2121
}

sample/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ const main = (): void => {
6464
const isProofVerified = blsVerifyProof({
6565
proof,
6666
publicKey: keyPair.publicKey,
67-
messageCount: messages.length,
6867
messages: messages.slice(0, 1),
6968
nonce: "nonce",
70-
revealed: [0],
7169
});
7270

7371
const isProofVerifiedString = JSON.stringify(isProofVerified);

sample/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# yarn lockfile v1
33

44

5-
"@mattrglobal/node-bbs-signatures@0.5.0":
6-
version "0.5.0"
7-
resolved "https://registry.npmjs.org/@mattrglobal/node-bbs-signatures/-/node-bbs-signatures-0.5.0.tgz#108ea921a2bf83f9d200fcce8a9e81a527b290ad"
8-
integrity sha512-u37BZmd+cWl3SJf6UhpN1DShD9UsOL5GdGoe2vdoGfJfV4Csa0q0s55oHwwT95RoACCUN5AAmzeapQjZAx0T7A==
5+
"@mattrglobal/node-bbs-signatures@0.8.0":
6+
version "0.8.0"
7+
resolved "https://registry.npmjs.org/@mattrglobal/node-bbs-signatures/-/node-bbs-signatures-0.8.0.tgz#cc09b9da4db0b298e35f9313c4dcc9c69ab1f06f"
8+
integrity sha512-jIPNlexenUXiqmISyo2+LV6hfGHFJAbex9BUcj+HZxdUPdmca30jG5x06TvIC/TuF1AiSIqJ5YsqTLBWA4X3Ig==
99
dependencies:
1010
neon-cli "0.4.0"
1111
node-pre-gyp "0.14.0"

0 commit comments

Comments
 (0)