-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Near2EthProver #36
Comments
Maybe I misunderstand what code you are talking about, but I don't think Misha wrote any of that code. It would be unfair to attribute potential suboptimalities to him. |
@mikhailOK used to own |
I see. But proofs for transaction outcomes is not stored in state. Maybe you mean something else. |
Correct. We have two different architectures for proving "events" in Near:
For the former we need someone who wrote or worked with merkelization code https://github.com/nearprotocol/nearcore/blob/4713f5f88a7a57d6b5a13ed1057289858d63f134/core/primitives/src/merkle.rs#L28 I guess it is you? So you might be right that @k06a would need to be asking your help instead of @mikhailOK 's. |
Could we generate proofs by building Tree/Trie for all outcomes? |
I think that would be the best way to do it. Really easy, just read borsh-serialized transaction outcomes and merkelize them, the code is all there. |
I think we don't have this exposed properly. See near/nearcore#2076. It might require some effort. |
Yup, we don't have it exposed. That's why we are going with the transaction outcome. |
We need to write a contract that verifies the merkle proofs towards certain transaction outcomes. The specific design of the proofs is discussed here: near/nearcore#2632
The text was updated successfully, but these errors were encountered: