-
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
Post code showcasing in/complete formula differences #38
Conversation
Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com>
Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com>
Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com>
Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com>
Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #38 +/- ##
==========================================
- Coverage 81.47% 74.41% -7.07%
==========================================
Files 16 22 +6
Lines 934 1501 +567
==========================================
+ Hits 761 1117 +356
- Misses 112 304 +192
- Partials 61 80 +19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Kudos, SonarCloud Quality Gate passed! |
|
GitGuardian id | Secret | Commit | Filename | |
---|---|---|---|---|
6384938 | Generic High Entropy Secret | 9eaf712 | internal/secp256k1/secp256k1_export.go | View secret |
6384938 | Generic High Entropy Secret | c64fa72 | internal/secp256k1/secp256k1_export.go | View secret |
6384938 | Generic High Entropy Secret | 11c69c1 | internal/secp256k1/secp256k1_export.go | View secret |
6384938 | Generic High Entropy Secret | e4201d7 | internal/secp256k1/secp256k1_export.go | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
This code shows differences in this implementation of outputs from complete and incomplete add and double on Secp256k1.
The incomplete formula is taken from: http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#addition-add-2007-bl
The complete formula is taken from: https://eprint.iacr.org/2015/1060.pdf
Go to internal/secp256k1 and run
go test
for the demo.