mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #3938
01cc978
ringct: remove an unnecessary scalarmultBase in zeroCommit (moneromooo-monero)
This commit is contained in:
commit
34c57d071f
3 changed files with 12 additions and 4 deletions
|
@ -1061,3 +1061,13 @@ TEST(ringct, key_ostream)
|
|||
out.str()
|
||||
);
|
||||
}
|
||||
|
||||
TEST(ringct, zeroCommmit)
|
||||
{
|
||||
static const uint64_t amount = crypto::rand<uint64_t>();
|
||||
const rct::key z = rct::zeroCommit(amount);
|
||||
const rct::key a = rct::scalarmultBase(rct::identity());
|
||||
const rct::key b = rct::scalarmultH(rct::d2h(amount));
|
||||
const rct::key manual = rct::addKeys(a, b);
|
||||
ASSERT_EQ(z, manual);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue