lbry.go/address/encode.go
Jack Robison c62c175d8b
more
2017-09-12 12:02:30 -04:00

13 lines
226 B
Go

package address
import (
"./base58"
)
func EncodeAddress(address [address_length]byte) (string, error) {
buf, err := ValidateAddress(address)
if err != nil {
return "", err
}
return base58.EncodeBase58(buf[:]), nil
}