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

Required methods

Returns the record owner.

Returns whether or not the record is dummy.

Returns the record payload.

Returns the birth program id of this record.

Returns the death program id of this record.

Returns the nonce used for the serial number.

Returns the randomness used for the serial number nonce.

Returns the commitment of this record.

Returns the randomness used for the commitment.

Returns the record value.

Implementors