Package naconn provides node-oriented connection based on ETLS crypto connection.
This package requires a node ID resolver to work like a traditional DNS resolver, except that it resolves node IDs into IP addresses (and ports).
Dial connects to the node with remote node id.
DialEx connects to the node with remote node id.
GetSharedSecretWith gets shared symmetric key with ECDH.
RegisterResolver registers the default resolver.
NAConn defines node aware connection based on ETLS crypto connection.
Accept takes the ownership of conn and accepts it as a NAConn.
NewServerConn takes a raw connection and returns a new server side NAConn.
Handshake does the initial handshaking according to the connection role.
Remote returns the remote node ID of the NAConn.
Remoter defines the interface to acquire remote node ID.
Resolver defines the node ID resolver interface for node-oriented connection.