-
Notifications
You must be signed in to change notification settings - Fork 34
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
✨ Helper functions related to verifyMessage
util fn
#119
Conversation
* Added hashMessage to exports * ✨ Added splitSignature util fn * make gas price less flakey * ✨ Added `computeAddress` util fn (#116) * Added initial computeAddress fn, relies on ethers at the moment * Init computePublicKey util fn * ✨ Added computePublicKey util fn * 📝 Added documenation to computePublicKey * ⬆ Pre-commit hook package bump, added @noble/secp256k1 * ✨ Added `computePublicKey` util fn (#118) * Init computePublicKey util fn * ✨ Added computePublicKey util fn * 📝 Added documenation to computePublicKey * ⬆ Pre-commit hook package bump, added @noble/secp256k1 * 🧪 Pass computeAddress test * 📝 Add docs for computeAddress * 📝 Pre-commit script update readme and chains * 🧪 Pass tests with recoverPublicKey * 📝 Pre-commit script readme update Co-authored-by: daws.eth <dawsonbotsford@gmail.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
verifyMessage
util fnverifyMessage
util fn
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
==========================================
- Coverage 91.02% 85.58% -5.45%
==========================================
Files 34 37 +3
Lines 780 888 +108
Branches 220 258 +38
==========================================
+ Hits 710 760 +50
- Misses 64 113 +49
- Partials 6 15 +9
Continue to review full report at Codecov.
|
# Conflicts: # src/index.ts
# Conflicts: # readme.md # scripts/markdown-magic/typedoc.out.json
@dawsbot not sure if you saw but I requested you as a reviewer for this PR. I believe it should be ready to merge after you take a peek. The Codecov is bad because of the |
UPDATE: this PR was originally intended to close #26. However, because of complex issues with the cryptography, #26 will be put into the
Icebox
section of theMain Issues
project to be tackled at a later date. This PR now contains some of the key helper functions created for use in theverifyMessage
utility function.computePublicKey
helper ✨ AddedcomputePublicKey
util fn #118computeAddress
helper ✨ AddedcomputeAddress
util fn #116splitSignature
helper ✨ AddedsplitSignature
util fn #112Additional Tasks
(I was trying to breeze through those tedious helper functions but cut some corners along the way, want to go back and make sure that my tests are thorough and cover a variety of cases & types before this PR is merged)