FiloSottile / FiloSottile/edwards25519

Add BytesMontgomery method to Scalar type

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
188
Forks
39
PR merge metrics
No merged PRs in 30d

Description

`Point` has `BytesMontgomery` which can be used to convert Ed25519 public key to X25519 public key quite easily.

However, there's no such thing for `Scalar`. Conversion should be quite simple. `libsodium` has [crypto_sign_ed25519_sk_to_curve25519](https://github.com/jedisct1/libsodium/blob/7d15af325d1bc6f20dd04df979c82c16e0e2ce2f/src/libsodium/crypto_sign/ed25519/ref10/keypair.c#L71) which does exactly this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.