Documentation ¶
Index ¶
- func CreateMultiSigAddress(m int, publicKeys []*btcutil.AddressPubKey, randomBytes []byte, ...) (script, address []byte, btcAddressList []string, err error)
- func EstimateTxSizeBeforeUserSign(tx *wire.MsgTx, isFirstLock bool) int
- func GetBlockCypherChainType(typeString string) string
- func GetChainParams(typeString string) *chaincfg.Params
- func ValidateLock(tx *wire.MsgTx, token, chainType string, lockScriptAddress []byte, ...) bool
- func ValidateRedeem(tx *wire.MsgTx, token, chainType string, trackerPrevTxID *chainhash.Hash, ...) bool
- type ChainDriver
- type ChainDriverOption
- type InputTransaction
- type KeyDB
- type TxHash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMultiSigAddress ¶
func EstimateTxSizeBeforeUserSign ¶ added in v0.14.0
func GetBlockCypherChainType ¶
func GetChainParams ¶
func ValidateLock ¶
Types ¶
type ChainDriver ¶
type ChainDriver interface { PrepareLockNew(prevLockTxID *chainhash.Hash, prevLockIndex uint32, prevLockBalance int64, inputs []InputTransaction, feesRate int64, lockAmount int64, returnAddress []byte, lockScriptAddress []byte) (txBytes []byte, err error) AddLockSignature([]byte, []byte, bool) *wire.MsgTx BroadcastTx(*wire.MsgTx, *rpcclient.Client) (*chainhash.Hash, error) CheckFinality(hash *chainhash.Hash, blockConfirmations int, token, chain 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
type ChainDriverOption ¶ added in v0.14.0
type InputTransaction ¶ added in v0.14.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.