diff options
author | Shen Noether <Shen.Noether@gmx.com> | 2016-11-17 23:17:21 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-04 21:54:11 +0000 |
commit | 76958fc75abc18c928474eea91ac05fd5e0fcb41 (patch) | |
tree | 8644fe15b761d9121c23e67d0cd553505f8a0c04 /src/ringct/rctOps.cpp | |
parent | Merge pull request #1403 (diff) | |
download | monero-76958fc75abc18c928474eea91ac05fd5e0fcb41.tar.xz |
ringct: switch to Borromean signatures
Diffstat (limited to 'src/ringct/rctOps.cpp')
-rw-r--r-- | src/ringct/rctOps.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ringct/rctOps.cpp b/src/ringct/rctOps.cpp index cf55897a7..21f29ccf5 100644 --- a/src/ringct/rctOps.cpp +++ b/src/ringct/rctOps.cpp @@ -267,7 +267,7 @@ namespace rct { ge_p3_tobytes(AB.bytes, &A2); } - //checks if A, B are equal as curve points + //checks if A, B are equal in terms of bytes (may say no if one is a non-reduced scalar) //without doing curve operations bool equalKeys(const key & a, const key & b) { bool rv = true; @@ -359,6 +359,19 @@ namespace rct { return rv; } + key cn_fast_hash(const key64 keys) { + key rv; + cn_fast_hash(rv, &keys[0], 64 * sizeof(keys[0])); + //dp(rv); + return rv; + } + + key hash_to_scalar(const key64 keys) { + key rv = cn_fast_hash(keys); + sc_reduce32(rv.bytes); + return rv; + } + key hashToPointSimple(const key & hh) { key pointk; ge_p1p1 point2; |