ravencoin library Null safety

The Ravencoin library is similar to the Bitcoin library (bitcoin_flutter) and follows most of the same patterns.

Classes

Address
Bip32Type
ECPair
HDWallet
Input
KPWallet
NetworkType
Output
P2PKH
P2PKHData
P2WPKH
PaymentData
Transaction
TransactionBuilder
WalletBase

Constants

ADVANCED_TRANSACTION_FLAG → const int
0x01
ADVANCED_TRANSACTION_MARKER → const int
0x00
bitcoinMainnet → const NetworkType
NetworkType(messagePrefix: '\x18Bitcoin Signed Message:\n', bech32: 'bc', bip32: Bip32Type(public: 0x0488b21e, private: 0x0488ade4), pubKeyHash: 0x00, scriptHash: 0x05, wif: 0x80)
bitcoinNetworks → const Map<int, NetworkType>
{0x80 : bitcoinMainnet, 0xef : bitcoinTestnet}
bitcoinTestnet → const NetworkType
NetworkType(messagePrefix: '\x18Bitcoin Signed Message:\n', bech32: 'tb', bip32: Bip32Type(public: 0x043587cf, private: 0x04358394), pubKeyHash: 0x6f, scriptHash: 0xc4, wif: 0xef)
DEFAULT_SEQUENCE → const int
0xffffffff
mainnet → const NetworkType
NetworkType(messagePrefix: '\x16Raven Signed Message:\n', bech32: 'rc', bip32: Bip32Type(public: 0x0488b21e, private: 0x0488ade4), pubKeyHash: 0x3c, scriptHash: 0x7a, wif: 0x80)
networks → const Map<int, NetworkType>
{0x80 : mainnet, 0xef : testnet}
SIGHASH_ALL → const int
0x01
SIGHASH_ANYONECANPAY → const int
0x80
SIGHASH_NONE → const int
0x02
SIGHASH_SINGLE → const int
0x03
testnet → const NetworkType
NetworkType(messagePrefix: '\x16Raven Signed Message:\n', bech32: 'tr', bip32: Bip32Type(public: 0x043587cf, private: 0x04358394), pubKeyHash: 0x6f, scriptHash: 0xc4, wif: 0xef)

Properties

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

Functions

isCoinbaseHash(Uint8List buffer) bool
isP2PKHInput(dynamic script) bool
isP2PKHOutput(dynamic script) bool
isValidOutput(Uint8List data) → dynamic
pubkeyToOutputScript(Uint8List? pubkey, [NetworkType network = mainnet]) Uint8List?
varSliceSize(Uint8List someScript) int