the locking bytecode to encode
the network for which to encode the address (
testnet, or 'copayBCH'), defaults to
an implementation of sha256 (defaults to the internal WASM implementation)
Returns the sha256 hash of the provided input.
To incrementally construct a sha256 hash (e.g. for streaming), use
a Uint8Array to be hashed using sha256
Generated using TypeDoc
Encode a locking bytecode as a Base58Address for a given network.
bytecodematches a standard pattern, it is encoded using the proper address type and returned as a valid Base58Address (string).
bytecodecannot be encoded as an address (i.e. because the pattern is not standard), the resulting AddressContents is returned.
Note, Base58Addresses cannot accept tokens; to accept tokens, use lockingBytecodeToCashAddress with