Commit eb9b75fb authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

ipfs cat

parent 9ebc81c5
......@@ -71,3 +71,9 @@ func (n *Node) Encoded(force bool) ([]byte, error) {
return n.encoded, nil
}
func Decoded(encoded []byte) (*Node, error) {
n := &Node{}
err := n.Unmarshal(encoded)
return n, err
}
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