ed448: add todo comment

This commit is contained in:
Paul Miller 2023-08-27 16:49:50 +00:00
parent 1d5286ffa7
commit cf5f2268fb
No known key found for this signature in database
GPG Key ID: 697079DA6878B89B

@ -165,6 +165,7 @@ export function edwardsToMontgomeryPub(edwardsPub: string | Uint8Array): Uint8Ar
return Fp.toBytes(Fp.create((y - _1n) * Fp.inv(y + _1n))); return Fp.toBytes(Fp.create((y - _1n) * Fp.inv(y + _1n)));
} }
export const edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated export const edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated
// TODO: add edwardsToMontgomeryPriv, similar to ed25519 version
// Hash To Curve Elligator2 Map // Hash To Curve Elligator2 Map
const ELL2_C1 = (Fp.ORDER - BigInt(3)) / BigInt(4); // 1. c1 = (q - 3) / 4 # Integer arithmetic const ELL2_C1 = (Fp.ORDER - BigInt(3)) / BigInt(4); // 1. c1 = (q - 3) / 4 # Integer arithmetic