Skip to content

Commit 9438d3e

Browse files
authored
Update EIP-1: Allow links to portal-network-specs
Merged by EIP-Bot.
1 parent 4183219 commit 9438d3e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

EIPS/eip-1.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,24 @@ Permitted Networking Specifications URLs must anchor to a specific commit, and s
274274
^https://github.com/ethereum/devp2p/(blob|commit)/[0-9a-f]{40}/.*$
275275
```
276276

277+
### Portal Specifications
278+
279+
Links to specific commits of files within the Ethereum Portal Specifications may be included using normal markdown syntax, such as:
280+
281+
```markdown
282+
[Portal Wire Protocol](https://github.com/ethereum/portal-network-specs/blob/5e321567b67bded7527355be714993c24371de1a/portal-wire-protocol.md)
283+
```
284+
285+
Which renders as:
286+
287+
[Portal Wire Protocol](https://github.com/ethereum/portal-network-specs/blob/5e321567b67bded7527355be714993c24371de1a/portal-wire-protocol.md)
288+
289+
Permitted Networking Specifications URLs must anchor to a specific commit, and so must match this regular expression:
290+
291+
```regex
292+
^https://github.com/ethereum/portal-network-specs/(blob|commit)/[0-9a-f]{40}/.*$
293+
```
294+
277295
### World Wide Web Consortium (W3C)
278296

279297
Links to a W3C "Recommendation" status specification may be included using normal markdown syntax. For example, the following link would be allowed:

config/eipw.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ exceptions = [
154154
'^https://(www\.)?github\.com/ethereum/yellowpaper/commit/[a-f0-9]{40}$',
155155
'^https://(www\.)?github\.com/ethereum/devp2p/(blob|tree)/[0-9a-f]{40}/.+$',
156156
'^https://(www\.)?github\.com/ethereum/devp2p/commit/[0-9a-f]{40}$',
157+
'^https://(www\.)?github\.com/ethereum/portal-network-specs/(blob|tree)/[0-9a-f]{40}/.+$',
158+
'^https://(www\.)?github\.com/ethereum/portal-network-specs/commit/[0-9a-f]{40}$',
157159
'^https://(www\.)?github\.com/bitcoin/bips/(blob|tree)/[0-9a-f]{40}/bip-[0-9]+\.mediawiki$',
158160
'^https://(www\.)?github\.com/ChainAgnostic/CAIPs/(blob|tree)/[a-f0-9]{40}/.+$',
159161
'^https://(www\.)?github\.com/ChainAgnostic/CAIPs/commit/[0-9a-f]{40}$',

0 commit comments

Comments
 (0)