-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: no-std
Are you sure you want to change the base?
Conversation
…nfish-frost into no-std-multiencode
f2ee8c6
to
0b4c2b0
Compare
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)?; |
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.
Seems like we lost information with just using a generic InvalidInput error.
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.
Yea we did, but if we don't remove it we will have to encode these strings in the binary.
442cb7f
to
cd27561
Compare
9a8d28f
to
b590a9c
Compare
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"] } |
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.
Allows siphasher to be used with both std
and no-std
b590a9c
to
9a8d28f
Compare
93a6030
to
ddfbe11
Compare
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.