You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Represents a tree that can be used to verifiably store and retrieve [`Account`]s./// The methods of this trait are NOT run in circuit: they are used to create verifiable inputs for the circuit./// This distinction is critical because the returned proofs must contain all information necessary to verify the operations.pubtraitSnarkableTree:Send + Sync{fnprocess_transaction(&mutself,transaction:Transaction) -> Result<Proof>;fninsert(&mutself,key:KeyHash,tx:Transaction) -> Result<InsertProof>;fnupdate(&mutself,key:KeyHash,tx:Transaction) -> Result<UpdateProof>;fnget(&self,key:KeyHash) -> Result<AccountResponse>;}
This trait has changed a bit historically and is now big stupid. We should find a better way to model this. Specifically, it doesn't need to be a trait and KDT can implement the methods directly - with process_transaction and get being the only public methods
The text was updated successfully, but these errors were encountered:
This trait has changed a bit historically and is now big stupid. We should find a better way to model this. Specifically, it doesn't need to be a trait and KDT can implement the methods directly - with process_transaction and get being the only public methods
The text was updated successfully, but these errors were encountered: