mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 07:00:54 +00:00
Fix bugs in secio implementation
This commit is contained in:
@ -23,6 +23,6 @@ def create_ephemeral_key_pair(curve_type: str) -> Tuple[PublicKey, SharedKeyGene
|
||||
private_key = cast(ECCPrivateKey, key_pair.private_key)
|
||||
secret_point = curve_point * private_key.impl.d
|
||||
byte_size = secret_point.size_in_bytes()
|
||||
return secret_point.x.to_bytes(byte_size, byteorder="big")
|
||||
return secret_point.x.to_bytes(byte_size)
|
||||
|
||||
return key_pair.public_key, _key_exchange
|
||||
|
||||
Reference in New Issue
Block a user