Documentation ¶
Index ¶
- Constants
- Variables
- func NewBTCSwapContractBinder(account libbtc.Account, swap swap.Swap, cost blockchain.Cost, ...) (immediate.Contract, error)
- func NewErrAudit(err error) error
- func NewErrAuditSecret(err error) error
- func NewErrBuildScript(err error) error
- func NewErrDecodeAddress(addr string, err error) error
- func NewErrDecodeScript(script []byte, err error) error
- func NewErrDecodeTransaction(txBytes []byte, err error) error
- func NewErrInitiate(err error) error
- func NewErrPublishTransaction(err error) error
- func NewErrRedeem(err error) error
- func NewErrRefund(err error) error
- func NewErrScriptExec(err error) error
- func NewErrSignTransaction(err error) error
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 swap.Swap, cost blockchain.Cost, logger logrus.FieldLogger) (immediate.Contract, error)
NewBTCSwapContractBinder returns a new Bitcoin Atom instance
func NewErrAudit ¶
func NewErrAuditSecret ¶
func NewErrBuildScript ¶
func NewErrDecodeAddress ¶
func NewErrDecodeScript ¶
func NewErrDecodeTransaction ¶
func NewErrInitiate ¶
func NewErrRedeem ¶
func NewErrRefund ¶
func NewErrScriptExec ¶
func NewErrSignTransaction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.