Commit 569268c6 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet Committed by Brian Tiger Chow

peer.DecodePrettyID

parent d0401047
......@@ -26,6 +26,11 @@ func (id ID) Pretty() string {
return b58.Encode(id)
}
// DecodePrettyID returns a b58-encoded string of the ID
func DecodePrettyID(s string) ID {
return b58.Decode(s)
}
// Map maps Key (string) : *Peer (slices are not comparable).
type Map map[u.Key]*Peer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment