Documentation ¶
Index ¶
- type EncryptedSolanaKeyExport
- type Key
- func (key Key) GetPublic() ed25519.PublicKey
- func (key Key) GoString() string
- func (key Key) ID() string
- func (key Key) PublicKey() (pubKey solana.PublicKey)
- func (key Key) PublicKeyStr() string
- func (key Key) Raw() Raw
- func (key Key) Sign(msg []byte) ([]byte, error)
- func (key Key) String() string
- func (key Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
- type Raw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedSolanaKeyExport ¶
type EncryptedSolanaKeyExport struct { KeyType string `json:"keyType"` PublicKey string `json:"publicKey"` Crypto keystore.CryptoJSON `json:"crypto"` }
EncryptedSolanaKeyExport represents the Solana encrypted key
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key represents Solana key
func FromEncryptedJSON ¶
FromEncryptedJSON gets key from json and password
func MustNewInsecure ¶
MustNewInsecure return Key if no error
func (Key) PublicKey ¶
func (key Key) PublicKey() (pubKey solana.PublicKey)
PublicKey copies public key slice
func (Key) PublicKeyStr ¶
PublicKeyStr return base58 encoded public key
func (Key) ToEncryptedJSON ¶
func (key Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
ToEncryptedJSON returns encrypted JSON representing key
Click to show internal directories.
Click to hide internal directories.