1
0
Fork 0
forked from lthn/blockchain

crypto: scalar_t::assign_mul

This commit is contained in:
sowle 2021-06-05 02:18:45 +03:00
parent eaa3b92963
commit 5b1fa3d5e8
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -315,6 +315,13 @@ namespace crypto
return *this;
}
// returns this = a * b
scalar_t& assign_mul(const scalar_t& a, const scalar_t& b)
{
sc_mul(m_s, a.m_s, b.m_s);
return *this;
}
/*
I think it has bad symantic (operator-like), consider rename/reimplement -- sowle
*/