Re: [bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol

2019-06-17 Thread Elichai Turkel via bitcoin-dev
Thanks, I just couldn't find where is the message sequence number comes from. So if it's max 1GB and it's an incremental counter that cannot be reseted without a rekeying than it's perfectly fine :). Thanks for the answer! On Mon, Jun 17, 2019 at 12:20 PM Jonas Schnelli wrote: > Hi Elichai > >

Re: [bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol

2019-06-17 Thread Jonas Schnelli via bitcoin-dev
Hi Elichai > About the nonce being 64bit. (rfc7539 changed it to 96bit, which djb later > calls xchacha) > > You suggest that we use the "message sequence number" as the nonce for > Chacha20, Is this number randomly generate or is this a counter? > And could it be reseted without rekeying? The

Re: [bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol

2019-06-17 Thread Elichai Turkel via bitcoin-dev
Hi everyone, About the nonce being 64bit. (rfc7539 changed it to 96bit, which djb later calls xchacha) You suggest that we use the "message sequence number" as the nonce for Chacha20, Is this number randomly generate or is this a counter? And could it be reseted without rekeying? If it is randoml

Re: [bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol (former BIP151)

2019-03-24 Thread Eric Voskuil via bitcoin-dev
On 03/22/2019 02:04 PM, Jonas Schnelli via bitcoin-dev wrote: > Proposal: > > >   BIP: ??? >   Layer: Peer Services >   Title: Version 2 Peer-to-Peer Message Transport Protocol >   Author: Jonas Schnelli >   Status: Draft >   Type: Standards Track >   Created: 2019-03-08 >   License: PD > > >

Re: [bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol (former BIP151)

2019-03-24 Thread Jonas Schnelli via bitcoin-dev
Hi Dave Thanks for the review... >> Short Command ID >> >> To save valuable bandwidth, the v2 message format supports message command >> short IDs for message types with high frequency. The ID/string mapping is a >> peer to peer arrangement and MAY be negotiated between the initiating

Re: [bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol (former BIP151)

2019-03-24 Thread David A. Harding via bitcoin-dev
On Sun, Mar 24, 2019 at 09:29:10AM -0400, David A. Harding via bitcoin-dev wrote: > Why is this optional and only specified here for some message types > rather than being required by v2 and specified for all message types? Gregory Maxwell discussed this with me on IRC[1]. My summary of our conv

Re: [bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol (former BIP151)

2019-03-24 Thread David A. Harding via bitcoin-dev
On Fri, Mar 22, 2019 at 10:04:46PM +0100, Jonas Schnelli via bitcoin-dev wrote: > === v2 Messages Structure === > > {|class="wikitable" > ! Field Size !! Description !! Data type !! Comments > [...] > | 1-13 || encrypted command || variable || ASCII command (or one byte short > command ID) > [...

[bitcoin-dev] New BIP - v2 peer-to-peer message transport protocol (former BIP151)

2019-03-22 Thread Jonas Schnelli via bitcoin-dev
Hi The overhauled version of the former BIP151 has fundamental differences and deserves (requires?) a new BIP. Calling it „v2 peer-to-peer message transport protocol“ is more accurate since it is no longer only about encryption. The formatted draft proposal can be found here: https://gist.gith