#[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,
padded_inputs: Vec<Felt>,
) -> Self
pub fn compute( serial_num: Word, script_digest: Digest, padded_inputs: Vec<Felt>, ) -> Self
Computes a recipient digest from the provided components.
The padded_inputs must be padded with ZEROs to the next multiple of 8 (i.e. 2-word
aligned). For example, to pass two inputs a and b, use:
vec![a, b, felt!(0), felt!(0), felt!(0), felt!(0), felt!(0), felt!(0)].
§Panics
Panics if padded_inputs.len() is not a multiple of 8.
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