Skip to content
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

Implement wallet/multisig/dkg/round1 RPC #4885

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

andiflabs
Copy link
Contributor

Summary

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@andiflabs andiflabs requested a review from a team as a code owner April 8, 2024 23:32
@andiflabs andiflabs force-pushed the andrea/multisig-dkg-switch-if-frost-branch branch from 8a2bdbb to 3773312 Compare April 8, 2024 23:34
@andiflabs andiflabs force-pushed the andrea/multisig-dkg-round-1-rpc branch from ee06580 to 95d2929 Compare April 8, 2024 23:34
Comment on lines 380 to 373
if min_signers > max_signers {
return Err(to_napi_err(
"min_signers exceeds the number of participants",
));
}

let mut rng = thread_rng();
let (secret_package, public_package) = dkg::part1(
self_identity.to_frost_identifier(),
max_signers,
min_signers,
&mut rng,
)
.map_err(to_napi_err)?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if we should move logic like this into ironfish-rust or ironfish-frost as we add more validation, checksums, etc.

I'm not sure if having it in ironfish-rust-nodejs will make it difficult to use if someone were trying to build on top of it outside of the TypeScript SDK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created iron-fish/ironfish-frost#46 to move the functionality over to ironfish-frost

ironfish/src/rpc/routes/wallet/multisig/dkg/round1.ts Outdated Show resolved Hide resolved
ironfish/src/rpc/routes/wallet/multisig/dkg/round1.ts Outdated Show resolved Hide resolved
@andiflabs andiflabs changed the base branch from andrea/multisig-dkg-switch-if-frost-branch to andrea/update-ironfish-frost April 9, 2024 19:22
@andiflabs andiflabs force-pushed the andrea/multisig-dkg-round-1-rpc branch 2 times, most recently from 34d0f30 to fe43358 Compare April 9, 2024 19:31
@andiflabs andiflabs force-pushed the andrea/update-ironfish-frost branch from 51cee64 to d46621b Compare April 10, 2024 10:31
@andiflabs andiflabs force-pushed the andrea/multisig-dkg-round-1-rpc branch from e4ceb5f to 37e5aaa Compare April 10, 2024 10:33
@andiflabs andiflabs force-pushed the andrea/update-ironfish-frost branch from d46621b to f0bbcff Compare April 10, 2024 16:51
@andiflabs andiflabs force-pushed the andrea/multisig-dkg-round-1-rpc branch from 37e5aaa to c708b29 Compare April 10, 2024 16:52
Base automatically changed from andrea/update-ironfish-frost to staging April 10, 2024 17:03
@andiflabs andiflabs force-pushed the andrea/multisig-dkg-round-1-rpc branch from c708b29 to 219f47b Compare April 10, 2024 17:04
@andiflabs andiflabs force-pushed the andrea/multisig-dkg-round-1-rpc branch from 219f47b to fb02035 Compare April 10, 2024 17:05
@andiflabs andiflabs merged commit e221ec8 into staging Apr 10, 2024
13 checks passed
@andiflabs andiflabs deleted the andrea/multisig-dkg-round-1-rpc branch April 10, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants