Documentation ¶
Index ¶
- type Key
- func (key Key) GoString() string
- func (key Key) ID() string
- func (key Key) PublicKey() (pubKey cryptotypes.PubKey)
- func (key Key) PublicKeyStr() string
- func (key Key) Raw() Raw
- func (key Key) String() string
- func (key Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
- func (key Key) ToPrivKey() cryptotypes.PrivKey
- type Raw
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 ¶
PublicKeyStr returns the cosmos address of the public key
func (Key) ToEncryptedJSON ¶
func (key Key) ToEncryptedJSON(password string, scryptParams utils.ScryptParams) (export []byte, err error)
ToEncryptedJSON returns encrypted JSON representing key
func (Key) ToPrivKey ¶
func (key Key) ToPrivKey() cryptotypes.PrivKey
ToPrivKey returns the key usable for signing.
Click to show internal directories.
Click to hide internal directories.