-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
42 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .keys import VerifyingKey as VerifyingKey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from hashlib import _Hash | ||
from typing import Any, Callable, Literal, Optional, TypeVar, Union | ||
|
||
T = TypeVar("T") | ||
|
||
class BadSignatureError(Exception): ... | ||
|
||
class VerifyingKey: | ||
def verify( | ||
self, | ||
signature: Union[bytes | str], | ||
data: Union[bytes | str], | ||
hashfunc: Callable[[bytes], _Hash], | ||
) -> bool: ... | ||
@classmethod | ||
def from_der(cls, s: bytes) -> "VerifyingKey": ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Any, Iterator, Union | ||
|
||
class EntryList: | ||
data: list["Entry"] | ||
|
||
def __iter__(self) -> Iterator["Entry"]: ... | ||
|
||
class Entry: | ||
type_id: int | ||
data: Any | ||
|
||
def __init__(self, type_id: int, data: Any) -> None: ... | ||
|
||
def decode(data: bytes) -> EntryList: ... | ||
def encode(entries: Union[list[Entry], EntryList]) -> bytes: ... |