Documentation ¶
Index ¶
- type K
- func (k *K) Bytes() (bytes []byte, err error)
- func (k *K) IsPrivateKey() (p bool)
- func (k *K) IsPublicKey() (p bool)
- func (k *K) KeyType() (kt shared.KeyType)
- func (k K) MarshalJSON() (bytes []byte, err error)
- func (k *K) PrivateKeyInstance() (privkey interface{})
- func (k *K) PublicKey() (kPub shared.Key, err error)
- func (k *K) PublicKeyInstance() (pubkey interface{})
- func (k *K) Sign(hashed []byte) (signed []byte, err error)
- func (k *K) String() (str string)
- func (k *K) Verify(signed []byte, hashed []byte) (ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K ¶
type K struct {
// contains filtered or unexported fields
}
func (*K) IsPrivateKey ¶
IsPrivateKey - returns if K is a private key instance
func (*K) IsPublicKey ¶
IsPublicKey - returns if K is a public key instance
func (K) MarshalJSON ¶ added in v2.0.3
MarshalJSON - marshals this Key into a JSON
func (*K) PrivateKeyInstance ¶
func (k *K) PrivateKeyInstance() (privkey interface{})
PrivateKeyInstance - returns actual instance of private key of type
func (*K) PublicKey ¶
PublicKey - returns instance of public key of type Key extracted from private key
func (*K) PublicKeyInstance ¶
func (k *K) PublicKeyInstance() (pubkey interface{})
PublicKeyInstance - returns actual instance of public key of type
Click to show internal directories.
Click to hide internal directories.