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
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