SuiAccount class

Constructors

SuiAccount(Keypair keypair)
SuiAccount.ed25519Account()
factory
SuiAccount.fromMnemonics(String mnemonics, SignatureScheme scheme, {int accountIndex = 0, int addressIndex = 0, int changeIndex = 0})
factory
SuiAccount.fromPrivateKey(String privateKey, [SignatureScheme? scheme])
factory
SuiAccount.fromPrivKey(String privateKey)
Bech32 encoded string starting with suiprivkey.
factory
SuiAccount.secp256k1Account()
factory
SuiAccount.secp256r1Account()
factory

Properties

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

Methods

getAddress() SuiAddress
getPublicKey() Uint8List
getSecretKey() Uint8List
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
privateKey() String
This returns the Bech32 secret key string for this keypair.
privateKeyHex() String
signData(Uint8List data) SignaturePubkeyPair
toString() String
A string representation of this object.
inherited
verify(Uint8List data, SignaturePubkeyPair signature) bool

Operators

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

Static Methods

generateMnemonic({int strength = 128}) String
isValidAddress(String address) bool
isValidMnemonics(String mnemonics) bool
isValidSuiNS(String name) bool