src/node.py
def verify_transaction_signature(self, sender_address, signature, transaction):
        """
        Check that the provided signature corresponds to transaction
        signed by the public key (sender_address)
        """
        public_key = RSA.importKey(binascii.unhexlify(sender_address))
        verifier = PKCS1_v1_5.new(public_key)
        temp = transaction.to_dict2()
        h = SHA.new(str(temp).encode('utf8'))
        print("verify_transaction_signature ",verifier.verify(h, binascii.unhexlify(signature)))
        return verifier.verify(h, binascii.unhexlify(signature))

        Check that the provided signature corresponds to transaction
        signed by the public key (sender_address)
        
Check that the provided signature corresponds to transaction
signed by the public key (sender_address)
Check that the provided signature corresponds to transaction signed by the public key ( sender_address )
def verify_transaction_signature(self, sender_address, signature, transaction):
        public_key = RSA.importKey(binascii.unhexlify(sender_address))
        verifier = PKCS1_v1_5.new(public_key)
        temp = transaction.to_dict2()
        h = SHA.new(str(temp).encode('utf8'))
        print("verify_transaction_signature ",verifier.verify(h, binascii.unhexlify(signature)))
        return verifier.verify(h, binascii.unhexlify(signature))
def verify_transaction_signature ( self , sender_address , signature , transaction ) : public_key = RSA . importKey ( binascii . unhexlify ( sender_address ) ) verifier = PKCS1_v1_5 . new ( public_key ) temp = transaction . to_dict2 ( ) h = SHA . new ( str ( temp ) . encode ( 'utf8' ) ) print ( "verify_transaction_signature " , verifier . verify ( h , binascii . unhexlify ( signature ) ) ) return verifier . verify ( h , binascii . unhexlify ( signature ) )
Check that the provided signature corresponds to transaction
signed by the public key (sender_address)
Check that the provided signature corresponds to transaction signed by the public key ( sender_address )
"""
        Check that the provided signature corresponds to transaction
        signed by the public key (sender_address)
        """
self
sender_address
signature
transaction