wallet/wallet library

Classes

BaseAccount
BaseSigner<T extends BaseAccount, R extends SignablePayload, E>
CombineSignedTransactionResult
ECKeys
ICPAccount
ICPSigner
PemFile
RosettaApi
Manages Rosetta API calls.
RosettaTransaction
Contains information about a transaction.
Secp256k1PublicKey
Signer<T extends SignablePayload, R>

Enums

CurveType
KeyType
SignType
SourceType
TransactionErrorType
Types of Rosetta API errors.

Constants

ICP_PATH → const String
tweetNaclSignedPubLength → const int

Properties

DOMAIN_IC_REQUEST Uint8List
final
params → ECCurve_secp256k1
final

Functions

combine(ConstructionCombineRequestPart req) CombineSignedTransactionResult
crc32Add(Uint8List buf) Uint8List
Prepend a big-endian CRC32 checksum. @param {Buffer} buf @returns {Buffer}
crc32Del(Uint8List buf) Uint8List
Given an account address with a prepended big-endian CRC32 checksum, verify the checksum and remove it. @param {Buffer} buf @returns {Buffer}
ecTransferCombine(Secp256k1KeyIdentity identity, SignablePayload payloadsRes) Future<CombineSignedTransactionResult>
ed25519KeyIdentityFromPem(String pem) Future<Ed25519KeyIdentity>
fromSeed(Uint8List seed, {int index = 0}) ECKeys
generateMnemonic({int bitLength = 128}) String
getAccountIdFromDerKey(Uint8List der) Uint8List
getAccountIdFromEd25519PublicKey(Uint8List publicKey) Uint8List
getAccountIdFromPrincipal(Principal principal) Uint8List
getAccountIdFromPrincipalID(String id) Uint8List
getAccountIdFromRawPublicKey(Uint8List publicKey) Uint8List
getECKeys(String mnemonic, {String passphase = "", int index = 0}) ECKeys
getPemFile(String path) Future<PemFile>
getPrincipalFromECPublicKey(Uint8List publicKey) String
getPublicFromPrivateKey(Uint8List privateKey, [bool compress = false]) Uint8List?
getPublicFromPrivateKeyBigInt(BigInt bigint, [bool compress = false]) Uint8List?
hash_array(List elements) Uint8List
@param {Array
hash_bytes(Uint8List value) Uint8List
@param {Buffer} value @returns {Buffer}
hash_key_val(dynamic key, dynamic val) Uint8List
@param {string} key @param {string|Buffer|BigInt} val @returns {Buffer}
hash_of_map(Map map) Uint8List
@param {object} map @returns {Buffer}
hash_string(String value) Uint8List
@param {string} value @returns {Buffer}
hash_U64(BigInt n) Uint8List
@param {BigInt} n @returns {Buffer}
hash_val(dynamic val) Uint8List
@param {string|Buffer|BigInt} val @returns {Buffer}
HttpCanisterUpdate_id(Map update) Uint8List
@param {object} update @returns {Buffer}
HttpCanisterUpdate_representation_independent_hash(Map update) Uint8List
@param {object} update @returns {Buffer}
HttpReadState_representation_independent_hash(Map readState) Uint8List
@param {object} read_state @returns {Buffer}
make_read_state_from_update(Map update) Map<String, dynamic>
@param {object} update @returns {object}
make_sig_data(Uint8List messageId) Uint8List
@param {Buffer} message_id @returns {Buffer}
mnemonicToSeed(String phrase, {String passphrase = ""}) Uint8List
secp256k1KeyIdentityFromPem(String pem) Future<Secp256k1KeyIdentity>
sha256Chunks(List chunks) Uint8List
transactionDecoder(String txnHash) Map<String, dynamic>
transferCombine(Ed25519KeyIdentity identity, SignablePayload payloadsRes) Future<CombineSignedTransactionResult>
validateMnemonic(String mnemonic) bool

Typedefs

SigningCallback = void Function([dynamic data])

Exceptions / Errors

TransactionError
Describes the cause of a Rosetta API error.