Skip to content

Issuance fixes and cleanup#249

Open
ConstanceBeguier wants to merge 8 commits into
zsa1from
review_issuance
Open

Issuance fixes and cleanup#249
ConstanceBeguier wants to merge 8 commits into
zsa1from
review_issuance

Conversation

@ConstanceBeguier

Copy link
Copy Markdown
Collaborator

This PR improves issuance correctness by tightening validation logic,
fixing edge cases, and clarifying IssueBundle APIs and documentation.

Main changes:

  • prevent creating and immediately finalizing a new asset without any issue note,
  • allow finalizing an asset that does not yet exist in the IssueBundle,
  • validate that the signing key matches the IssueBundle ik when signing an IssueBundle,
  • enforce a single IssueAction per asset during IssueBundle verification,
  • rename note_commitments to note_cmxs,
  • clean up documentation.

API changes:

  • IssueBundle::new() now returns Result<(IssueBundle<AwaitingNullifier>, AssetBase), Error>
    instead of (IssueBundle<AwaitingNullifier>, AssetBase),
  • IssueBundle::finalize_action() no longer returns Result<(), Error>,
  • renamed IssueBundle::note_commitments() to IssueBundle::note_cmxs().

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.

1 participant