Is sodium.crypto_stream_chacha20_NONCEBYTES guaranteed to stay constant? Would it be worth passing the nonce as length-prefixed so that the receiver does not need to know the length of the nonce in advance? It seems like the length shouldn't change, but wondering if length-prefixed makes sense since nonces are length-prefixed in hypercore-protocol.
Is
sodium.crypto_stream_chacha20_NONCEBYTES
guaranteed to stay constant? Would it be worth passing the nonce as length-prefixed so that the receiver does not need to know the length of the nonce in advance? It seems like the length shouldn't change, but wondering if length-prefixed makes sense since nonces are length-prefixed in hypercore-protocol.