Skip to content

E2E test for issuance#20

Merged
PaulLaux merged 74 commits intozsa1from
zsa1-issue2-tests-e2e
Oct 20, 2022
Merged

E2E test for issuance#20
PaulLaux merged 74 commits intozsa1from
zsa1-issue2-tests-e2e

Conversation

@alexeykoren
Copy link

@alexeykoren alexeykoren commented Sep 28, 2022

Tests for ZSA issuance and transfer

PaulLaux and others added 30 commits May 12, 2022 12:40
* Added .circleci/config.yml
* Added .circleci/config.yml
Implements the issuer keys as

    IssuerAuthorizingKey -> isk
    IssuerVerifyingKey -> ik

Test vectors generated with zcash_test_vectors repo
* Added NoteType to Notes
* Added NoteType to value commitment derivation
@PaulLaux PaulLaux changed the base branch from zsa1-issue2 to zsa1 September 29, 2022 08:43
Copy link
Collaborator

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

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

Overall good work, added comments required to finalize.

fn verify_bundle(bundle: &Bundle<Authorized, i64>, vk: &VerifyingKey) {
assert!(matches!(bundle.verify_proof(vk), Ok(())));
pub fn verify_bundle(bundle: &Bundle<Authorized, i64>, _vk: &VerifyingKey) {
// TODO uncomment when circuit can work with split flag - assert!(matches!(bundle.verify_proof(vk), Ok(())));
Copy link
Collaborator

Choose a reason for hiding this comment

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

This will prevent proof verification for non ZSA tests as well.
Probably should add a boolean flag for conditional verification and activate for builder.rs test.

@PaulLaux PaulLaux merged commit afaad60 into zsa1 Oct 20, 2022
vivek-arte pushed a commit that referenced this pull request Nov 24, 2022
added tests in `tests/zsa.rs`
PaulLaux pushed a commit that referenced this pull request Dec 6, 2022
added tests in `tests/zsa.rs`
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.

3 participants