rgb-archive / spec

[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
https://rgb-org.github.io/
148 stars 26 forks source link

Add validation hints into proofs #78

Closed dr-orlovsky closed 4 years ago

dr-orlovsky commented 5 years ago

Validation of proofs and contracts generally involves getting transactions based on a UTXO that they spent. This is a very costly operation since this detail is not indexed in the Bitcoin core. Adding the txid into proofs helps validation (the validator downloads that tx and checks that it really spends the UTXO)

dr-orlovsky commented 5 years ago

@afilini am I right that this is the reason why you added bind_to field into the proof code, which was absent in the original spec? I am talking about this situation: https://github.com/rgb-org/rgb-rust/issues/8

dr-orlovsky commented 5 years ago

With acceptance of #80 this issue may be invalidated