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

no-std ironfish-frost compatibility #71

Draft
wants to merge 13 commits into
base: no-std
Choose a base branch
from
Draft

Conversation

jowparks
Copy link
Contributor

@jowparks jowparks commented Jul 30, 2024

There were some serialization changes in frost=2.0.0-rc. We also had three separate error types that were being difficult to reconcile, consolidated them.

@jowparks jowparks changed the base branch from main to no-std July 30, 2024 00:29
@jowparks jowparks force-pushed the upgrade-reddsa branch 4 times, most recently from f2ee8c6 to 0b4c2b0 Compare July 30, 2024 01:05
let max_signers = u16::try_from(participants.len())
.map_err(|_| Error::InvalidInput("too many participants".to_string()))?;
let max_signers =
u16::try_from(participants.len()).map_err(|_| IronfishFrostError::InvalidInput)?;

Choose a reason for hiding this comment

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

Seems like we lost information with just using a generic InvalidInput error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea we did, but if we don't remove it we will have to encode these strings in the binary.

@jowparks jowparks force-pushed the upgrade-reddsa branch 3 times, most recently from 442cb7f to cd27561 Compare July 30, 2024 18:03
@jowparks jowparks force-pushed the upgrade-reddsa branch 2 times, most recently from 9a8d28f to b590a9c Compare August 7, 2024 22:31
@jowparks jowparks changed the base branch from no-std to main August 7, 2024 22:31
Cargo.toml Outdated
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "311baf8865f6e21527d1f20750d8f2cf5c9e531a", features = ["frost", "frost-rerandomized"] }
siphasher = { version = "1.0.0", optional = true }
reddsa = { git = "https://github.com/ZcashFoundation/reddsa.git", rev = "b9c3107e6ec5333a89a7fa064f2d10f749a90cce", features = ["frost", "frost-rerandomized"] }
siphasher = { version = "1.0.0", features =["serde_no_std"] }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Allows siphasher to be used with both std and no-std

@jowparks jowparks changed the base branch from main to no-std August 7, 2024 22:44
@jowparks jowparks changed the title upgrades reddsa to newer commit to use frost 2.0.0-rc no-std ironfish-frost compatibility Aug 8, 2024
@jowparks jowparks force-pushed the no-std branch 5 times, most recently from 93a6030 to ddfbe11 Compare August 8, 2024 21:46
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