Skip to content

Zsa WIP#356

Closed
PaulLaux wants to merge 65 commits intozcash:mainfrom
QED-it:zsa1-issue2
Closed

Zsa WIP#356
PaulLaux wants to merge 65 commits intozcash:mainfrom
QED-it:zsa1-issue2

Conversation

@PaulLaux
Copy link

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
* Added .circleci/config.yml
// Commit to non-ZEC notes as per the ZSA protocol.
// Append the note type to the Orchard note encoding.
let type_bits = BitArray::<_, Lsb0>::new(note_type.to_bytes());
let zsa_note_bits = zec_note_bits.chain(type_bits.iter().by_vals());
Copy link
Contributor

@daira daira Sep 10, 2022

Choose a reason for hiding this comment

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

If we decide to extend values for ZSAs to 128 bits, this is where the extra high-order bits will be committed.

rcm: NoteCommitTrapdoor,
) -> CtOption<Self> {
let domain = sinsemilla::CommitDomain::new(personalization);
domain.commit(bits, &rcm.0).map(NoteCommitment)
Copy link
Contributor

Choose a reason for hiding this comment

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

If we want this to be constant-time, it will need to also take the maximum number of bits so that it can always do that much computation.

PaulLaux and others added 7 commits September 11, 2022 11:22
+ Updated test bsk_consistent_with_bvk to verify mixed note types.
+ Added NoteType support to the builder and the bundle.
+ added split_flag to SpentInfo and as input to the Circuit (currently commented out)
+ added conditional cv_sum calculation (currently commented out)
+ added padding to actions
Unit and property tests for issue bundle
Commitments for issuance
PaulLaux added a commit to QED-it/orchard that referenced this pull request Oct 26, 2022
PaulLaux added a commit to QED-it/orchard that referenced this pull request Oct 26, 2022
* fixes and suggestions

* changed "issuer" to "issuance" as per zcash#356 (comment)

* terminology fixes

* updated naming
PaulLaux added a commit to QED-it/orchard that referenced this pull request Oct 27, 2022
PaulLaux added a commit to QED-it/orchard that referenced this pull request Oct 27, 2022
* rename 2 note_type -> asset as per  zcash#356 (comment)

* added a dedicated type for "IssuanceAuth"

* disabled codecov github action due to bad behavior. 

* extracted "is_asset_desc_of_valid_size()" into asset_id.rs
@PaulLaux
Copy link
Author

We addressed most issues in QED-it#23 and QED-it#24 the rest are tagged as in-progress.

Closing in favor of the updated #364.

@PaulLaux PaulLaux closed this Oct 27, 2022
vivek-arte pushed a commit to QED-it/orchard that referenced this pull request Nov 24, 2022
* fixes and suggestions

* changed "issuer" to "issuance" as per zcash#356 (comment)

* terminology fixes

* updated naming
vivek-arte pushed a commit to QED-it/orchard that referenced this pull request Nov 24, 2022
* rename 2 note_type -> asset as per  zcash#356 (comment)

* added a dedicated type for "IssuanceAuth"

* disabled codecov github action due to bad behavior.

* extracted "is_asset_desc_of_valid_size()" into asset_id.rs
PaulLaux added a commit to QED-it/orchard that referenced this pull request Dec 6, 2022
* fixes and suggestions

* changed "issuer" to "issuance" as per zcash#356 (comment)

* terminology fixes

* updated naming
PaulLaux added a commit to QED-it/orchard that referenced this pull request Dec 6, 2022
* rename 2 note_type -> asset as per  zcash#356 (comment)

* added a dedicated type for "IssuanceAuth"

* disabled codecov github action due to bad behavior. 

* extracted "is_asset_desc_of_valid_size()" into asset_id.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.

5 participants