Remove whitespace in note_commit and commit_ivk personalisations

Co-authored-by: str4d <jack@z.cash>
This commit is contained in:
ying tong 2021-05-13 12:57:07 +08:00 committed by GitHub
parent e0b8fd639a
commit 99e7184038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ def sinsemilla_short_commit(r: Scalar, D, M):
def note_commit(rcm, g_d, pk_d, v, rho, psi):
return sinsemilla_commit(
rcm,
b"z.cash: Orchard-NoteCommit",
b"z.cash:Orchard-NoteCommit",
g_d + pk_d + i2lebsp(64, v) + i2lebsp(L_ORCHARD_BASE, rho.s) + i2lebsp(L_ORCHARD_BASE, psi.s)
)
@ -46,7 +46,7 @@ def rcm_trapdoor(rand):
def commit_ivk(rivk: Scalar, ak: Fp, nk: Fp):
return sinsemilla_short_commit(
rivk,
b"z.cash: Orchard-CommitIvk",
b"z.cash:Orchard-CommitIvk",
i2lebsp(L_ORCHARD_BASE, ak.s) + i2lebsp(L_ORCHARD_BASE, nk.s)
)