Closed ppoliani closed 9 months ago
The index of the input that contains the zkapp being used is part of the unlock_funds RPC request. However, this is redundant since we can infer it from the unlock transaction inputs using the following equality check:
zkapp
unlock_funds
tx.previous_output.txid == self.zkapp_tx.txid()
Fixes https://github.com/sigma0-xyz/zkbitcoin/issues/6
The index of the input that contains the
zkapp
being used is part of theunlock_funds
RPC request. However, this is redundant since we can infer it from the unlock transaction inputs using the following equality check:tx.previous_output.txid == self.zkapp_tx.txid()
Fixes https://github.com/sigma0-xyz/zkbitcoin/issues/6