Skip to content

Commit

Permalink
xmr: crypto - sc_inv_into added
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Aug 17, 2018
1 parent b09415c commit 5d505c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/apps/monero/xmr/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,16 @@ def sc_muladd_into(r, aa, bb, cc):
return tcry.muladd256_modm(r, aa, bb, cc)


def sc_inv_into(r, x):
"""
Modular inversion mod curve order L
:param r:
:param x:
:return:
"""
return tcry.inv256_modm(r, x)


def random_scalar():
return tcry.xmr_random_scalar()

Expand Down

0 comments on commit 5d505c4

Please sign in to comment.