-
Notifications
You must be signed in to change notification settings - Fork 4
feat: stack upgrade 2026 01 #55
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e6c2c29
chore: update deps
hieu-w bc2ae5c
chore: min node 22, node 24 active
hieu-w ba8fa1f
fix: lint
hieu-w e4fe95d
chore: update html test
hieu-w 803c820
chore: add guide test html
hieu-w d26afe2
chore: update deps
hieu-w 0c15dc9
fix: lint
hieu-w 5ed8f1a
fix: wrong lint command
hieu-w 0d9c297
fix: remove unused package
hieu-w e870add
fix: browser test
hieu-w File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,5 @@ | |
| /build/ | ||
| *.swp | ||
| dist/ | ||
| .DS_Store | ||
| .eslintcache | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| >=20.x | ||
| >=24.x | ||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,44 @@ | ||
| <!-- | ||
| To run the test, you need to run the following command: | ||
| npx vite . | ||
| This will start a development server at http://localhost:5173/ | ||
| then open the browser and go to http://localhost:5173/test/index.html | ||
| you should see the test result in the console. | ||
| This is a simple test to verify that the eccrypto library is working in the browser. | ||
| It will generate a private key, get the public key, sign a message, and verify the signature. | ||
| It will then log the result to the console. | ||
| If the signature is verified, it will log "Signature verified" to the console. | ||
| If the signature is not verified, it will log the error to the console. | ||
| --> | ||
| <!DOCTYPE html> | ||
| <html> | ||
|
|
||
| <head> | ||
| Eccrypto Test | ||
| <title>Eccrypto Test</title> | ||
| <script type="importmap"> | ||
| { | ||
| "imports": { | ||
| "elliptic": "https://esm.sh/elliptic@6.6.1" | ||
| } | ||
| } | ||
| </script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <script src="../dist/eccrypto.umd.min.js"></script> | ||
| <script> | ||
| (async () => { | ||
| const priv = Eccrypto.generatePrivate(); | ||
| const pub = Eccrypto.getPublic(priv); | ||
| const msg = Eccrypto.generatePrivate(); | ||
| const sig = await Eccrypto.sign(priv, msg); | ||
| Eccrypto.verify(pub, msg, sig).then(console.log).catch(console.error); | ||
| })(); | ||
| <script type="module"> | ||
| // Buffer polyfill for browser | ||
| import { Buffer } from 'https://esm.sh/buffer@6.0.3'; | ||
| window.Buffer = Buffer; | ||
|
|
||
| // Now import eccrypto | ||
| const eccrypto = await import('../dist/lib.esm/index.js'); | ||
|
|
||
| const priv = eccrypto.generatePrivate(); | ||
| const pub = eccrypto.getPublic(priv); | ||
| const msg = eccrypto.generatePrivate(); | ||
| const sig = await eccrypto.sign(priv, msg); | ||
| eccrypto.verify(pub, msg, sig).then(() => console.log('Signature verified')).catch(console.error); | ||
| </script> | ||
| </body> | ||
|
|
||
| </html> |
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.