How to get the remote publickey(node_id)? #3078
-
when the endpoint accept an incomming,How to get the remote publickey(node_id)? |
Beta Was this translation helpful? Give feedback.
Answered by
dignifiedquire
Dec 28, 2024
Replies: 1 comment
-
This is only available, once cthe You can see an example of this here: https://github.com/n0-computer/iroh/blob/main/iroh/examples/echo.rs#L80 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
matheus23
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is only available, once cthe
Incoming
has become aConnection
, at which point you can useget_remote_node_id
You can see an example of this here: https://github.com/n0-computer/iroh/blob/main/iroh/examples/echo.rs#L80