1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Pavol Rusnak
4fb3cf55eb
BIP 155: add Yggdrasil 2021-11-18 23:55:55 +01:00
Vasil Dimov
337114b06e
BIP155: extra-clarify the semantic of sendaddrv2 2021-06-16 13:58:53 +02:00
kiminuo
cd1f225a0b BIP 155: Remove bitcoin.org link. 2021-02-10 08:07:09 +01:00
Vasil Dimov
e549ed36e8
BIP155: change when sendaddrv2 is to be sent
Mandate to send `sendaddrv2` to the peer before sending our `verack`
to them.

This way we know that the peer does not support `addrv2` if we did not
receive `sendaddrv2` from them before receiving their `verack`.
2020-12-08 10:35:24 +01:00
Wladimir J. van der Laan
ebeb28ee0e
Merge #1002: BIP155: Mention SHA3-256 explicitly
6ef71b344c BIP155: Small text improvements (Hennadii Stepanov)
562f1d7188 BIP155: Mention SHA3-256 explicitly (Hennadii Stepanov)

Pull request description:

  It seems better to clarify that `CHECKSUM` in Tor onion v3 address uses SHA3-256 hash function.

ACKs for top commit:
  vasild:
    ACK 6ef71b344
  laanwj:
    ACK 6ef71b344c

Tree-SHA512: b88c7dfeeda2a99cfe1042c9f4e7cbeb6047882bf97ce9c1dd5e1f4a30203a9a03702638cc4b6c3b573f6c0a05b73a5ca43a77352a5ca24a32d19be129f8b317
2020-10-06 15:51:27 +02:00
Luke Dashjr
94073deb66
Merge pull request #967 from vasild/bip155_time_and_varint
BIP155: clarify variable integer format and change time to fixed 32 bit
2020-10-01 14:07:41 +00:00
Vasil Dimov
87ef5aaa7c
BIP155: clarify that "services" uses CompactSize
The Bitcoin Core source code has `VARINT` type which is different than
the "variable integer" format used all over the P2P protocol and also
for the "services" field in this BIP. The latter is called `CompactSize`
in some BIPs and also in the Bitcoin Core source code, thus use the word
`CompactSize` to refer to it and link to its documentation.
2020-09-29 11:12:43 +02:00
Hennadii Stepanov
6ef71b344c
BIP155: Small text improvements 2020-09-27 14:07:57 +03:00
Hennadii Stepanov
562f1d7188
BIP155: Mention SHA3-256 explicitly 2020-09-27 14:06:19 +03:00
Vasil Dimov
2c7630ec61
BIP155: change "time" to fixed 32 bit unsigned
32 bit unsigned can represent time up to year 2106
(32 bit signed is limited to just 2038).

So, we don't need to have "time" encoded as variable integer which would
take 5 bytes instead of 4.
2020-08-13 11:53:30 +02:00
Vasil Dimov
350189ad48
BIP155: use a dedicated message for signalling
Change signaling of support for the new `addrv2` messages to be done via
a dedicated message `sendaddrv2` instead of protocol bump.

The drawback of using a protocol bump is that the protocol version is
not a bitmask and if a node wants to announce support for `addrv2` this
would imply support for all prior features included in that protocol
version.
2020-07-16 20:38:02 +02:00
Vasil Dimov
42ee3f5c15
BIP155: include changes from followup discussions
* Increase the maximum length of an address from 32 to 512 bytes and
  clarify that the entire message should be rejected if it contains
  a longer address.
  (from https://github.com/bitcoin/bips/pull/766#issuecomment-519248699)

* Remove a contradiction about unknown address types - "MUST ignore" VS
  "MAY store and gossip".

* Recommend gossiping addresses for networks to which the node is not
  currently connected to.
  (from https://github.com/bitcoin/bips/pull/766#issuecomment-545067608)

* Clarify that the entire message should be rejected if it contains an
  address with unexpected size (e.g. IPv4 address with length 5).
2020-07-16 20:37:20 +02:00
Wladimir J. van der Laan
e993478060 bip155: Fix comments URL 2019-07-18 00:33:26 +02:00
Wladimir J. van der Laan
34534b5ee1 bip155: fill in BIP number 2019-07-18 00:17:55 +02:00