← Files AgentBrokoARCHIVED FILE

.venv/Lib/site-packages/eth_keys/backends/base.py

1.04 KB · Oct 2, 2026 · 00:32 UTC

↓ Download file

from eth_keys.datatypes import (
    BaseSignature,
    NonRecoverableSignature,
    PrivateKey,
    PublicKey,
    Signature,
)


class BaseECCBackend:
    def ecdsa_sign(self, msg_hash: bytes, private_key: PrivateKey) -> Signature:
        raise NotImplementedError()

    def ecdsa_sign_non_recoverable(
        self, msg_hash: bytes, private_key: PrivateKey
    ) -> NonRecoverableSignature:
        raise NotImplementedError()

    def ecdsa_verify(
        self, msg_hash: bytes, signature: BaseSignature, public_key: PublicKey
    ) -> bool:
        raise NotImplementedError()

    def ecdsa_recover(self, msg_hash: bytes, signature: Signature) -> PublicKey:
        raise NotImplementedError()

    def private_key_to_public_key(self, private_key: PrivateKey) -> PublicKey:
        raise NotImplementedError()

    def decompress_public_key_bytes(self, compressed_public_key_bytes: bytes) -> bytes:
        raise NotImplementedError()

    def compress_public_key_bytes(self, uncompressed_public_key_bytes: bytes) -> bytes:
        raise NotImplementedError()

SHA-256: b4cbb1843cede66717bd67d9850673aec5263e4d9cb8e6de9eed0cf6212791af