This would then use listen_curve() on that address (in addition to any of the listen_plain()s that happen from the bind options currently).
listen_curve() takes an "allow" callback: the allow callback would be looking at the public key and return AuthLevel::admin if it is in the curve_pubkey list, otherwise AuthLevel::denied to refuse the connection.
Something that would be very useful is to be able to expose an encrypted/authenticated but public listener. This needs two config additions:
listen_curve()
.Something like this in the config:
This would then use
listen_curve()
on that address (in addition to any of thelisten_plain()
s that happen from thebind
options currently).listen_curve()
takes an "allow" callback: the allow callback would be looking at the public key and returnAuthLevel::admin
if it is in thecurve_pubkey
list, otherwiseAuthLevel::denied
to refuse the connection.Originally posted by @jagerman in https://github.com/oxen-io/lokinet/issues/2111#issuecomment-1382254445