Use a different ECC backend with a compatible serializer

This library has the ``SEC1`` encoder which is compatible
with the serialization of ECC keys/points used in the Go libp2p impl
This commit is contained in:
Alex Stokes
2019-09-03 13:21:07 -07:00
parent eaeb36c1d9
commit 30456f8018
4 changed files with 39 additions and 23 deletions

View File

@ -283,7 +283,7 @@ async def _establish_session_parameters(
remote_ephemeral_public_key_bytes = remote_exchange.ephemeral_public_key
remote_ephemeral_public_key = ECCPublicKey.from_bytes(
remote_ephemeral_public_key_bytes
remote_ephemeral_public_key_bytes, curve_param
)
remote_encryption_parameters.ephemeral_public_key = remote_ephemeral_public_key
remote_selection = (