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.
func PubKeyFromTypeAndBytes ¶
PubKeyFromTypeAndBytes builds a crypto.PubKey from the given type and bytes. It returns ErrUnsupportedKey if the pubkey type is unsupported.
Types ¶
type ErrInvalidKeyLen ¶
InvalidKeyLen describes an error resulting from the use of a key with an invalid length in PubKeyFromProto.
func (ErrInvalidKeyLen) Error ¶
func (e ErrInvalidKeyLen) Error() string
type ErrUnsupportedKey ¶
type ErrUnsupportedKey struct {
Key any
}
ErrUnsupportedKey describes an error resulting from the use of an unsupported key in PubKeyToProto or PubKeyFromProto.
func (ErrUnsupportedKey) Error ¶
func (e ErrUnsupportedKey) Error() string
Click to show internal directories.
Click to hide internal directories.