sha256
bitcoinjs-lib / sha256
Function: sha256()
sha256(
a
):Sha256
Defined in: packages/scrypt-ts-btc/src/smart-contract/fns/hashes.ts:34
A SHA256 hash, which is always 256 bits or 32 bytes long.
See: https://www.movable-type.co.uk/scripts/sha256.html
Parameters
a
ByteString Data, a.k.a. pre-image, which can be any size.
Returns
The hash in the form of a string.