runtimeverification / polkadot-verification

Verification of Polkadot WASM code
Other
10 stars 6 forks source link

External function calls, what to do? #9

Open ehildenb opened 5 years ago

ehildenb commented 5 years ago

Right now the set_free_balance calls these external functions:

We have two options for dealing with this:

Either way, it might be helpful to have the Wasm implementations of these functions available. But if in reality people use the non-Wasm implementations, this doesn't add any security to have specifications of these functions.

Demi-Marie commented 5 years ago

@ehildenb I think the first approach is better, at least in this case. The second approach will not be practical, as it would involve verifying all of RocksDB. I would love to do that, but that is far beyond the scope of this project.