SolanaPrivateKey class

Class representing a private key for Solana.

Constructors

SolanaPrivateKey.fromBytes(List<int> keypairBytes)
Factory method to create a SolanaPrivateKey instance from bytes representing a keypair.
factory
SolanaPrivateKey.fromSeed(List<int> keyBytes)
Factory method to create a SolanaPrivateKey instance from a seed represented as a list of bytes.
factory
SolanaPrivateKey.fromSeedHex(String seedHex)
Factory method to create a SolanaPrivateKey instance from a seed represented as a hexadecimal string.
factory

Properties

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

Methods

keypairBytes() List<int>
Retrieve the keypair bytes representing both the seed and public key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publicKey() SolanaPublicKey
Derive the public key associated with the private key.
seedBytes() List<int>
Retrieve the seed bytes of the private key.
seedHex() String
Convert the seed bytes of the private key to a hexadecimal string.
sign(List<int> digest) List<int>
Sign a digest using the private key.
toHex() String
Convert the keypair bytes to a hexadecimal string.
toString() String
A string representation of this object.
inherited

Operators

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