Skip to content

Commit

Permalink
add ed25519.NewPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Jan 13, 2023
1 parent 88537d8 commit d6fd7c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ed25519/curve.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ type PointImpl struct {
inner *edwards25519.Point
}

func NewPoint(inner *edwards25519.Point) *PointImpl {
return &PointImpl{
inner: inner,
}
}

func (p *PointImpl) Copy() Point {
return &PointImpl{
inner: new(edwards25519.Point).Set(p.inner),
Expand Down

0 comments on commit d6fd7c0

Please sign in to comment.