lbry.go/address/encode.go
2017-11-20 13:44:19 -05:00

13 lines
265 B
Go

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