Remove unnecessary to_base()

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
therealyingtong 2021-05-09 13:36:20 +08:00
parent 77f1299d9b
commit d5a8927316
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ def prf_nf_orchard(nk, rho):
return poseidon_hash(nk, rho)
def derive_nullifier(nk, rho: Fp, psi: Fp, cm):
scalar = to_base(prf_nf_orchard(nk, rho)) + psi # addition mod p
scalar = prf_nf_orchard(nk, rho) + psi # addition mod p
point = NULLIFIER_K_BASE * to_scalar(scalar) + cm
return point.extract()