mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-04-08 23:11:27 +00:00
run lint and fix errors, except mypy
This commit is contained in:
@ -1,6 +1,14 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum, unique
|
||||
from abc import (
|
||||
ABC,
|
||||
abstractmethod,
|
||||
)
|
||||
from dataclasses import (
|
||||
dataclass,
|
||||
)
|
||||
from enum import (
|
||||
Enum,
|
||||
unique,
|
||||
)
|
||||
|
||||
from .pb import crypto_pb2 as protobuf
|
||||
|
||||
@ -38,8 +46,10 @@ class PublicKey(Key):
|
||||
|
||||
@abstractmethod
|
||||
def verify(self, data: bytes, signature: bytes) -> bool:
|
||||
"""Verify that ``signature`` is the cryptographic signature of the hash
|
||||
of ``data``."""
|
||||
"""
|
||||
Verify that ``signature`` is the cryptographic signature of the hash
|
||||
of ``data``.
|
||||
"""
|
||||
...
|
||||
|
||||
def _serialize_to_protobuf(self) -> protobuf.PublicKey:
|
||||
|
||||
Reference in New Issue
Block a user