python/ccf/receipt.py
def verify(root: str, signature: str, cert: Certificate):
    """
    Verify signature over root of Merkle Tree
    """
    sig = base64.b64decode(signature)
    pk = cert.public_key()
    assert isinstance(pk, ec.EllipticCurvePublicKey)
    pk.verify(
        sig,
        bytes.fromhex(root),
        ec.ECDSA(utils.Prehashed(hashes.SHA256())),
    )

    Verify signature over root of Merkle Tree
    
Verify signature over root of Merkle Tree
Verify signature over root of Merkle Tree
def verify(root: str, signature: str, cert: Certificate):
    sig = base64.b64decode(signature)
    pk = cert.public_key()
    assert isinstance(pk, ec.EllipticCurvePublicKey)
    pk.verify(
        sig,
        bytes.fromhex(root),
        ec.ECDSA(utils.Prehashed(hashes.SHA256())),
    )
def verify ( root : str , signature : str , cert : Certificate ) : sig = base64 . b64decode ( signature ) pk = cert . public_key ( ) assert isinstance ( pk , ec . EllipticCurvePublicKey ) pk . verify ( sig , bytes . fromhex ( root ) , ec . ECDSA ( utils . Prehashed ( hashes . SHA256 ( ) ) ) , )
Verify signature over root of Merkle Tree
Verify signature over root of Merkle Tree
"""
    Verify signature over root of Merkle Tree
    """
root
str
signature
str
cert
Certificate