Nkeys class
Nkeys
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- keyPair ↔ KeyPair
-
key pair
getter/setter pair
- prefixByte ↔ int
-
prefixByte
getter/setter pair
- rawSeed → Uint8List
-
seed string
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed → String
-
get public key
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
privateKey(
) → String - get private key
-
publicKey(
) → String - get public key
-
rawPrivateKey(
) → List< int> - get raw private key
-
rawPublicKey(
) → List< int> - raw public key
-
sign(
List< int> message) → List<int> - Sign message
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createAccount(
) → Nkeys - Create new Account type KeyPair
-
createOperator(
) → Nkeys - Create new Operator type KeyPair
-
createPair(
int prefix) → Nkeys - Create new pair
-
createUser(
) → Nkeys - Create new User type KeyPair
-
decode(
int expectPrefix, String src) → Uint8List - decide public expect prefix throw exception if error
-
fromSeed(
String seed) → Nkeys - new nkeys from seed
-
newNkeys(
int prefixByte) → Nkeys - generate new nkeys
-
verify(
String publicKey, List< int> message, List<int> signature) → bool - verify