forked from LBRYCommunity/lbry-sdk
fix name is not part of old sigs
This commit is contained in:
parent
a9e0eeba7e
commit
fe9aa666e9
2 changed files with 0 additions and 2 deletions
|
@ -96,7 +96,6 @@ class Output(BaseOutput):
|
||||||
def is_signed_by(self, channel: 'Output', ledger=None):
|
def is_signed_by(self, channel: 'Output', ledger=None):
|
||||||
if self.claim.unsigned_payload:
|
if self.claim.unsigned_payload:
|
||||||
pieces = [
|
pieces = [
|
||||||
self.claim_name.lower().encode(),
|
|
||||||
Base58.decode(self.get_address(ledger)),
|
Base58.decode(self.get_address(ledger)),
|
||||||
self.claim.unsigned_payload,
|
self.claim.unsigned_payload,
|
||||||
self.claim.signing_channel_hash
|
self.claim.signing_channel_hash
|
||||||
|
|
|
@ -463,7 +463,6 @@ def generate_signed_legacy(name: str, address: bytes, output: Output):
|
||||||
))
|
))
|
||||||
claim.ClearField("publisherSignature")
|
claim.ClearField("publisherSignature")
|
||||||
digest = sha256(b''.join([
|
digest = sha256(b''.join([
|
||||||
name.lower().encode(),
|
|
||||||
decoded_address,
|
decoded_address,
|
||||||
claim.SerializeToString(),
|
claim.SerializeToString(),
|
||||||
output.claim_hash
|
output.claim_hash
|
||||||
|
|
Loading…
Reference in a new issue