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: 2 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址