-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description:
Currently, individual ECPoint{T,C} objects print with full curve context:
(31π½ββ,51π½ββ)
(14π½ββ,4π½ββ) β Weierstrass{Fp{UInt128, 31}}
This becomes verbose and visually noisy when printing collections of points, especially in REPL sessions, logs, or documentation.
Proposal
Implement a unified Base.show method for collections of ECPoint{T,C} using clean group-theoretic notation:
{ (7, 58), (8, 12), (34, 45), (β, β) } β TwistedEdwards{π½ββ} # collection of points
(7, 58) β TwistedEdwards{π½ββ} # individual pointBenefits
- Concise and mathematically expressive.
- Avoids repetition of curve metadata.
- Improves readability of test/debug output.
- Fits formal/academic documentation styles.
Tasks
- Add
Base.showoverload forVector{ECPoint{T,C}}. - Add fallback for empty vector:
{} β CurveName{π½β}. - Consider extending to
Set{ECPoint}and other iterable types. - Optional: support pretty-aligned output for large sets.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels