-
Notifications
You must be signed in to change notification settings - Fork 503
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
Deprecate BASEPOINT_ORDER
from pub API consts
#581
Deprecate BASEPOINT_ORDER
from pub API consts
#581
Conversation
curve25519-dalek/src/constants.rs
Outdated
@@ -94,6 +78,9 @@ pub const BASEPOINT_ORDER: Scalar = Scalar { | |||
], | |||
}; | |||
|
|||
#[allow(deprecated)] | |||
pub(crate) const BASEPOINT_ORDER_PRIVATE: Scalar = BASEPOINT_ORDER; |
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.
Maybe reverse this relationship so BASEPOINT_ORDER_PRIVATE
defines the constant and BASEPOINT_ORDER
points to BASEPOINT_ORDER_PRIVATE
?
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.
ah ofcourse, thanks 💜
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.
It seems like there are a lot of unrelated changes in this PR now?
2b07c1d
to
0218b77
Compare
Fixed - Forgot to rebase |
Co-authored-by: Tony Arcieri <[email protected]>
Edit: I found another way, never mind! |
@marshallpierce what was the solution? 🤔 Just making your own constant? |
It turned out I was doing curve operations in a needlessly complex way. I don't have the details in front of me, but tl;dr I found a way to do what I needed to do using other public parts of the API. |
Deprecates
BASEPOINT_ORDER
from pub API constantsRedirect internally to avoid deprecation errors