If true
, the additional isStandard
validations will be
enabled. Transactions that fail these rules are often called "non-standard"
and can technically be included by miners in valid blocks, but most network
nodes will refuse to relay them. (Default: true
)
a Ripemd160 implementation
Returns the ripemd160 hash of the provided input.
To incrementally construct a ripemd160 hash (e.g. for streaming), use
init
, update
, and final
.
a Uint8Array to be hashed using ripemd160
a Secp256k1 implementation
Verify a DER-encoded ECDSA signature
using the provided publicKey
and
messageHash
. This method also returns false if the signature is not in
normalized lower-S form.
a DER-encoded ECDSA signature to verify, max 72 bytes
a public key, in either compressed (33-byte) or uncompressed (65-byte) format
the 32-byte message hash signed by the signature
Verify a Secp256k1 EC-Schnorr-SHA256 signature (Bitcoin Cash construction).
a 64-byte schnorr signature to verify
a public key, in either compressed (33-byte) or uncompressed (65-byte) format
the 32-byte message hash signed by the signature
a Sha1 implementation
Returns the sha1 hash of the provided input.
To incrementally construct a sha1 hash (e.g. for streaming), use init
,
update
, and final
.
a Uint8Array to be hashed using sha1
a Sha256 implementation
Returns the sha256 hash of the provided input.
To incrementally construct a sha256 hash (e.g. for streaming), use init
,
update
, and final
.
a Uint8Array to be hashed using sha256
Generated using TypeDoc
create an instance of the BCH 2023 virtual machine instruction set.