transferToForeign(string recipient, uint amount, bytes32 uniqueId)
transferFromForeign(address recipient, bytes rawTxOut)
TransferToForeign (string recipient, uint256 value, bytes32 uniqueId)
TransferFromForeign(address recipient, uint256 value, bytes32 txId)
SignedForTransferFromForeign(address indexed signer, bytes32 txId)
transferToForeignto withdraw their BTC from home-bridge to the provided BTC address, and listen TransferToForeign for transfer results.
submitSignature(bytes witness, bytes rawTx, bytes32 requestId).
witness- is a
rawTxsigned with validator's private key and it will be used to unlock funds on the foreign-bridge.
requestId- is needed to understand what output was blocked for current witdrawal request
createrawtransaction(inputs, outputs). Then this transaction must be signed with validator's private key. Possible method of signing the transaction is using bitcoind rpc method
signrawtransactionwithkey(unsigned, [validatorPrivateKey], prevTxs). The
prevTxsis an array of transactions that outputs will be spent. The
signrawtransactionreturns transaction with witness in it.