Skip to content

Commit

Permalink
Allow Borsh (de)serialization of TxIds.
Browse files Browse the repository at this point in the history
  • Loading branch information
murisi committed Jun 28, 2024
1 parent 71b36be commit 8f35d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion masp_primitives/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub type GrothProofBytes = [u8; GROTH_PROOF_SIZE];
const MASPV5_TX_VERSION: u32 = 2;
const MASPV5_VERSION_GROUP_ID: u32 = 0x26A7270A;

#[derive(Clone, Copy, PartialOrd, Ord, PartialEq, Eq, Hash)]
#[derive(Clone, Copy, PartialOrd, Ord, PartialEq, Eq, Hash, BorshSerialize, BorshDeserialize)]
pub struct TxId([u8; 32]);

memuse::impl_no_dynamic_usage!(TxId);
Expand Down

0 comments on commit 8f35d02

Please sign in to comment.