KeyPair class
Holds a Stellar keypair.
Constructors
Properties
- accountId → String
-
Returns the human readable account ID of this key pair.
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- privateKey → Uint8List
-
read-only
- publicKey → Uint8List
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- secretSeed → String
-
Returns the human readable secret seed of this key pair.
read-only
- signatureHint → XdrSignatureHint
-
read-only
- xdrMuxedAccount → XdrMuxedAccount
-
read-only
- xdrPublicKey → XdrPublicKey
-
read-only
- xdrSignerKey → XdrSignerKey
-
read-only
Methods
-
canSign(
) → bool - Returns true if this Keypair is capable of signing.
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
sign(
Uint8List data ) → Uint8List -
Sign the provided data with the keypair's private key
data
. -
signDecorated(
Uint8List data ) → XdrDecoratedSignature -
Sign the provided
data
with the keypair's private key. -
toString(
) → String -
A string representation of this object. [...]
inherited
-
verify(
Uint8List data, Uint8List signature ) → bool -
Verify the provided
data
andsignature
match this keypair's public key.
Operators
-
operator ==(
Object other ) → bool -
The equality operator. [...]
inherited
Static Methods
-
fromAccountId(
String accountId ) → KeyPair -
Creates a new KeyPair object from a stellar
accountId
. -
fromPublicKey(
Uint8List publicKey ) → KeyPair -
Creates a new KeyPair object from a 32 byte
publicKey
address. -
fromSecretSeed(
String seed ) → KeyPair -
Creates a new KeyPair object from a Stellar secret
seed
("S..."). -
fromSecretSeedList(
Uint8List seed ) → KeyPair -
Creates a new KeyPair object from a raw 32 byte secret
seed
. -
fromXdrPublicKey(
XdrPublicKey key ) → KeyPair -
fromXdrSignerKey(
XdrSignerKey key ) → KeyPair -
random(
) → KeyPair - Generates a random Stellar KeyPair object.