[noise] [NoiseSocket] First handshake message parsing questions

Trevor Perrin trevp at trevp.net
Mon Feb 27 20:32:28 PST 2017


On Mon, Feb 27, 2017 at 8:27 PM, Alexey Ermishkin <scratch.net at gmail.com> wrote:
> Thanks, will add this to the spec.
>
> One more question left :)
>
> When we calculate the prologue, its first byte is the amount of sub-messages we have in the first message.
> Maybe we should add this byte to the first message itself (right after length)?
> Instead of crawling through the message till EOF we then could use the simple for-loop to iterate over N sub-messages

I would say do whatever makes sense to you - you're working on some
code so you'll have a better feel for small decisions.

(Once you've got the spec and some working code it'll be easier for me
and others here to give feedback and see if we want to debate things
like this).

Trevor


More information about the Noise mailing list