-
Notifications
You must be signed in to change notification settings - Fork 3
feat: bump miden-client to v0.12 in crates #19
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
base: main
Are you sure you want to change the base?
Conversation
- drop the usage of miden-multisig-coordinator-utils - use `Signature::to_prepared_signature` to obtain `Vec<Felt>` to be passed as tx args - make miden-multisig-client crate no_std - fix unit and integration tests to be compatible with the testnet using miden-client v0.12
| let signatures = signatures | ||
| .into_iter() | ||
| .map(|s| s.map(miden_multisig_coordinator_utils::rpo_falcon512_signature_into_felt_vec)) | ||
| .map(|s| s.map(|s| Signature::RpoFalcon512(s).to_prepared_signature(Word::empty()))) |
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.
I passed Word::empty() as the argument to satisfy the method invoking requirements although it should not be necessary for rpo falcon512 signature (see link).
crates/test-utils/src/lib.rs
Outdated
| // Block 4: Create second note | ||
| mock_chain.add_pending_note(OutputNote::Full(note_second.clone())); | ||
| // Block 4 | ||
| mock_chain.prove_next_block().unwrap(); |
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 it necessary to prove so many blocks for the test to succeed?
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.
Thanks for the suggestion, I removed the extra block proving calls and the multisig test does not fail, so I guess they were indeed redundant.
cc: @mmagician
…in coordinator-frontend (#20) * Restore coordinator-frontend changes: remove createFaucet, update AccountInterface to BasicWallet, use NoteFile.deserialize() * fix: fix cargo chef error in Dockerfile of coordinator backend * add network param to wallet adapter components * fix: fix decoding account address and bump miden wallet adapter dependency to v0.10.0 * fix: fix wallet not connected error and invalid signature error * chore: remove miden-wallet-adapter-react dependencies --------- Co-authored-by: Pradyumna-Bhardwaj <[email protected]>
5d5f0b8 to
d5913a6
Compare
Signature::to_prepared_signatureto obtainVec<Felt>to be passed as tx argsAccount::to_bech32andAccount::from_bech32to encode/decode account ids instead ofAddress.miden-objectsfrom all crates.Closes #18.