address

package
v0.0.0-...-68db423 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//BitcoinMain is params for main net.
	BitcoinMain = &Params{
		AddressHeader: 0,
		P2SHHeader:    5,
	}
	//BitcoinTest is params for test net.
	BitcoinTest = &Params{
		AddressHeader: 111,
		P2SHHeader:    196,
	}
	//LitecoinMain is params for main net.
	LitecoinMain = &Params{
		AddressHeader: 48,
		P2SHHeader:    50,
	}
)

Functions

This section is empty.

Types

type Address

type Address struct {
	// contains filtered or unexported fields
}

func FromWIFAddress

func FromWIFAddress(wif string, params *Params) (*Address, error)

func (*Address) IsP2PKH

func (addr *Address) IsP2PKH() bool

func (*Address) IsP2SH

func (addr *Address) IsP2SH() bool

func (*Address) ToPkScript

func (addr *Address) ToPkScript() []byte

func (*Address) WIF

func (addr *Address) WIF(params *Params) string

type Params

type Params struct {
	AddressHeader byte
	P2SHHeader    byte
}

Params is parameters of the coin.

Jump to

Keyboard shortcuts

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