index.nct
see ./sha256.nct
see ./value.nct
see ./contracts.nct
see ./tests.nct
use /fmt.Format
use /hash.Hash
use /order.TotalOrder
use /string.String
pub struct Sha256
pub copy struct Sha256Digest
construct Sha256 {
pub noalloc func new(): Self
}
instance Sha256 {
pub noalloc method &+self.update_byte(value: u8): void
pub noalloc method &+self.update(input: &[u8]): void
pub noalloc method self.finish(): Sha256Digest
}
construct Sha256Digest {
pub noalloc func from_bytes(bytes: [u8; 32]): Self
pub noalloc func parse(text: &str): Self?
}
instance Sha256Digest {
impl Format
impl Hash
impl TotalOrder
pub noalloc method &self.bytes(): [u8; 32]
pub method self.to_string(): String
pub noalloc operator (&self == other: &Self): bool
pub noalloc operator (&self < other: &Self): bool
}
pub noalloc func sha256(input: &[u8]): Sha256Digest