Commit Graph

12 Commits

Author SHA1 Message Date
94483714a3 run lint and fix errors, except mypy 2024-02-19 16:05:58 -07:00
bafdd8512d Enforce pre-summary newline in docstrings 2019-10-24 20:10:45 +02:00
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
8e913a3faa Dispatch serialization of keys based on key type
- Add some tests to check high-level roundtrip
2019-08-24 22:37:45 +02:00
fb13dfa7b3 Add sign and verify operations for secp256k1 keys 2019-08-24 22:37:44 +02:00
921bfb65cc Verify the remote pubkey and peer_id
- Add `from_bytes` in RSAPublicKey and Secp256k1PublicKey
- Add `pubkey_from_protobuf` to parse pubkey from protobuf
- Verify key and peer_id in `InsecureSession.run_handshake`
2019-08-22 22:53:48 +08:00
f2c31f6fe3 Fix isort 2019-08-16 11:03:16 +08:00
e37b8bcf19 mypy: Add read_buffer_nonblocking in Mplex 2019-08-16 11:03:16 +08:00
08e6f2a30c Update libp2p/crypto/secp256k1.py
pass the secret on to `coincurve` lib

Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-08-14 09:02:06 -07:00
53e583a068 Update libp2p/crypto/secp256k1.py
Pass the secret on to `coincurve` lib

Co-Authored-By: NIC Lin <twedusuck@gmail.com>
2019-08-14 09:02:06 -07:00
ad20d8cb00 Make a KeyPair dataclass for passing around key pairs 2019-08-14 09:00:40 -07:00
61f78c8feb Add abstraction for a cryptographic key 2019-08-14 09:00:39 -07:00