mirror of https://github.com/zcash/zips.git
82 lines
5.4 KiB
HTML
82 lines
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="generator" content="pandoc" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
|
<title>ZIP guide: {Something Short and To the Point}</title>
|
|
<style type="text/css">
|
|
code{white-space: pre-wrap;}
|
|
span.smallcaps{font-variant: small-caps;}
|
|
span.underline{text-decoration: underline;}
|
|
div.column{display: inline-block; vertical-align: top; width: 50%;}
|
|
</style>
|
|
<link rel="stylesheet" href="css/zip-style.css"><link rel="stylesheet" href="assets/css/style.css"></head>
|
|
<body>
|
|
<pre><code>ZIP: Unassigned {numbers are assigned by ZIP editors}
|
|
Title: {Something Short and To the Point}
|
|
Owners: First Owner <email>
|
|
...
|
|
Credits: First Credited <optional email>
|
|
...
|
|
Status: Draft
|
|
Category: {Consensus | Standards Track | Network | RPC | Wallet | Informational | Process}
|
|
Created: yyyy-mm-dd
|
|
License: {usually MIT}</code></pre>
|
|
<h1 id="dont-panic">Don't Panic</h1>
|
|
<p>If this is your first time writing a ZIP, the structure and format may look intimidating. But really, it's just meant to reflect common-sense practice and some technical conventions. Feel free to start with a simple initial draft that gets ideas across, even if it doesn't quite follow this format. The community and ZIP editors will help you figure things out and get it into shape later.</p>
|
|
<p>{Delete this section.}</p>
|
|
<h1 id="terminology">Terminology</h1>
|
|
<p>{Edit this to reflect the key words that are actually used.} The key words "MUST", "MUST NOT", "SHOULD", and "MAY" in this document are to be interpreted as described in RFC 2119.<a href="#fn1" class="footnote-ref" id="fnref1"><sup>1</sup></a></p>
|
|
<p>The terms below are to be interpreted as follows:</p>
|
|
<dl>
|
|
<dt>{Term to be defined}</dt>
|
|
<dd><p>{Definition.}</p>
|
|
</dd>
|
|
<dt>{Another term}</dt>
|
|
<dd><p>{Definition.}</p>
|
|
</dd>
|
|
</dl>
|
|
<h1 id="abstract">Abstract</h1>
|
|
<p>{Describe what this proposal does, typically in a few paragraphs.}</p>
|
|
<p>{Use links where applicable, e.g.<a href="#fn2" class="footnote-ref" id="fnref2"><sup>2</sup></a>.}</p>
|
|
<h1 id="motivation">Motivation</h1>
|
|
<p>{Why is this proposal needed?</p>
|
|
<p>This is one of the most important sections of the ZIP, and should be detailed and comprehensive. It shouldn't include any of the actual specification --don't put conformance requirements in this section.</p>
|
|
<p>Explain the status quo, why the status quo is in need of improvement, and if applicable, the history of how this area has changed. Then describe <em>at a high level</em> why this proposed solution addresses the perceived issues. It is ok if this is somewhat redundant with the abstract, but here you can go into a lot more detail.}</p>
|
|
<h1 id="requirements">Requirements</h1>
|
|
<p>{Describe design constraints on, or goals for the solution -- typically one paragraph for each constraint or goal. Again, don't actually specify anything here; this section is primarily for use as a consistency check that what is specified meets the requirements.}</p>
|
|
<h1 id="non-requirements">Non-requirements</h1>
|
|
<p>{This section is entirely optional. If it is present, it describes issues that the proposal is <em>not</em> attempting to address, that someone might otherwise think it does or should.}</p>
|
|
<h1 id="specification">Specification</h1>
|
|
<p>{This section describes what should change, using precise language and conformance key words. Anything that is <em>required in order to implement the ZIP</em> (or follow its process, in the case of a Process ZIP) should be in this section.</p>
|
|
<p>Avoid overspecification! Also avoid underspecification. Specification is hard. Don't be afraid to ask for help.</p>
|
|
<p>Unless the specification is particularly simple, you will need to organise it under subheadings.}</p>
|
|
<h2 id="example-subheading">Example subheading</h2>
|
|
<p>{At least while the ZIP is in Draft, we encourage writing open questions and TODOs.}</p>
|
|
<h3 id="open-questions">Open questions</h3>
|
|
<ul>
|
|
<li>What happens if a full node can't parse the fandangle as a doohicky?</li>
|
|
</ul>
|
|
<p>TODO: define byte encoding for the Jabberwock.</p>
|
|
<p>{Feel free to copy from other ZIPs doing similar things, e.g. defining RPC calls, consensus rules, etc.}</p>
|
|
<h2 id="valid-restructuredtext">Valid reStructuredText</h2>
|
|
<p>This is optional before publishing a PR, but to check whether a document is valid reStructuredText, first install rst2html5:</p>
|
|
<pre><code>sudo apt-get install python-pip
|
|
sudo pip install rst2html5</code></pre>
|
|
<p>and then run:</p>
|
|
<pre><code>rst2html5 -v zip-xxxx.rst >zip-xxxx.html</code></pre>
|
|
<p>and view <code>zip-xxxx.html</code> in a web browser.</p>
|
|
<h1 id="reference-implementation">Reference implementation</h1>
|
|
<p>{This section is entirely optional; if present, it usually gives links to zcashd or zebrad PRs.}</p>
|
|
<h1 id="references">References</h1>
|
|
<section class="footnotes">
|
|
<hr />
|
|
<ol>
|
|
<li id="fn1"><p><a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a><a href="#fnref1" class="footnote-back">↩</a></p></li>
|
|
<li id="fn2"><p><a href="https://github.com/zcash/zips/blob/master/protocol/protocol.pdf">Zcash Protocol Specification, Version {...} or later [Overwinter+Sapling+Blossom]</a><a href="#fnref2" class="footnote-back">↩</a></p></li>
|
|
</ol>
|
|
</section>
|
|
</body>
|
|
</html>
|