Comments (13)
No.
Jacobian point (xyz) multiplication is specific to curve with a=0 (secp256k1). You will need to adjust JacobianPoint#double and #add methods.
See hyperelliptic.org for those formulas. They should be fairly straightforward to implement.
https://www.hyperelliptic.org/EFD/g1p/auto-shortw-jacobian.html
As soon as you adjust those, check if USE_ENDOMORPHISM is automatically set to false, because endomorphism is specific to koblitz curves. The code already supports no-endo case.
from noble-secp256k1.
Thanks, was looking like that might be the case.
Was thrown by this line: https://github.com/paulmillr/noble-secp256k1/blob/master/index.ts#L48
Nice article and lib! You thought of supporting some other curves for ecdsa ?
from noble-secp256k1.
Right now i’m finalizing bls12-381, a nice pairing-friendly curve. It allows to verify 1000 signatures at a cost of verifying one signature, so it’s awesome.
It would be great to implement ed448, but haven’t had time to do this yet.
As for nist curves, they are implemented almost everywhere natively, so not seeing personal need for those.
from noble-secp256k1.
they are implemented almost everywhere natively
Right, I was porting https://github.com/privacypass/challenge-bypass-extension from sjcl to elliptic/bn.js as a way of learning more about the privacypass protocol and ECC.
Web crypto ("native" in the browser context) doesn't seem to expose any of the scalar multiplication primitives, only signing/verifying operations etc.
not seeing personal need for those
Fair :)
from noble-secp256k1.
Nice! It’s very useful extension. I hate those captchas & cloudflare. What operations are required in privacypass? I guess, ECDH?
from noble-secp256k1.
from noble-secp256k1.
from noble-secp256k1.
As for hash-to-curve, take a look at my bls12-381 repo. I have been working on applying the exact same standard to the curve for the last couple weeks. It can be reused for p256.
from noble-secp256k1.
from noble-secp256k1.
Do you have this working somewhere?
from noble-secp256k1.
No, I've moved onto other things for the moment. The existing sjcl impl is working so it's hard to justify the time just at the moment.
Do you have this working somewhere?
Do you ?? :)
from noble-secp256k1.
Elliptic seems too slow with p256 curve ops so it's either improve that or modify this. Both would need auditing by people more knowledgeable than me.
from noble-secp256k1.
p256 is available in https://github.com/paulmillr/noble-curves
from noble-secp256k1.
Related Issues (20)
- Hex private keys should be more permissive. HOT 3
- Need a new function for a recovery(v) for HSM
- Upgrade to v2 causes etc.hmacSha256Sync not set HOT 1
- How do I initialize a Signature with the v2? HOT 3
- Non-https website don't have subtle property in window.crypto HOT 1
- 33bytes PK? (Migrating from curves => secp256k1) HOT 4
- {Help wanted} TypeError: undefined is not a function HOT 1
- More specific web crypto condition
- options @param sign(msgHash, privateKey, opts?) HOT 1
- Consider using subtle from global object instead of crypto module HOT 3
- What `xOnlyPointFromPoint()` equivalent would look like? HOT 1
- Signatures will randomly return as invalid. HOT 1
- nodeCrypto is truthy when disabled HOT 6
- Backwards compatbility with secp256k1-node HOT 3
- 1.7.1: `Point.add` is not throwing for "1 + -1 == 0/Infinity" HOT 3
- Removed v2 code snippets HOT 4
- Is this compatible with the elliptic package? HOT 4
- [doc] privateKeyTweakAdd and publicKeyTweakAdd for HD Wallets HOT 3
- Suggestion: Use globalThis.crypto instead of node crypto for cross-platform compatibility. HOT 2
- Generate seed phrase from private key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from noble-secp256k1.