waku-org / js-noise

Browser library using Noise Protocols for Waku Payload Encryption https://rfc.vac.dev/spec/35/
Apache License 2.0
3 stars 2 forks source link

feat: consume common interface for Sender/Receiver #14

Closed weboko closed 1 year ago

weboko commented 1 year ago

After publishing Noise example it is visible that whoever uses library will need to declare herself Sender/Receiver pairs. We should find a way to reduce this boilerplate code.

https://github.com/waku-org/js-waku-examples/pull/177#discussion_r1082108188

cc: @fryorcraken

weboko commented 1 year ago

Related to https://github.com/waku-org/js-waku/issues/1220 Should be resolved by https://github.com/waku-org/js-noise/pull/33

fryorcraken commented 1 year ago

The interface for "responder" does not use IReceiver. Is that expected?

weboko commented 1 year ago

Not at all. As I mentioned https://github.com/waku-org/js-waku-examples/pull/223#discussion_r1156529324 I will publish following PR for example and the lib. Let's indeed keep the issue open