Documentation ¶
Index ¶
- func Claim(btcNetwork *chaincfg.Params, isDynaFedEnabled bool, peggedAsset []byte, ...) (*transaction.Transaction, error)
- func ClaimWitnessScript(publicKeyBytes []byte, net *network.Network) ([]byte, error)
- func GetPeginTxOutIndexAndAmount(btcTx []byte, fedpegScript []byte, contract []byte, ...) (uint32, int64, error)
- func MainChainAddress(contract []byte, btcNetwork *chaincfg.Params, isDynaFedEnabled bool, ...) (string, error)
- func SerializeValue(value int64) ([]byte, error)
- func StripWitnessFromBtcTx(btcTx []byte) ([]byte, error)
- type AddressInfo
- type FedpegInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Claim ¶
func Claim( btcNetwork *chaincfg.Params, isDynaFedEnabled bool, peggedAsset []byte, parentGenesisBlockHash []byte, fedpegScript []byte, contract []byte, btcTx []byte, btcTxOutProof []byte, claimScript []byte, milisatsPerByte float64, ) (*transaction.Transaction, error)
Claim crafts raw claim pegin transaction which is to be signed and broadcated to network
func ClaimWitnessScript ¶
ClaimWitnessScript returns claim script that is to be used to calculate contract (pegincontract.Calculate) and craft raw pegin transaction (pegin.Claim)
func MainChainAddress ¶
func MainChainAddress( contract []byte, btcNetwork *chaincfg.Params, isDynaFedEnabled bool, fedpegScript []byte, ) (string, error)
MainChainAddress creates btc address to which BTC amount is to be sent that is to be pegged in Liquid network
func SerializeValue ¶
func StripWitnessFromBtcTx ¶
Types ¶
type AddressInfo ¶
type FedpegInfo ¶
Click to show internal directories.
Click to hide internal directories.