defichaindart library
Classes
- Address
- Bip32Type
- ECPair
- HDWallet
- Checks if you are awesome. Spoiler: you are.
- Input
- NetworkType
- Output
- OutputBase
- P2PKH
- P2PKHData
- P2SH
- P2WPKH
- PaymentData
- Transaction
- TransactionBuilder
- Wallet
Constants
- ADVANCED_TRANSACTION_FLAG → const int
- ADVANCED_TRANSACTION_MARKER → const int
- DEFAULT_SEQUENCE → const int
- MIN_VERSION_NO_TOKENS → const int
- SERIALIZE_TRANSACTION_NO_TOKENS → const int
- SERIALIZE_TRANSACTION_NO_WITNESS → const int
- SIGHASH_ALL → const int
- SIGHASH_ANYONECANPAY → const int
- SIGHASH_NONE → const int
- SIGHASH_SINGLE → const int
Properties
- bitcoin → NetworkType
-
final
- BLANK_OUTPUT → Output
-
final
- defichain → NetworkType
-
final
- defichain_regtest → NetworkType
-
final
- defichain_testnet → NetworkType
-
final
- EMPTY_SCRIPT → Uint8List
-
final
-
EMPTY_WITNESS
→ List<
Uint8List> -
final
-
ONE
→ List<
int> -
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? -
entropyToMnemonic(
String entropyString) → String -
generateMnemonic(
{int strength = 128, RandomBytes randomBytes = _randomBytes}) → String -
isCoinbaseHash(
Uint8List buffer) → bool -
isValidOutput(
Uint8List data) → bool -
magicHash(
String message, [NetworkType? network]) → Uint8List -
mnemonicToEntropy(
dynamic mnemonic) → String -
mnemonicToSeed(
String mnemonic, {String passphrase = ""}) → Uint8List -
mnemonicToSeedHex(
String mnemonic, {String passphrase = ""}) → String -
pubkeyToOutputScript(
Uint8List? pubkey, [NetworkType? nw]) → Uint8List? -
validateMnemonic(
String mnemonic) → bool -
varSliceSize(
Uint8List someScript) → int
Typedefs
- RandomBytes = Uint8List Function(int size)