sha1
bitcoinjs-lib / sha1
Function: sha1()
sha1(
a
):Sha1
Defined in: packages/scrypt-ts-btc/src/smart-contract/fns/hashes.ts:64
A SHA or SHA1 hash, which is always 160 bits or 20 bytes long.
See: https://en.wikipedia.org/wiki/SHA-1
Parameters
a
ByteString Data, a.k.a. pre-image, which can be any size.
Returns
The hash in the form of a string.