Documentation
¶
Index ¶
- type Key
- func (key Key) ID() string
- func (key Key) PublicKey() (pubKey cryptotypes.PubKey)
- func (key Key) PublicKeyStr() string
- func (key Key) Raw() internal.Raw
- func (key Key) Sign(data []byte) ([]byte, error)
- func (key Key) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
Key represents Cosmos key
func FromEncryptedJSON ¶
FromEncryptedJSON gets key from json and password
func (Key) PublicKey ¶
func (key Key) PublicKey() (pubKey cryptotypes.PubKey)
func (Key) PublicKeyStr ¶
func (Key) ToEncryptedJSON ¶
func (key Key) ToEncryptedJSON(password string, scryptParams commonkeystore.ScryptParams) (export []byte, err error)
ToEncryptedJSON returns encrypted JSON representing key
Click to show internal directories.
Click to hide internal directories.