Documentation ¶
Index ¶
- Constants
- func CreateMultiSigAddress(m int, publicKeys []*btcutil.AddressPubKey, randomBytes []byte, ...) (script, address []byte, btcAddressList []string, err error)
- func GetBlockCypherChainType(typeString string) string
- func GetChainParams(typeString string) *chaincfg.Params
- func ValidateLock(tx *wire.MsgTx, token, chainType string, trackerPrevTxID *chainhash.Hash, ...) bool
- func ValidateRedeem(tx *wire.MsgTx, token, chainType string, trackerPrevTxID *chainhash.Hash, ...) bool
- type ChainDriver
- type KeyDB
- type TxHash
Constants ¶
View Source
const ( BLOCK_CONFIRMATIONS = 6 BLOCK_CONFIRMATIONS_TEST = 1 )
Variables ¶
This section is empty.
Functions ¶
func CreateMultiSigAddress ¶
func GetBlockCypherChainType ¶
func GetChainParams ¶
func ValidateLock ¶
Types ¶
type ChainDriver ¶
type ChainDriver interface { PrepareLockNew(*chainhash.Hash, uint32, int64, *chainhash.Hash, uint32, int64, int64, []byte) (txBytes []byte) AddUserLockSignature([]byte, []byte) *wire.MsgTx AddLockSignature([]byte, []byte) *wire.MsgTx BroadcastTx(*wire.MsgTx, *rpcclient.Client) (*chainhash.Hash, error) CheckFinality(*chainhash.Hash, string, string) (bool, error) PrepareRedeemNew(prevLockTxID *chainhash.Hash, prevLockIndex uint32, prevLockBalance int64, userAddress []byte, redeemAmount int64, feesInSatoshi int64, lockScriptAddress []byte) (txBytes []byte) }
func NewChainDriver ¶
func NewChainDriver(token string) ChainDriver
Click to show internal directories.
Click to hide internal directories.