mask is hash() in tests

Co-Authored-By: dankrad <dankrad@ethereum.org>
This commit is contained in:
Carl Beekhuizen 2019-06-24 16:08:13 +02:00 committed by GitHub
parent a5b22e13b8
commit d9644f518b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def get_valid_early_derived_secret_reveal(spec, state, epoch=None):
), ),
) )
# Generate the mask (any random 32 bytes will do) # Generate the mask (any random 32 bytes will do)
mask = reveal[:32] mask = hash(reveal)
# Generate masker's signature on the mask # Generate masker's signature on the mask
masker_signature = bls_sign( masker_signature = bls_sign(
message_hash=mask, message_hash=mask,