We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1ad7e commit 5efd62aCopy full SHA for 5efd62a
Meshtastic/Crypto/XEdDSASigning.cs
@@ -97,7 +97,8 @@ public static byte[] ConvertX25519PublicKeyToEd25519(byte[] x25519PublicKey)
97
// See: https://tools.ietf.org/html/rfc7748#section-5
98
99
// Curve25519 prime: 2^255 - 19
100
- BigInteger p = Ed25519FieldElement.Q;
+ // Ed25519 field prime: 2^255 - 19
101
+ BigInteger p = BigInteger.ValueOf(2).Pow(255).Subtract(BigInteger.ValueOf(19));
102
103
// Interpret the X25519 public key as a little-endian integer u
104
byte[] uBytes = new byte[32];
0 commit comments