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 ¶ 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.
Types ¶
type ErrInvalidKeyLen ¶ added in v1.0.0
ErrInvalidKeyLen 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 {
Key any
}
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.