btc

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const AtomicSwapRedeemScriptSize = 1 + 73 + 1 + 33 + 1 + 32 + 1

AtomicSwapRedeemScriptSize is the size of the Bitcoin Atomic Swap's RedeemScript

View Source
const AtomicSwapRefundScriptSize = 1 + 73 + 1 + 33 + 1

AtomicSwapRefundScriptSize is the size of the Bitcoin Atomic Swap's RefundScript

Variables

View Source
var ErrCompleteSignTransaction = NewErrSignTransaction(fmt.Errorf("incomplete signature"))
View Source
var ErrContractOutput = fmt.Errorf("transaction does not contain a contract output")
View Source
var ErrInitiated = fmt.Errorf("atomic swap already initiated")
View Source
var ErrMalformedInitiateTx = fmt.Errorf("initiate transaction returned by the Bitcoin blockchain is malformed")
View Source
var ErrMalformedRedeemTx = fmt.Errorf("redeem transaction returned by the Bitcoin blockchain is malformed")
View Source
var ErrTimedOut = fmt.Errorf("timed out")
View Source
var ErrUnknownMessageType = fmt.Errorf("unknown message type")

Functions

func NewBTCSwapContractBinder

func NewBTCSwapContractBinder(account libbtc.Account, swap foundation.Swap, logger swapper.Logger) (swapper.Contract, error)

NewBTCSwapContractBinder returns a new Bitcoin Atom instance

func NewErrAudit

func NewErrAudit(err error) error

func NewErrAuditSecret

func NewErrAuditSecret(err error) error

func NewErrBuildScript

func NewErrBuildScript(err error) error

func NewErrDecodeAddress

func NewErrDecodeAddress(addr string, err error) error

func NewErrDecodeScript

func NewErrDecodeScript(script []byte, err error) error

func NewErrDecodeTransaction

func NewErrDecodeTransaction(txBytes []byte, err error) error

func NewErrInitiate

func NewErrInitiate(err error) error

func NewErrPublishTransaction

func NewErrPublishTransaction(err error) error

func NewErrRedeem

func NewErrRedeem(err error) error

func NewErrRefund

func NewErrRefund(err error) error

func NewErrScriptExec

func NewErrScriptExec(err error) error

func NewErrSignTransaction

func NewErrSignTransaction(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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