Documentation ¶
Index ¶
- func CheckDecode(input string, versionLen int) ([]byte, []byte, error)
- func CheckEncode(version, input []byte) string
- func PrivateKeyToWIF(priv []byte) string
- func PrivateKeyToWIFCompressed(priv []byte) string
- func PublicKeyToAddress(pub []byte) string
- func WIFToPrivateKey(wif string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDecode ¶
CheckDecode decodes the version and payload out of the input base58 string
func CheckEncode ¶
CheckEncode encodes the input data bytes prepended by the given version prefix bound to the given mode into a base58 string
func PrivateKeyToWIF ¶
PrivateKeyToWIF encodes the given **uncompressed** private key byte sequence into wif format
func PrivateKeyToWIFCompressed ¶
PrivateKeyToWIFCompressed encodes the given **compressed** private key byte sequence into wif format
func PublicKeyToAddress ¶
PublicKeyToAddress converts the public key stream into the corresponding base58-encoded address
func WIFToPrivateKey ¶
WIFToPrivateKey just reverses the processing done by @PrivateKeyToWIF/@ PrivateKeyToWIFCompressed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.