You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the x509 marshal/unmarshal will get you an ecdsa key.
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
Proposal Details
I am seeing no way to return the public X,Y from a fixed private key. this creates a fixed private key:
https://pkg.go.dev/crypto/ecdh#Curve.NewPrivateKey
then you can get the public key:
https://pkg.go.dev/crypto/ecdh#PrivateKey.PublicKey
but it stops after that because they X,Y are not available. you can create a private key like this:
https://pkg.go.dev/crypto/ecdsa#GenerateKey
then get X,Y via
but I see no way to create a fixed private key. even if you constructed a deterministic rand:
it seems it wouldnt matter:
for prior art, you can do this with Python:
https://pycryptodome.readthedocs.io/en/latest/src/public_key/ecc.html#Crypto.PublicKey.ECC.EccKey
The text was updated successfully, but these errors were encountered: