internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMagicMessage

func CreateMagicMessage(message string) string

WriteVarInt copied from https://github.com/btcsuite/btcutil/blob/master/gcs/gcs.go#L225

func GeneratePublicKeyHash

func GeneratePublicKeyHash(recoveryFlag int, pubKey *btcec.PublicKey) []byte

Returns the public key hash, either compressed or uncompressed based on the recovery flag

func ValidateP2PKH

func ValidateP2PKH(recoveryFlag int, pubkeyHash []byte, addr btcutil.Address, net *chaincfg.Params) (bool, error)

func ValidateP2SH

func ValidateP2SH(recoveryFlag int, pubkeyHash []byte, addr btcutil.Address, net *chaincfg.Params) (bool, error)

func ValidateP2WPKH

func ValidateP2WPKH(recoveryFlag int, pubkeyHash []byte, addr btcutil.Address, net *chaincfg.Params) (bool, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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