fix invalid signatures for missing certificates
This commit is contained in:
parent
47bc1526f7
commit
65f3d78084
1 changed files with 2 additions and 2 deletions
|
@ -324,10 +324,10 @@ def _verify_proof(name, claim_trie_root, result, height, depth, ledger):
|
|||
|
||||
def validate_claim_signature_and_get_channel_name(claim_result, certificate_claim, ledger,
|
||||
claim_tx=None, cert_tx=None):
|
||||
valid_signature = False
|
||||
if cert_tx and certificate_claim and claim_tx and claim_result:
|
||||
tx = Transaction(unhexlify(claim_tx))
|
||||
cert_tx = Transaction(unhexlify(cert_tx))
|
||||
valid_signature = False
|
||||
try:
|
||||
valid_signature = tx.outputs[claim_result['nout']].is_signed_by(
|
||||
cert_tx.outputs[certificate_claim['nout']], ledger
|
||||
|
|
Loading…
Add table
Reference in a new issue