Skip to main content

StateHash

Type Alias StateHash 

Source
pub type StateHash = Base58CheckOfBinProt<DataHashLibStateHashStableV1, Versioned<DataHashLibStateHashStableV1, 1>, { crate::b58version::STATE_HASH }>;

Aliased Type§

pub struct StateHash(DataHashLibStateHashStableV1, PhantomData<Versioned<DataHashLibStateHashStableV1, 1>>);

Tuple Fields§

§0: DataHashLibStateHashStableV1§1: PhantomData<Versioned<DataHashLibStateHashStableV1, 1>>

Implementations§

Source§

impl StateHash

Source

pub fn from_fp(fp: Fp) -> Self

Source

pub fn try_from_hashes( pred_state_hash: &StateHash, body_hash: &MinaBaseStateBodyHashStableV1, ) -> Result<Self, InvalidBigInt>

Source§

impl StateHash

Source

pub fn zero() -> Self

Trait Implementations§

Source§

impl PartialSchema for StateHash

Source§

fn schema() -> RefOr<Schema>

Return ref or schema of implementing type that can then be used to construct combined schemas.
Source§

impl ToSchema for StateHash

Source§

fn name() -> Cow<'static, str>

Return name of the schema. Read more
§

fn schemas(schemas: &mut Vec<(String, RefOr<Schema>)>)

Implement reference [utoipa::openapi::schema::Schema]s for this type. Read more