Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func B58KeyEncode ¶
func B58KeyEncode(k Key) string
B58KeyEncode returns Key in a b58 encoded string
Types ¶
type Key ¶
type Key string
Key is a string representation of multihash for use with maps.
func B58KeyDecode ¶
func B58KeyDecode(s string) Key
B58KeyDecode returns Key from a b58 encoded string
func (Key) B58String ¶
func (k Key) B58String() string
B58String returns Key in a b58 encoded string
func (*Key) MarshalJSON ¶
func (k *Key) MarshalJSON() ([]byte, error)
MarshalJSON returns a JSON-encoded Key (string)
func (Key) String ¶
func (k Key) String() string
String is utililty function for printing out keys as strings (Pretty).
func (Key) ToMultihash ¶
func (k Key) ToMultihash() mh.Multihash
func (*Key) UnmarshalJSON ¶
func (k *Key) UnmarshalJSON(mk []byte) error
UnmarshalJSON returns a JSON-encoded Key (string)
Click to show internal directories.
Click to hide internal directories.