mirror of https://github.com/nucypher/nucypher.git
nucypher-core had address parameter names normalized
parent
687830bd4d
commit
2e5dd70e51
|
@ -1012,7 +1012,7 @@ class Ursula(Teacher, Character, Operator):
|
||||||
decentralized_identity_evidence = None
|
decentralized_identity_evidence = None
|
||||||
else:
|
else:
|
||||||
decentralized_identity_evidence = self.decentralized_identity_evidence
|
decentralized_identity_evidence = self.decentralized_identity_evidence
|
||||||
payload = NodeMetadataPayload(canonical_address=self.canonical_address,
|
payload = NodeMetadataPayload(staker_address=self.canonical_address,
|
||||||
domain=self.domain,
|
domain=self.domain,
|
||||||
timestamp_epoch=timestamp.epoch,
|
timestamp_epoch=timestamp.epoch,
|
||||||
decentralized_identity_evidence=decentralized_identity_evidence,
|
decentralized_identity_evidence=decentralized_identity_evidence,
|
||||||
|
|
|
@ -95,7 +95,7 @@ class Vladimir(Ursula):
|
||||||
# so it should work regardless of the binary format.
|
# so it should work regardless of the binary format.
|
||||||
|
|
||||||
# Our basic replacement. We want to impersonate the target Ursula.
|
# Our basic replacement. We want to impersonate the target Ursula.
|
||||||
metadata_bytes = metadata_bytes.replace(metadata.payload.canonical_address,
|
metadata_bytes = metadata_bytes.replace(metadata.payload.staker_address,
|
||||||
vladimir.canonical_address)
|
vladimir.canonical_address)
|
||||||
|
|
||||||
# Use our own verifying key
|
# Use our own verifying key
|
||||||
|
|
|
@ -120,7 +120,7 @@ class NodeSprout:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def canonical_address(self):
|
def canonical_address(self):
|
||||||
return self._metadata_payload.canonical_address
|
return self._metadata_payload.staker_address
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def nickname(self):
|
def nickname(self):
|
||||||
|
|
|
@ -29,7 +29,7 @@ class RevocationKit:
|
||||||
self.revocations = dict()
|
self.revocations = dict()
|
||||||
for ursula_address, encrypted_kfrag in treasure_map.destinations.items():
|
for ursula_address, encrypted_kfrag in treasure_map.destinations.items():
|
||||||
self.revocations[ursula_address] = RevocationOrder(signer=signer.as_umbral_signer(),
|
self.revocations[ursula_address] = RevocationOrder(signer=signer.as_umbral_signer(),
|
||||||
ursula_address=ursula_address,
|
staker_address=ursula_address,
|
||||||
encrypted_kfrag=encrypted_kfrag)
|
encrypted_kfrag=encrypted_kfrag)
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
|
|
|
@ -68,7 +68,7 @@ class Dummy: # Teacher
|
||||||
|
|
||||||
def metadata(self):
|
def metadata(self):
|
||||||
signer = Signer(SecretKey.random())
|
signer = Signer(SecretKey.random())
|
||||||
payload = NodeMetadataPayload(canonical_address=self.canonical_address,
|
payload = NodeMetadataPayload(staker_address=self.canonical_address,
|
||||||
domain=':dummy:',
|
domain=':dummy:',
|
||||||
timestamp_epoch=0,
|
timestamp_epoch=0,
|
||||||
decentralized_identity_evidence=b'\x00' * LENGTH_ECDSA_SIGNATURE_WITH_RECOVERY,
|
decentralized_identity_evidence=b'\x00' * LENGTH_ECDSA_SIGNATURE_WITH_RECOVERY,
|
||||||
|
|
Loading…
Reference in New Issue