aboutsummaryrefslogtreecommitdiff
path: root/src/ringct/rctOps.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-29 15:03:00 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-11 13:38:04 +0000
commitc42917624849daeac0b4bc2fb1cd1f2539470b28 (patch)
tree301e71aef03eb5962360a95e2205432add3c78e9 /src/ringct/rctOps.h
parentbulletproofs: speed up a few multiplies using existing Hi cache (diff)
downloadmonero-c42917624849daeac0b4bc2fb1cd1f2539470b28.tar.xz
bulletproofs: reject points not in the main subgroup
Diffstat (limited to '')
-rw-r--r--src/ringct/rctOps.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ringct/rctOps.h b/src/ringct/rctOps.h
index f8889af5c..f0320f333 100644
--- a/src/ringct/rctOps.h
+++ b/src/ringct/rctOps.h
@@ -83,6 +83,7 @@ namespace rct {
keyM keyMInit(size_t rows, size_t cols);
//Various key generation functions
+ bool toPointCheckOrder(ge_p3 *P, const unsigned char *data);
//generates a random scalar which can be used as a secret key or mask
key skGen();
@@ -119,6 +120,8 @@ namespace rct {
key scalarmultKey(const key &P, const key &a);
//Computes aH where H= toPoint(cn_fast_hash(G)), G the basepoint
key scalarmultH(const key & a);
+ // checks a is in the main subgroup (ie, not a small one)
+ bool isInMainSubgroup(const key & a);
//Curve addition / subtractions