package
Version:
v0.0.0-...-c6cb451
Opens a new window with list of versions in this module.
Published: Jan 21, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
P2KH uint8 = 0
P2KHCopay = 28
P2SH = 5
P2SHCopay = 40
P2KHTestnet = 111
P2SHTestnet = 196
)
type Address struct {
Version uint8
Payload []uint8
}
Address is a structure which has a raw unpacked version of a legacy
address.
Decode decode a base58 encoded legacy bitcoin address and returns an
`Address` structure.
Encode returns a base58 encoded string conforming to the Bitcoin legacy
address format.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.