rgb-archive / spec

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

Version upgrade proofs must spend only inputs with the same version number #114

Closed dr-orlovsky closed 4 years ago

dr-orlovsky commented 4 years ago

@inaltoasinistra on our recent meeting has pointed out a possible "double-spend" type bug with versioning system. If we have a proof of more recent version spending outputs of proofs with different versions (having different commitment schemes), there will be no way to check that there is no another proof with the previous version spending some of the same outputs. In order to prevent this kind of attack we need to prohibit proofs to spend inputs having different version numbers.