-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: quic #1265
base: master
Are you sure you want to change the base?
feat: quic #1265
Conversation
c1294d4
to
8d7e551
Compare
18e5b7f
to
55c664a
Compare
Looks like there are some issues with building mbed-tls in windows, macos(arm64) and linux(i386). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
||
let keypair = KeyPair(seckey: self.privateKey, pubkey: pubkey) | ||
|
||
let certPair = generate(keypair, EncodingFormat.PEM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
generate
what? it's deductible from context that certificate is created but better naming would be appreciated. eg.certificate.generate
orgenerateCertificate
... -
also
generate
returns tuple, but why not named tuple? or why not simple type? usage likecertPair[0]
,certPair[1]
is not really readable and understandable unless you go into the function.
i know it's not related to this pr, but if you agree we can create issue for this, ideal for "good first issues" lable.
This PR enables quic transport with a proper TLS backend, and tests connection and comms between two nodes. There are still some pending items like dealing with port
0
in multiaddresses, as well as well as ensuring that connections/streams lifetime is handled correctly. This is to be done in upcoming PRsDo note that one of the commits changes the
not implemented
assertion to something that gives a bit more context, so it's easier to know which abstract method a dev forgot to implement.