-
Notifications
You must be signed in to change notification settings - Fork 992
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
Murisi/shared masp2 #848
Murisi/shared masp2 #848
Conversation
340a703
to
dcbc058
Compare
@@ -18,6 +18,52 @@ use masp_primitives::transaction::{ | |||
}; | |||
use masp_proofs::sapling::SaplingVerificationContext; | |||
|
|||
use std::collections::hash_map::Entry; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if think we could move the additions into a sub-module and re-export here what's needed
|
||
async fn query_epoch(&self) -> Epoch; | ||
|
||
fn local_tx_prover(&self) -> LocalTxProver; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is LocalTxProver
specific to the consumer? Something that would differ from what is being done on desktop/CLI?
async fn query_conversion( | ||
&self, | ||
asset_type: AssetType, | ||
) -> Option<( | ||
Address, | ||
Epoch, | ||
masp_primitives::transaction::components::Amount, | ||
MerklePath<Node>, | ||
)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here, does this mean that we should define this in a web/WASM specific way?
async fn query_conversion(
&self,
asset_type: AssetType,
) -> Option<(
Address,
Epoch,
masp_primitives::transaction::components::Amount,
MerklePath<Node>,
)>;
Factored the platform specific components out of
ShieldedContext
and then movedShieldedContext
into theshared
crate. Essentially addressing: #302 .