diff --git a/encoding/nodeid.go b/encoding/nodeid.go index db30639..7e0ab1b 100644 --- a/encoding/nodeid.go +++ b/encoding/nodeid.go @@ -22,7 +22,7 @@ func NewNodeId(bytes []byte) *NodeId { return &NodeId{Bytes: bytes} } -func NodeIdDecode(nodeId string) (*NodeId, error) { +func DecodeNodeId(nodeId string) (*NodeId, error) { encoding, ret, err := multibase.Decode(nodeId) if err != nil { return nil, err