sigma0-dev / zkbitcoin

zkBitcoin: zero-knowledge proofs on Bitcoin!
MIT License
163 stars 32 forks source link

Remove `zkapp_input` #23

Closed ppoliani closed 9 months ago

ppoliani commented 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:

tx.previous_output.txid == self.zkapp_tx.txid()

Fixes https://github.com/sigma0-xyz/zkbitcoin/issues/6