Rename CRS to URS, matching version beta-21 of Sapling spec.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2018-06-04 15:30:05 +01:00
parent 3aa38fb3c9
commit 4806d8494b
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ from tv_output import render_args, render_tv
# This is chosen to be some random string that we couldn't have
# anticipated when we designed the algorithm, for rigidity purposes.
# We deliberately use an ASCII hex string of 32 bytes here.
CRS = b'096b36a5804bfacef1691e173c366a47ff5ba84a44f26ddd7e8d9f79d5b42df0'
URS = b'096b36a5804bfacef1691e173c366a47ff5ba84a44f26ddd7e8d9f79d5b42df0'
#
@ -17,7 +17,7 @@ CRS = b'096b36a5804bfacef1691e173c366a47ff5ba84a44f26ddd7e8d9f79d5b42df0'
def group_hash(D, M):
digest = blake2s(person=D)
digest.update(CRS)
digest.update(URS)
digest.update(M)
p = Point.from_bytes(digest.digest())
if not p: