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

Add AleoSignature2021 linked data signature suite #360

Merged
merged 1 commit into from Feb 25, 2022
Merged

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Nov 29, 2021

This PR defines and implements a new linked data signature suite (proof type and verification method type) using Aleo keypairs and signatures. A partial specification for the suite is added in the Rust docs, which can be seen rendered in the docs preview links below. A verifiable credential using this signature suite is added as a test vector.
This implementation uses snarkVM crates for the signing and verification functions, types, and global static parameters.
A private key representation for Aleo keypairs in JWK (JSON Web Key) format is defined, for local use only. Public key representation is via blockchainAccountId (CAIP-10) which uses an Aleo account address and network id (according to the proposed CAIP ChainAgnostic/CAIPs#84).

The functionality is enabled using a Cargo feature "aleosig". To run tests (with the feature enabled):

cargo test --features=aleosig aleo

This signature suite is intended to work with did:pkh:aleo (#348) as a verifiable credential issuer.

Docs preview

@clehner clehner marked this pull request as ready for review December 3, 2021 16:34
@clehner clehner requested a review from sbihel December 14, 2021 21:17
Copy link
Member

@sbihel sbihel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay

src/aleo.rs Show resolved Hide resolved
- Implement signing and verifying linked data signature with Aleo key
- Enable Aleo account address blockchainAccountId verification
- Implement Aleo JWK generation and account address conversion
@clehner
Copy link
Contributor Author

clehner commented Feb 25, 2022

Squashing for merge...

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

Successfully merging this pull request may close these issues.

None yet

2 participants