aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/sca/target/base.py
blob: cc0436cb3b60ac463c96b2afe6f315d4bd9e2c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from abc import ABC, abstractmethod

from public import public


@public
class Target(ABC):
    """A target."""

    @abstractmethod
    def connect(self):
        """Connect to the target device."""
        ...

    @abstractmethod
    def disconnect(self):
        """Disconnect from the target device."""
        ...