mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
rebuild protobufs adding ECC_P256 to KeyType
This commit is contained in:
@ -182,8 +182,7 @@ class InsecureTransport(BaseSecureTransport):
|
||||
|
||||
def make_exchange_message(pubkey: PublicKey) -> plaintext_pb2.Exchange:
|
||||
pubkey_pb = crypto_pb2.PublicKey(
|
||||
# type ignored - TODO add ECD_P256 to KeyType
|
||||
key_type=pubkey.get_type().value, # type: ignore
|
||||
key_type=pubkey.get_type().value,
|
||||
data=pubkey.to_bytes(),
|
||||
)
|
||||
id_bytes = ID.from_pubkey(pubkey).to_bytes()
|
||||
|
||||
Reference in New Issue
Block a user