flosig

package module
v0.0.0-...-1158336 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: ISC Imports: 10 Imported by: 6

Documentation

Index

Constants

View Source
const (
	P2PKH keyType = iota
	P2WPKH
	P2WSH
)

Variables

This section is empty.

Functions

func CheckSignature

func CheckSignature(checkAddress string, checkSignature string, message string, coinName string, net *chaincfg.Params) (bool, error)

func CreateAndSignTx

func CreateAndSignTx(vin []Vin, vout []Vout, keys map[string]*floutil.WIF, net *chaincfg.Params, floData []byte) (*wire.MsgTx, error)

func CreateUnsignedTx

func CreateUnsignedTx(vin []Vin, vout []Vout, floData []byte) (*wire.MsgTx, error)

func SignMessage

func SignMessage(msg string, coinName string, wif string) (string, error)

func SignMessagePk

func SignMessagePk(msg string, coinName string, prv *floec.PrivateKey, compressed bool) (string, error)

func SignTx

func SignTx(keys map[string]*floutil.WIF, vin []Vin, net *chaincfg.Params, unsignedTx *wire.MsgTx) (*wire.MsgTx, error)

Types

type Vin

type Vin struct {
	Hash     *chainhash.Hash
	Index    uint32
	PkScript []byte
}

type Vout

type Vout struct {
	Addr   floutil.Address
	Amount floutil.Amount
}

Jump to

Keyboard shortcuts

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