forked from lthn/blockchain
crypto: scalar_t::assign_mul
This commit is contained in:
parent
eaa3b92963
commit
5b1fa3d5e8
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue