Run NodesReferenceutils

cb58

Package cb58

import "github.com/luxfi/node/utils/cb58"

Functions

Decode

func Decode(str string) ([]byte, error)

Decode [str] to bytes from cb58.

Encode

func Encode(bytes []byte) (string, error)

Encode [bytes] to a string using cb58 format. [bytes] may be nil, in which case it will be treated the same as an empty slice.