-
Notifications
You must be signed in to change notification settings - Fork 12
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
poseidon: replaced unimplemented with error and added solana feature flag #9
Conversation
light-poseidon/Cargo.toml
Outdated
@@ -9,6 +9,10 @@ keywords = ["cryptography", "hash", "poseidon", "zero-knowledge", "zkSNARK"] | |||
license = "Apache-2.0" | |||
edition = "2021" | |||
|
|||
[features] | |||
# limits the width of poseidon paramters to 13 (12 inputs) | |||
solana = [] |
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.
nit: I would rename it to something line width_limit_13
.
- That way, we could introduce other limits if there is need at any time.
- The first thing I'd think about when seeing this feature, without knowing the code, would be "oh, this enables some solana-program/Anchor stuff in the crate".
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.
good point, I will change it
|
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.
Looks awesome, thanks!
Problems:
Solution: