Documentation
¶
Index ¶
- Variables
- func IsValidMultibase(input string) bool
- func MultibaseDecode(attr string) ([]byte, error)
- func MultibaseEncode(data []byte) (string, error)
- func MulticodecDecode(encoded []byte) (multicodec.Code, []byte, error)
- func MulticodecEncode(codec multicodec.Code, payload []byte) ([]byte, error)
- func PublicKeyMultibaseDecode(publicKey string) (multicodec.Code, []byte, error)
- func PublicKeyMultibaseEncode(codec multicodec.Code, publicKey []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsValidMultibase ¶
func MultibaseDecode ¶
func MultibaseEncode ¶
This function is a little sugar to use the proper multibase encoding for message attributes and the message itself.
func MulticodecDecode ¶
Returns the codec, payload and error of a multicodec encoded byte array
func MulticodecEncode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.