Type Alias Word

Source
pub type Word = [BaseElement; 4];
Expand description

A group of four field elements in the Miden base field.

Trait Implementations§

Source§

impl From<&Asset> for Word

Source§

fn from(value: &Asset) -> Self

Converts to this type from the input type.
Source§

impl From<&NoteId> for Word

Source§

fn from(id: &NoteId) -> Self

Converts to this type from the input type.
Source§

impl From<&NoteMetadata> for Word

Source§

fn from(metadata: &NoteMetadata) -> Self

Convert a NoteMetadata into a Word.

The produced layout of the word is documented on the NoteMetadata type.

Source§

impl From<&Nullifier> for Word

Source§

fn from(nullifier: &Nullifier) -> Self

Converts to this type from the input type.
Source§

impl From<&TransactionId> for Word

Source§

fn from(id: &TransactionId) -> Self

Converts to this type from the input type.
Source§

impl From<Asset> for Word

Source§

fn from(asset: Asset) -> Self

Converts to this type from the input type.
Source§

impl From<FungibleAsset> for Word

Source§

fn from(asset: FungibleAsset) -> Self

Converts to this type from the input type.
Source§

impl From<NonFungibleAsset> for Word

Source§

fn from(asset: NonFungibleAsset) -> Self

Converts to this type from the input type.
Source§

impl From<NoteId> for Word

Source§

fn from(id: NoteId) -> Self

Converts to this type from the input type.
Source§

impl From<NoteMetadata> for Word

Source§

fn from(metadata: NoteMetadata) -> Self

Convert a NoteMetadata into a Word.

The produced layout of the word is documented on the NoteMetadata type.

Source§

impl From<Nullifier> for Word

Source§

fn from(nullifier: Nullifier) -> Self

Converts to this type from the input type.
Source§

impl From<TransactionId> for Word

Source§

fn from(id: TransactionId) -> Self

Converts to this type from the input type.