Documentation ¶
Index ¶
- type KeyInfo
- func (ki *KeyInfo) Address() (address.Address, error)
- func (ki *KeyInfo) Equals(other *KeyInfo) bool
- func (ki *KeyInfo) Key() []byte
- func (ki KeyInfo) MarshalJSON() ([]byte, error)
- func (ki *KeyInfo) PublicKey() ([]byte, error)
- func (ki *KeyInfo) SetPrivateKey(privateKey []byte)
- func (ki *KeyInfo) Type() types.SigType
- func (ki *KeyInfo) UnmarshalJSON(data []byte) error
- func (ki *KeyInfo) UsePrivateKey(f func([]byte) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyInfo ¶
type KeyInfo struct { // Private key. PrivateKey *memguard.Enclave `json:"privateKey"` // Cryptographic system used to generate private key. SigType types.SigType `json:"type"` }
KeyInfo is a key and its type used for signing.
func NewSecpKeyFromSeed ¶
NewSecpKeyFromSeed generates a new key from the given reader.
func (*KeyInfo) Key ¶
Key returns the private key of KeyInfo This method makes the key escape from memguard's protection, so use caution
func (KeyInfo) MarshalJSON ¶
func (*KeyInfo) SetPrivateKey ¶
func (*KeyInfo) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.