actually use the version const

This commit is contained in:
Giacomo Pasini 2023-05-24 14:48:17 +02:00
parent 255689151a
commit a8303c71a1
No known key found for this signature in database
GPG Key ID: FC08489D2D895D4B

View File

@ -48,7 +48,7 @@ class NormalMode:
@staticmethod
def generate_beacon(private_key: PrivateKey, view: View) -> RandomBeacon:
return RandomBeacon(1, bytes(BasicSchemeMPL.sign(private_key, view_to_bytes(view))))
return RandomBeacon(VERSION, bytes(BasicSchemeMPL.sign(private_key, view_to_bytes(view))))
class RecoveryMode:
@ -66,7 +66,7 @@ class RecoveryMode:
@staticmethod
def generate_beacon(last_beacon_entropy: Entropy, view: View) -> RandomBeacon:
return RandomBeacon(1, sha256(last_beacon_entropy + view_to_bytes(view)).digest())
return RandomBeacon(VERSION, sha256(last_beacon_entropy + view_to_bytes(view)).digest())
class RandomBeaconHandler: