mirror of
https://github.com/trezor/trezor-firmware.git
synced 2026-03-04 06:25:20 +01:00
Co-authored-by: M1nd3r <petrsedlacek.km@seznam.cz> Co-authored-by: Roman Zeyde <roman.zeyde@satoshilabs.com> [no changelog]
14 lines
283 B
Python
14 lines
283 B
Python
import typing as t
|
|
import typing_extensions as tx
|
|
|
|
Priv = t.TypeVar("Priv")
|
|
Pub = t.TypeVar("Pub")
|
|
|
|
class KeyPair(t.Generic[Priv, Pub]):
|
|
private: Priv
|
|
public: Pub
|
|
public_bytes: bytes
|
|
|
|
@classmethod
|
|
def from_private_bytes(cls, private_bytes: bytes) -> tx.Self: ...
|