btc

package
v0.0.0-...-a5eb945 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Audit

func Audit(connection btc.Conn, contract, contractTxBytes []byte) (readResult, error)

func AuditSecret

func AuditSecret(connection btc.Conn, redemptionTxBytes, secretHash []byte) ([32]byte, error)

func Initiate

func Initiate(connection btc.Conn, myAddress, participantAddress string, value int64, hash []byte, lockTime int64) (bitcoinData, error)

func Redeem

func Redeem(connection btc.Conn, myAddress string, contract, contractTxBytes []byte, secret [32]byte) (redeemResult, error)

func Refund

func Refund(connection btc.Conn, myAddress string, contract, contractTxBytes []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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