utils

package
v0.0.0-...-1c741c1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBigInts

func AddBigInts(a, b *big.Int) *big.Int

AddBigInts adds signs

func ItoAmt

func ItoAmt(n int) btcutil.Amount

ItoAmt converts int to btcutil.Amount

func ParsePublicKey

func ParsePublicKey(pub string) (*btcec.PublicKey, error)

ParsePublicKey converts hex string to btcec.PublicKey

func PubkeyToStr

func PubkeyToStr(pub *btcec.PublicKey) string

PubkeyToStr converts btcec.PublicKey to hex string (compressed)

func TxToHex

func TxToHex(tx *wire.MsgTx) (string, error)

TxToHex converts tx to hex string

func UtxoToTxIn

func UtxoToTxIn(utxo *Utxo) (*wire.TxIn, error)

UtxoToTxIn converts utxo to txin

Types

type Utxo

Utxo is alias of btcjson.ListunspentResult

Jump to

Keyboard shortcuts

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