Function couldBeCurvePoint

  • Report whether the given bytes decode to an Edwards25519 curve point.

    This over-approximates whatever the verifier's decoder accepts: small-order points and non-canonical encodings (such as y == p) count as curve points, matching decoders like filippo.io/edwards25519. Over-approximating is the safe direction here, because the only caller uses this to reject candidate post-quantum addresses that an Ed25519 key could also occupy.

    Parameters

    • keyBytes: Uint8Array

    Returns boolean

Generated using TypeDoc