vm_validator with trust storage

Hi there,

I follow up the libra’s code flow then found vm_validator mentioned about trust storage, may I known how to define trust storage and non-trust storage ?

1 Like

Hi @apisak, can you point me to the specific line you are inquiring about?

2 Likes

hi @kph

Sure, it’s at:
\vm_validator\src\vm_validator.rs in function validate_transaction line 54-63

BTW, I think libra is currently implemented transaction validation as non-trust storage at line 84-98

1 Like

hi @kph

Did you found something ?

1 Like

Thank you for making friends with me I am Vietnamese

1 Like

Hi, how are you there ?

Apologies for the delay, I didn’t notice the recent updates. This line is referring to whether or not we should trust the storage. You could imagine a system where storage is compromised (perhaps it is located on a different machine for example). In this case, it is useful for other components to receive proofs so that they can verify the data that storage is providing them