Struct lightning_invoice::Sha256
source · pub struct Sha256(pub Hash);
Expand description
SHA-256 hash
Tuple Fields§
§0: Hash
(C-not exported) as the native hash types are not currently mapped
Trait Implementations§
source§impl Base32Len for Sha256
impl Base32Len for Sha256
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl FromBase32 for Sha256
impl FromBase32 for Sha256
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
source§fn from_base32(field_data: &[u5]) -> Result<Sha256, ParseError>
fn from_base32(field_data: &[u5]) -> Result<Sha256, ParseError>
Convert a base32 slice to
Self
.