mirror of https://github.com/nucypher/nucypher.git
Removing Tread Certainty.
parent
b341a139ea
commit
fe30ffb199
|
@ -39,7 +39,7 @@ from nucypher.crypto.signing import SignatureStamp
|
||||||
from nucypher.network.middleware import RestMiddleware
|
from nucypher.network.middleware import RestMiddleware
|
||||||
|
|
||||||
|
|
||||||
class TreadsureMapSplitter(BrandingMixin, VersioningMixin, BytestringKwargifier):
|
class TreasureMapSplitter(BrandingMixin, VersioningMixin, BytestringKwargifier):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ class TreasureMap:
|
||||||
Takes a bytes representation of a treasure map and raises OldVersion
|
Takes a bytes representation of a treasure map and raises OldVersion
|
||||||
error is the version is incompatible or ValueError if the header is malformed.
|
error is the version is incompatible or ValueError if the header is malformed.
|
||||||
"""
|
"""
|
||||||
representation_metadata = TreadsureMapSplitter.get_metadata(bytes_representation)
|
representation_metadata = TreasureMapSplitter.get_metadata(bytes_representation)
|
||||||
|
|
||||||
# header = bytes_representation[:cls._HEADER_SIZE]
|
# header = bytes_representation[:cls._HEADER_SIZE]
|
||||||
brand_matches = representation_metadata['brand'] == cls._BRAND
|
brand_matches = representation_metadata['brand'] == cls._BRAND
|
||||||
|
@ -153,7 +153,7 @@ class TreasureMap:
|
||||||
hrac=(bytes, HRAC_LENGTH),
|
hrac=(bytes, HRAC_LENGTH),
|
||||||
message_kit=(UmbralMessageKit, VariableLengthBytestring),
|
message_kit=(UmbralMessageKit, VariableLengthBytestring),
|
||||||
)
|
)
|
||||||
cls._splitters[1] = TreadsureMapSplitter(cls,
|
cls._splitters[1] = TreasureMapSplitter(cls,
|
||||||
public_signature=Signature,
|
public_signature=Signature,
|
||||||
hrac=(bytes, HRAC_LENGTH),
|
hrac=(bytes, HRAC_LENGTH),
|
||||||
message_kit=(UmbralMessageKit, VariableLengthBytestring),
|
message_kit=(UmbralMessageKit, VariableLengthBytestring),
|
||||||
|
@ -351,7 +351,7 @@ class SignedTreasureMap(TreasureMap):
|
||||||
hrac=(bytes, HRAC_LENGTH),
|
hrac=(bytes, HRAC_LENGTH),
|
||||||
message_kit=(UmbralMessageKit, VariableLengthBytestring),
|
message_kit=(UmbralMessageKit, VariableLengthBytestring),
|
||||||
)
|
)
|
||||||
cls._splitters[1] = TreadsureMapSplitter(cls,
|
cls._splitters[1] = TreasureMapSplitter(cls,
|
||||||
blockchain_signature=65,
|
blockchain_signature=65,
|
||||||
public_signature=Signature,
|
public_signature=Signature,
|
||||||
hrac=(bytes, HRAC_LENGTH),
|
hrac=(bytes, HRAC_LENGTH),
|
||||||
|
|
Loading…
Reference in New Issue