Reads serialized data from a Uint8List. Throws an OutOfData exception if
there is not enough data to read. If there is an error, the offset may be
different than before.
An ECDSARecoverableSignature is similar to an ECDSASignature but
contains an additional byte that encodes a "recid" and compression flag that
allows for the public key to be recovered from the message hash and
signature.
An input for a Pay-to-Public-Key-Hash output (P2PKH). This contains the
public key that should match the hash in the associated output. It is either
signed or unsigned and the addSignature method can be used to add a signature.
An input for a Pay-to-Script-Hash output (P2SH) with a multisig
redeemScript and any number of required signatures that may be provided with
replaceSignatures.
An input for a Pay-to-Witness-Public-Key-Hash output (P2WPKH). This
contains the public key that should match the hash in the associated output.
It is either signed or unsigned and the addSignature method can be used to
add a signature. Signature and public key data is stored in the witness
data.
Pay-to-Witness-Script-Hash program taking a 32-byte script hash for a redeem
script whereby the redeem script and other push data is to be provided as
witness data.
An interface for programs that wrap a Script with associated
functionality. This is seperated from the Script class to present
high-level abstractions.
A transaction input without any associated witness data that acts as the
base for all other inputs as all inputs include a outpoint, script and
sequence number.
Encapsulates the signature hash type to be used for an input signature.
Signatures may sign different output and inputs to allow for transaction
modifications. To sign an entire transaction the all constructor should be
used.
Encapsulates a ECPrivateKey and version that can be encoded or decoded in
the Wallet Import Format (WIF). toString can be used to obtain the encoded
WIF string.
Classes that use this mixin are serializable to a Writer via write and
return cached bytes via toBytes. These classes should be immutable as the
bytes are written to only once.
Decodes a checksumed base58 string. This will throw a InvalidBase58
exception if the base58 encoding is invalid, or InvalidBase58Checksum if the
checksum is wrong.
Converts data from "from" bits to "to" bits with optional padding
(pad). Returns the new data or null if conversion was not possible.
Used to convert to and from the 5-bit words for bech32.