Skip to content

Confirm EcPointValidator.EnsureOnCurve is the public EC-validation entry point (decompress stays internal) #7

Description

@moisesja

Context

net-did has tests (EcPointValidatorTests) that reach into the internal DefaultCryptoProvider.DecompressEcPoint / DecompressSecp256k1Point. In NetCrypto these are internal (visible to NetCrypto.Tests only), so post-migration NetDid.Core.Tests cannot call them with a simple using swap.

Ask

Please confirm the intended public EC-validation surface is EcPointValidator.EnsureOnCurve (and friends), and that point decompression is intentionally an internal implementation detail.

net-did will rewrite those test cases against the public EcPointValidator API (which exercises the same on-curve validation), or delete them — the coverage is duplicated in NetCrypto.Tests.

No upstream change is preferred. Expose a public DecompressEcPoint only if you consider it generally useful (not recommended given the frozen-surface posture).

Severity

Minor.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions