forked_lib library

Classes

Address
Bech32
Bech32 is a dead simple wrapper around a Human Readable Part (HRP) and a bunch of bytes.
Bech32Codec
Bech32Decoder
This class converts a String to a Bech32 class instance.
Bech32Encoder
Bech32Validations
Generic validations for Bech32 standard.
Bip32Type
BtcAddressType
Represents an address type of Bitcoin.
BtcTransferInfo
Coin
ECPair
HDWallet
Checks if you are awesome. Spoiler: you are.
Input
NetworkType
Origin
OriginInput
OriginOutput
Output
OutputBase
P2PKH
P2SH
P2WPKH
Path
PaymentData
Prevout
PSBT
Represents a PSBT(BIP-0174).
TapLeafScript
Transaction
TransactionBuilder
Wallet

Constants

ADVANCED_TRANSACTION_FLAG → const int
ADVANCED_TRANSACTION_MARKER → const int
bech32 → const Bech32Codec
An instance of the default implementation of the Bech32Codec.
charset → const List<String>
DEFAULT_SEQUENCE → const int
generator → const List<int>
MIN_VERSION_NO_TOKENS → const int
PSBT_IN_TAP_BIP32_DERIVATION → const String
PSBT_IN_TAP_INTERNAL_KEY → const String
PSBT_IN_TAP_KEY_SIG → const String
PSBT_IN_TAP_SCRIPT_SIG → const String
separator → const String
SIGHASH_ALL → const int
SIGHASH_ANYONECANPAY → const int
SIGHASH_BITCOINCASHBIP143 → const int
SIGHASH_DEFAULT → const int
SIGHASH_INPUT_MASK → const int
SIGHASH_NONE → const int
SIGHASH_OUTPUT_MASK → const int
SIGHASH_SINGLE → const int

Properties

bitcoin NetworkType
final
BLANK_OUTPUT Output
final
EMPTY_SCRIPT Uint8List
final
EMPTY_WITNESS List<Uint8List>
final
ONE Uint8List
final
testnet NetworkType
final
VALUE_UINT64_MAX List<int>
final
ZERO List<int>
final

Functions

buildByType(String? type, Input input, bool allowIncomplete, NetworkType? network) PaymentData?
getHDPath(String path) List<int>
isCoinbaseHash(Uint8List buffer) bool
isValidOutput(Uint8List data) bool
magicHash(String message, [NetworkType? network]) Uint8List
pubkeyToOutputScript(Uint8List? pubkey, [NetworkType? nw]) Uint8List?
varSliceSize(Uint8List someScript) int