utils library
Properties
- dogecoinMainnet → NetworkType
-
dogecoin mainnet
final
- dogecoinTestnet → NetworkType
-
dogecoin testnet
final
Functions
-
aptosAddressFromPubKey(
String pubKey) → String - Get aptos address
-
bigIntToHex(
BigInt input) → String - Bigint to hex string
-
decryptMsg(
String encrypted, String password) → Future< String> - Decrypt
-
encodeEIP1559ToRlp(
UnsignedTransaction transaction, int chainId, [Signature? signature]) → List - Rpc encoder for EIP1559 transaction.
-
encodeToRlp(
UnsignedTransaction transaction, [Signature? signature]) → List - Rlp encoder for legacy transaction.
-
encryptMsg(
String msg, String password) → Future< String> - Encrypt
-
getDeviceName(
) → Future< String> - Get device name
- Get friend share
-
hashMessage(
Uint8List message) → Uint8List - Keccak hash
- Convert keypair to share
-
listToHex(
List< int> bytes) → String - List to hex
-
padUnit8ListTo32(
Uint8List data) → Uint8List - Pad Unit8 To 32
-
parseUnit(
String amount, {int decimals = 18}) → BigInt - Parse unit
- Save friend share
- Convert share to keypair
-
toWif(
String key, {bool isBtc = true}) → String - To WIF
-
uint8ListFromList(
List< int> data) → Uint8List - Uint8ListFromList
-
uit8Message(
Uint8List message) → Uint8List - Keccak hash
-
validPrivateKey(
String privateKey) → bool - Check private key format