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

Updated to draft04 #29

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

TypeScript reference implementation for the [BBS signature scheme](https://github.com/decentralized-identity/bbs-signature). The goal is to help understand and verify the specification. This is NOT a production-ready implementation; testing is minimal and no effort is made to optimize and protect against specialized attacks (e.g., side-channel resistance).

This project aims to keep up to date with the [latest specification](https://identity.foundation/bbs-signature/draft-looker-cfrg-bbs-signatures.html), but may be behind since the specification changes often; the current implementation matches the *10 July 2023* version of the specification, matching the [draft-irtf-cfrg-bbs-signatures-03](https://datatracker.ietf.org/doc/draft-irtf-cfrg-bbs-signatures/03/) version submitted to the CFRG.
This project aims to keep up to date with the [latest specification](https://identity.foundation/bbs-signature/draft-looker-cfrg-bbs-signatures.html), but may be behind since the specification changes often; the current implementation matches the *23 October 2023* version of the specification, matching the [draft-irtf-cfrg-bbs-signatures-04](https://datatracker.ietf.org/doc/draft-irtf-cfrg-bbs-signatures/04/) version submitted to the CFRG.

Given the rapid evolution of the BBS scheme, there might be inconsistencies between the specification and the code; please open issues or file PRs if you find any!

Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Christian Paquin",
"license": "MIT",
"dependencies": {
"@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1"
"@noble/curves": "^1.2.0",
"@noble/hashes": "^1.3.2"
},
"devDependencies": {
"@types/jest": "^27.5.0",
Expand Down
7 changes: 4 additions & 3 deletions src/bbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class BBS {
}

//
// 3.3 Key Generation Operations
// 3.4 Key Generation Operations
//

// https://identity.foundation/bbs-signature/draft-irtf-cfrg-bbs-signatures.html#name-secret-key
Expand All @@ -62,7 +62,8 @@ export class BBS {
}

//
// 3.4 Core Operations
// 3.6. Core Operations (the functions implement both the BBS interface
// and the core operations)
//

// https://identity.foundation/bbs-signature/draft-irtf-cfrg-bbs-signatures.html#name-signature-generation-sign
Expand Down Expand Up @@ -308,7 +309,7 @@ export class BBS {
}

//
// 4.7 Serialization
// 4.2.4 Serialization
//

private serializeInputToBytes(data: SerializeInput): Uint8Array {
Expand Down