sigma0-xyz / zkbitcoin

zkBitcoin: zero-knowledge proofs on Bitcoin!
MIT License
161 stars 31 forks source link

Remove `zkapp_input` #23

Closed ppoliani closed 6 months ago

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