peer.DecodePrettyID
Juan Batiz-Benet committed
Sep 19, 2014 at 05:00 UTC
569268c67698b2964adfb8b05150fdf91debac00
1 file changed
+5
peer/peer.go
+5
@@ -26,6 +26,11 @@ func (id ID) Pretty() string {
26
return b58.Encode(id)
27
}
28
29
+// DecodePrettyID returns a b58-encoded string of the ID
30
+func DecodePrettyID(s string) ID {
31
+ return b58.Decode(s)
32
+}
33
+
34
// Map maps Key (string) : *Peer (slices are not comparable).
35
type Map map[u.Key]*Peer
36