This commit is contained in:
NIC619 2019-10-17 15:34:11 +08:00
parent 49bd460e37
commit 5063f0e2a6
No known key found for this signature in database
GPG Key ID: 570C35F5C2D51B17
3 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,12 @@
from Crypto.Hash import SHA256
from libp2p.crypto.keys import KeyPair, KeyType, PrivateKey, PublicKey
from nacl.exceptions import BadSignatureError
from nacl.public import PrivateKey as PrivateKeyImpl
from nacl.public import PublicKey as PublicKeyImpl
from nacl.signing import SigningKey, VerifyKey
import nacl.utils as utils
from libp2p.crypto.keys import KeyPair, KeyType, PrivateKey, PublicKey
class Ed25519PublicKey(PublicKey):
def __init__(self, impl: PublicKeyImpl) -> None:

View File

@ -22,5 +22,6 @@ class MissingLengthException(MsgioException):
class MissingMessageException(MsgioException):
pass
class DecryptionFailedException(MsgioException):
pass

View File

@ -3,8 +3,8 @@ import io
import itertools
from typing import Optional, Tuple
import multihash
from crypto.authenticated_encryption import InvalidMACException
import multihash
from libp2p.crypto.authenticated_encryption import (
EncryptionParameters as AuthenticatedEncryptionParameters,