Struct elements::issuance::ContractHash [−][src]
#[repr(transparent)]pub struct ContractHash(_);
Expand description
The hash of an asset contract.
Implementations
Calculate the contract hash of a JSON contract object.
This method does not perform any validation of the contents of the contract. After basic JSON syntax validation, the object is formatted in a standard way to calculate the hash.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
A hashing engine which bytes can be serialized into. It is expected
to implement the io::Write
trait, and to never return errors under
any conditions. Read more
Flag indicating whether user-visible serializations of this hash
should be backward. For some reason Satoshi decided this should be
true for Sha256dHash
, so here we are. Read more
Produce a hash from the current state of a given engine
Copies a byte slice into a hash object
Constructs a hash from the underlying byte array
Unwraps the hash and returns the underlying byte array
Unwraps the hash and returns a reference to the underlying byte array
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContractHash
impl Send for ContractHash
impl Sync for ContractHash
impl Unpin for ContractHash
impl UnwindSafe for ContractHash
Blanket Implementations
pub fn base32_len(&self) -> usize
pub fn base32_len(&self) -> usize
Calculate the base32 serialized length
Mutably borrows from an owned value. Read more
pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
pub fn from_byte_iter<I>(iter: I) -> Result<T, Error> where
I: Iterator<Item = Result<u8, Error>> + ExactSizeIterator + DoubleEndedIterator,
Produce an object from a byte iterator