bitcoin_base_i library
Classes
- BipAddress
- BtcTransaction
- Represents a Bitcoin transaction
- ControlBlock
- ECPrivate
- Represents an ECDSA private key.
- ECPublic
- P2pkAddress
- P2pkhAddress
- P2shAddress
- P2trAddress
- P2wpkhAddress
- P2wshAddress
- Script
- A Script contains just a list of OP_CODES and also knows how to serialize into bytes
- SegwitAddress
- Sequence
- Helps setting up appropriate sequence. Used to provide the sequence to transaction inputs and to scripts.
- TxInput
- A transaction input requires a transaction id of a UTXO and the index of that UTXO.
- TxOutput
- Represents a transaction output.
- TxWitnessInput
- A list of the witness items required to satisfy the locking conditions of a segwit input (aka witness stack).
Enums
Extensions
-
ElementAtOrNullX
on List<
T>
Constants
-
ABSOLUTE_TIMELOCK_SEQUENCE
→ const List<
int> -
DEFAULT_TX_LOCKTIME
→ const List<
int> -
DEFAULT_TX_SEQUENCE
→ const List<
int> -
DEFAULT_TX_VERSION
→ const List<
int> -
EMPTY_TX_SEQUENCE
→ const List<
int> - LEAF_VERSION_TAPSCRIPT → const int
- NEGATIVE_SATOSHI → const int
- P2PKH_ADDRESS → const String
- P2SH_ADDRESS → const String
- P2TR_ADDRESS_V1 → const String
- P2WPKH_ADDRESS_V0 → const String
- P2WSH_ADDRESS_V0 → const String
-
REPLACE_BY_FEE_SEQUENCE
→ const List<
int> - SATOSHIS_PER_BITCOIN → const int
- SIGHASH_ALL → const int
- SIGHASH_ANYONECANPAY → const int
- SIGHASH_NONE → const int
- SIGHASH_SINGLE → const int
- TAPROOT_SIGHASH_ALL → const int
- TYPE_ABSOLUTE_TIMELOCK → const int
- TYPE_RELATIVE_TIMELOCK → const int
- TYPE_REPLACE_BY_FEE → const int
Functions
-
doubleHash(
Uint8List buffer) → Uint8List -
doubleSh256(
Uint8List value) → Uint8List -
generateRandom(
{int size = 32}) → Uint8List -
hash160(
Uint8List buffer) → Uint8List -
hmacSHA512(
Uint8List key, Uint8List data) → Uint8List -
pbkdfDeriveDigest(
String mnemonic, String salt) → Uint8List -
singleHash(
Uint8List buffer) → Uint8List -
taggedHash(
Uint8List data, String tag) → Uint8List