Versions in this module Expand all Collapse all v1 v1.0.1 Jun 17, 2021 v1.0.0 Mar 26, 2021 Changes in this version + var CodePrefixErr = errors.New("unexpected code prefix") + var MultihashCodecErr = errors.New("unexpected multihash codec") + var MultihashDecodeErr = errors.New("unable to decode multihash") + var MultihashLengthErr = errors.New("unexpected multihash length") + func IDB58Encode(id ID) string + func IDHexEncode(id ID) string + type ID string + func IDB58Decode(s string) (ID, error) + func IDFromBytes(b []byte) (ID, error) + func IDFromEd25519PublicKey(pk ic.PubKey) (ID, error) + func IDFromPrivateKey(sk ic.PrivKey) (ID, error) + func IDFromPublicKey(pk ic.PubKey) (ID, error) + func IDFromString(s string) (ID, error) + func IDHexDecode(s string) (ID, error) + func (id ID) ExtractEd25519PublicKey() (ic.PubKey, error) + func (id ID) ExtractPublicKey() ic.PubKey + func (id ID) Loggable() map[string]interface{} + func (id ID) MatchesPrivateKey(sk ic.PrivKey) bool + func (id ID) MatchesPublicKey(pk ic.PubKey) bool + func (id ID) Pretty() string + func (id ID) String() string + type IDSlice []ID + func (es IDSlice) Len() int + func (es IDSlice) Less(i, j int) bool + func (es IDSlice) Swap(i, j int)