13 lines
226 B
Go
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
|
|
}
|