bch

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

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

func NewAddress

func NewAddress(b []byte) *Address

func (*Address) P2pkh added in v1.5.0

func (ad *Address) P2pkh() string

func (*Address) P2sh added in v1.5.0

func (ad *Address) P2sh() string

type PriKey

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

func NewPriKey

func NewPriKey(b []byte) (*PriKey, error)

func NewPriKeyRandom

func NewPriKeyRandom() *PriKey

NewPriKeyRandom TODO :: 私钥值约束,最大不能大于 fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140

func ParseWIF

func ParseWIF(wif string) (*PriKey, error)

func (*PriKey) Base64

func (pri *PriKey) Base64() string

func (*PriKey) Bytes

func (pri *PriKey) Bytes() []byte

func (*PriKey) Hex

func (pri *PriKey) Hex() string

func (*PriKey) PubKey

func (pri *PriKey) PubKey() *PubKey

func (*PriKey) WIF

func (pri *PriKey) WIF() string

WIF TODO

type PubKey

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

func NewPubKey

func NewPubKey(b []byte) (*PubKey, error)

func (*PubKey) Address

func (pub *PubKey) Address() *Address

func (*PubKey) Bytes

func (pub *PubKey) Bytes() []byte

Jump to

Keyboard shortcuts

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