aboutsummaryrefslogtreecommitdiff
path: root/curve/curve.go
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@kesim.org>2024-03-21 20:12:42 +0100
committerÖzgür Kesim <oec@kesim.org>2024-03-21 20:12:42 +0100
commit3ba341e3c464e7a92bc99fd7d8bde65737c1aac9 (patch)
tree699c7215c1ce904591cc6a9fb2c8dd2e0265e20f /curve/curve.go
parent8eeb35615f0483e21dc48f96877a2681cf48b1ec (diff)
veto, curve: slight refactor
- Mult -> Mul - newVoteWithRand uses input rand io.Reader again.
Diffstat (limited to 'curve/curve.go')
-rw-r--r--curve/curve.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/curve/curve.go b/curve/curve.go
index 75626bd..36c9eed 100644
--- a/curve/curve.go
+++ b/curve/curve.go
@@ -12,7 +12,7 @@ type Data interface {
type SomeScalar[S Data] interface {
Add(S) S
Sub(S) S
- Mult(S) S
+ Mul(S) S
Equal(S) bool
// Maybe later:
@@ -36,7 +36,7 @@ type SomeCurve[S SomeScalar[s], s Data, P SomePoint[S, s, p], p Data] interface
}
type SomePoint[S SomeScalar[s], s Data, P Data] interface {
- Mult(P) P
+ Mul(P) P
Div(P) P
Inv() P
Exp(S) P
@@ -60,4 +60,4 @@ type APoint[S SomeScalar[s], s Data, P Data] interface {
ScalarMult(S) P
Equal(P) bool
}
-*/ \ No newline at end of file
+*/