legacy

package
v0.0.0-...-c6cb451 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	P2KH        uint8 = 0
	P2KHCopay         = 28
	P2SH              = 5
	P2SHCopay         = 40
	P2KHTestnet       = 111
	P2SHTestnet       = 196
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Version uint8
	Payload []uint8
}

Address is a structure which has a raw unpacked version of a legacy address.

func Decode

func Decode(originalAddress string) (*Address, error)

Decode decode a base58 encoded legacy bitcoin address and returns an `Address` structure.

func (*Address) Encode

func (addr *Address) Encode() (string, error)

Encode returns a base58 encoded string conforming to the Bitcoin legacy address format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL