Skip to content

Commit

Permalink
refactor(elliptic-curve.ts): remove redundant isFinitePoint and isPoi…
Browse files Browse the repository at this point in the history
…ntAtInfinity functions as they are not being used in the codebase
  • Loading branch information
ymekuria committed Jul 16, 2024
1 parent 869ebbb commit f2a62f6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions crypto/elliptic-curve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ type Conic = { z: bigint; y: bigint };

type STuple = { u: bigint; v: bigint; y: bigint };

function isFinitePoint(point: GroupAffine): point is FinitePoint {
return !point.infinity;
}

function isPointAtInfinity(point: GroupAffine): point is PointAtInfinity {
return point.infinity;
}

// reference implementation https://github.com/o1-labs/snarky/blob/78e0d952518f75b5382f6d735adb24eef7a0fa90/group_map/group_map.ml
const GroupMap = {
create: (F: FiniteField, params: GroupMapParams) => {
Expand Down

0 comments on commit f2a62f6

Please sign in to comment.