zcash / librustzcash

Rust-language assets for Zcash
Other
333 stars 249 forks source link

Create a generator and evaluator for arbitrary transparent Zcash script. #1362

Open nuttycom opened 5 months ago

nuttycom commented 5 months ago

The capability required is to be able to generate witnesses for (almost) arbitrary Zcash scripts. The set of coins to be spent is input to this API.

To inform this, survey how zcashd witness generation for transparent inputs works.

nuttycom commented 5 months ago

This could be implemented either by extracting the transparent script engine and solver from zcashd, or by writing a new pure-rust implementation, or by forking from another Rust library that supports the relevant parts of Bitcoin script.