Trait snarkvm_dpc::traits::record::RecordScheme [−][src]
pub trait RecordScheme: Default + FromBytes + ToBytes { type Owner; type Commitment: FromBytes + ToBytes; type CommitmentRandomness; type Payload; type SerialNumberNonce; type SerialNumber: Clone + Eq + Hash + FromBytes + ToBytes; type Value: FromBytes + ToBytes; fn owner(&self) -> &Self::Owner; fn is_dummy(&self) -> bool; fn payload(&self) -> &Self::Payload; fn birth_program_id(&self) -> &[u8]; fn death_program_id(&self) -> &[u8]; fn serial_number_nonce(&self) -> &Self::SerialNumberNonce; fn serial_number_nonce_randomness(&self) -> &Option<[u8; 32]>; fn commitment(&self) -> Self::Commitment; fn commitment_randomness(&self) -> Self::CommitmentRandomness; fn value(&self) -> Self::Value; }
Associated Types
type Commitment: FromBytes + ToBytes
Required methods
fn birth_program_id(&self) -> &[u8]
fn birth_program_id(&self) -> &[u8]
Returns the birth program id of this record.
fn death_program_id(&self) -> &[u8]
fn death_program_id(&self) -> &[u8]
Returns the death program id of this record.
fn serial_number_nonce(&self) -> &Self::SerialNumberNonce
fn serial_number_nonce(&self) -> &Self::SerialNumberNonce
Returns the nonce used for the serial number.
Returns the randomness used for the serial number nonce.
fn commitment(&self) -> Self::Commitment
fn commitment(&self) -> Self::Commitment
Returns the commitment of this record.
fn commitment_randomness(&self) -> Self::CommitmentRandomness
fn commitment_randomness(&self) -> Self::CommitmentRandomness
Returns the randomness used for the commitment.