#[repr(transparent)]pub struct Recipient {
pub inner: Word,
}Fields§
§inner: WordImplementations§
Source§impl Recipient
impl Recipient
Sourcepub fn compute(
serial_num: Word,
script_digest: Digest,
inputs: Vec<Felt>,
) -> Self
pub fn compute( serial_num: Word, script_digest: Digest, inputs: Vec<Felt>, ) -> Self
Computes a recipient digest from the provided components.
This matches the Miden protocol note recipient digest:
hash(hash(hash(serial_num, [0; 4]), script_root), inputs_commitment).
Where inputs_commitment is the RPO256 hash of the provided inputs.
Trait Implementations§
impl Eq for Recipient
impl StructuralPartialEq for Recipient
Auto Trait Implementations§
impl Freeze for Recipient
impl RefUnwindSafe for Recipient
impl Send for Recipient
impl Sync for Recipient
impl Unpin for Recipient
impl UnwindSafe for Recipient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more