Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PubKeyFromProto ¶
PubKeyFromProto takes a protobuf Pubkey and transforms it to a crypto.Pubkey. It returns ErrUnsupportedKey if the pubkey type is unsupported or ErrInvalidKeyLen if the key length is invalid.
func PubKeyFromTypeAndBytes ¶ added in v1.0.0
PubKeyFromTypeAndBytes builds a crypto.PubKey from the given type and bytes. It returns ErrUnsupportedKey if the pubkey type is unsupported or ErrInvalidKeyLen if the key length is invalid.
Types ¶
type ErrInvalidKeyLen ¶ added in v1.0.0
InvalidKeyLen describes an error resulting from the use of a key with an invalid length in PubKeyFromProto.
func (ErrInvalidKeyLen) Error ¶ added in v1.0.0
func (e ErrInvalidKeyLen) Error() string
type ErrUnsupportedKey ¶ added in v1.0.0
type ErrUnsupportedKey struct {
KeyType string
}
ErrUnsupportedKey describes an error resulting from the use of an unsupported key in PubKeyToProto or PubKeyFromProto.
func (ErrUnsupportedKey) Error ¶ added in v1.0.0
func (e ErrUnsupportedKey) Error() string
Click to show internal directories.
Click to hide internal directories.