-
Notifications
You must be signed in to change notification settings - Fork 61
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
Data Integrity bbs-2023
Cryptosuite
#550
Conversation
3de118d
to
86ba42b
Compare
a64ee50
to
d18601b
Compare
c33c39f
to
ddcf958
Compare
d18601b
to
d760bd6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not added Bbs2023 to the AnySuite enum, as there is no generic interface for Data-Integrity selective disclosure suites yet.
Do you plan to do it in this PR?
Otherwise, something funky happened with Github automatic replacement of the base branch. You might need to re-open the PR because the branch itself looks good, and this is too messy to be reviewed
crates/dids/methods/key/src/lib.rs
Outdated
ssi_multicodec::ED25519_PUB, | ||
¶ms.public_key.0, | ||
) | ||
.into_bytes(), | ||
), | ||
"Bls12381G2" => multibase::encode( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In hindsight, Bls12381G2
should be of key type EC
because it uses x,y,d coordinates. Maybe this is relevant:
52498cb
to
9ba677d
Compare
Now testing...
Unification of the signature options and verification options interface.
…o SD suites. Add `DataIntegrity::select` method.
9ba677d
to
8ddd4d6
Compare
I've added a let derived_vc = vc.select(params, options).await?; |
This PR implements the
bbs-2023
cryptosuite defined by Data Integrity BBS Cryptosuites v1.0. It is implemented through theBbs2023
type inssi-data-integrity-suites
library. Thebbs
feature must be enabled.This is based on the
zkryptium
library providing a Rust implementation of the BBS Signature Scheme. Only thebaseline
feature option is supported for now. Other options seem not stabilized yet and use features outside of the BBS Signature Scheme not provided byzkryptium
. Other implementations such as Digital Bazaar's only provide the baseline option as well.I have not addedBbs2023
to theAnySuite
enum, as there is no generic interface for Data-Integrity selective disclosure suites yet.