Skip to content

Commit

Permalink
Clarify consensus crate binding sig error descriptions between Saplin…
Browse files Browse the repository at this point in the history
…g and Orchard
  • Loading branch information
dconnolly committed Jul 1, 2021
1 parent 5c62664 commit 44e95cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zebra-consensus/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ pub enum TransactionError {
Groth16,

#[error(
"joinSplitSig MUST represent a valid signature under joinSplitPubKey of dataToBeSigned"
"Sprout joinSplitSig MUST represent a valid signature under joinSplitPubKey of dataToBeSigned"
)]
Ed25519(#[from] zebra_chain::primitives::ed25519::Error),

#[error("bindingSig MUST represent a valid signature under the transaction binding validating key bvk of SigHash")]
#[error("Sapling bindingSig MUST represent a valid signature under the transaction binding validating key bvk of SigHash")]
RedJubjub(zebra_chain::primitives::redjubjub::Error),

#[error("bindingSig MUST represent a valid signature under the transaction binding validating key bvk of SigHash")]
#[error("Orchard bindingSig MUST represent a valid signature under the transaction binding validating key bvk of SigHash")]
RedPallas(zebra_chain::primitives::redpallas::Error),

// temporary error type until #1186 is fixed
Expand Down

0 comments on commit 44e95cb

Please sign in to comment.