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

Commit c6f635e

Browse files
authored
feat: update to bbs 0.3.0 crate
1 parent a45d31d commit c6f635e

File tree

7 files changed

+324
-175
lines changed

7 files changed

+324
-175
lines changed

__tests__/bbsSignature/verifyProof.bbsSignature.spec.ts

+13-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ describe("bbsSignature", () => {
149149
};
150150
const proof = createProof(proofRequest);
151151

152-
const proofMessages = ["BadMessage9"];
153-
const request = {
152+
let proofMessages = ["BadMessage9"];
153+
let request = {
154154
proof,
155155
publicKey: bbsPublicKey,
156156
messageCount: 4,
@@ -160,6 +160,17 @@ describe("bbsSignature", () => {
160160
};
161161

162162
expect(verifyProof(request).verified).toBeFalsy();
163+
164+
proofMessages = ["Message1"];
165+
request = {
166+
proof,
167+
publicKey: bbsPublicKey,
168+
messageCount: 4,
169+
messages: proofMessages,
170+
nonce,
171+
revealed: [0],
172+
};
173+
expect(verifyProof(request).verified).toBeTruthy();
163174
});
164175

165176
describe("blsVerifyProof", () => {

__tests__/bls12381.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* limitations under the License.
1212
*/
1313

14-
import { randomBytes } from "@stablelib/random";
1514
import {
1615
generateBls12381KeyPair,
1716
DEFAULT_BLS12381_PUBLIC_KEY_LENGTH,

native/Cargo.lock

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

native/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ neon-build = "0.4.0"
1414

1515
[dependencies]
1616
arrayref = "0.3.6"
17-
bbs = { version = "0.3.0", git = "https://github.com/mikelodder7/ursa", branch = "master" }
17+
bbs = "0.3.0"
1818
neon = "0.4.0"
1919

2020
[dev-dependencies]

0 commit comments

Comments
 (0)