# Recover Key
function recoverKey(digest: Checksum256, sig: Signature): PublicKeyRecover public key from a digest and signature
function assertRecoverKey(digest: Checksum256, sig: Signature, pub: PublicKey): voidThrows if the key recovered the digest and signature does not match the provided public key
# Hash Functions
# SHA-256
function sha256(data: u8[]): Checksum256Hashes the data byte array using SHA-256 to create a checksum
function assertSha256(data: u8[], hash: Checksum256): voidThrows if the digest of the data array does not match the provided checksum
# SHA-512
function sha512(data: u8[]): Checksum512Hashes the data byte array using SHA-512 to create a checksum
function assertSha512(data: u8[], hash: Checksum512): voidThrows if the digest of the data array does not match the provided checksum
# SHA-1
function sha1(data: u8[]): Checksum160Hashes the data byte array using SHA-1 to create a checksum
function assertSha1(data: u8[], hash: Checksum160): voidThrows if the digest of the data array does not match the provided checksum
# RIPEMD-160
function ripemd160(data: u8[]): Checksum160Hashes the data byte array using RIPEMD-160 to create a checksum
function assertRipemd160(data: u8[], hash: Checksum160): voidThrows if the digest of the data array does not match the provided checksum
← Blockchain Time Print →