WalletUtility class abstract

Represents common utility functions for wallet.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareUint8List(Uint8List list1, Uint8List list2) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

aggregatePublicKey(List<String> publicKeyList, {bool isXOnly = true}) Uint8List
bitcoinToSatoshi(double bitcoin) int
부동 소숫점 연산 시 오차가 발생할 수 있으므로 Decimal이용
estimateVirtualByte(AddressType addressType, int numberOfInputs, int numberOfOutputs, {int? requiredSignature, int? totalSigner}) double
getAccountIndexFromDerivationPath(String derivationPath) int
getDerivationPath(AddressType addressType, int accountIndex) String
Get the derivation path for the given address type and account index.
isChangeFromDerivationPath(String derivationPath) bool
isInMnemonicWordList(String word) bool
Check if the given mnemonic word is in the word list.
satoshiToBitcoin(int satoshi) double
validateAddress(String address) bool
Check if the given address is valid.
validateDerivationPath(String derivationPath) bool
validateMnemonic(Uint8List mnemonic) bool
Check if the given mnemonic is valid.