Skip to content

Latest commit

 

History

History
397 lines (249 loc) · 33 KB

lip-0001.mediawiki

File metadata and controls

397 lines (249 loc) · 33 KB

  LIP: 1
  Title: LIP Purpose and Guidelines
  Author: Andrew Yang <ecurrencyhodler@gmail.com>
  Comments-URI: https://github.com/litecoin-project/lips/wiki/Comments:LIP-0001
  Status: Draft
  Type: Process
  Created: 2019-01-02
  License: BSD-2-Clause
           OPL

Table of Contents

Abstract

A Litecoin Improvement Proposal (LIP) is a design document providing information to the Litecoin community, or describing a new feature for Litecoin or its processes or environment. The LIP should provide a concise technical specification of the feature and a rationale for the feature.

We intend LIPs to be the primary mechanisms for proposing new features, for collecting community input on an issue, and for documenting the design decisions that have gone into Bitcoin. The LIP author is responsible for building consensus within the community and documenting dissenting opinions.

Because the LIPs are maintained as text files in a versioned repository, their revision history is the historical record of the feature proposal.

Copyright

This LIP is dual-licensed under the Open Publication License and BSD 2-clause license.

LIP workflow

The LIP process begins with a new idea for Litecoin. Each potential LIP must have a champion -- someone who writes the LIP using the style and format described below, shepherds the discussions in the appropriate forums, and attempts to build community consensus around the idea. The LIP champion (a.k.a. Author) should first attempt to ascertain whether the idea is LIP-able. Small enhancements or patches to a particular piece of software often don't require standardisation between multiple projects; these don't need a LIP and should be injected into the relevant project-specific development workflow with a patch submission to the applicable issue tracker. Additionally, many ideas have been brought forward for changing Litecoin that have been rejected for various reasons. The first step should be to search past discussions to see if an idea has been considered before, and if so, what issues arose in its progression. After investigating past work, the best way to proceed is by posting about the new idea to the Litecoin development mailing list.

Vetting an idea publicly before going as far as writing a LIP is meant to save both the potential author and the wider community time. Asking the Litecoin community first if an idea is original helps prevent too much time being spent on something that is guaranteed to be rejected based on prior discussions (searching the internet does not always do the trick). It also helps to make sure the idea is applicable to the entire community and not just the author. Just because an idea sounds good to the author does not mean it will work for most people in most areas where Litecoin is used.

Once the champion has asked the Litecoin community as to whether an idea has any chance of acceptance, a draft LIP should be presented to the Litecoin development mailing list. This gives the author a chance to flesh out the draft LIP to make it properly formatted, of high quality, and to address additional concerns about the proposal. Following a discussion, the proposal should be submitted to the LIPs git repository as a pull request. This draft must be written in LIP style as described below, and named with an alias such as "Lip-johndoe-infinitebitcoins" until the editor has assigned it a LIP number (authors MUST NOT self-assign LIP numbers).

LIP authors are responsible for collecting community feedback on both the initial idea and the LIP before submitting it for review. However, wherever possible, long open-ended discussions on public mailing lists should be avoided. Strategies to keep the discussions efficient include: setting up a separate SIG mailing list for the topic, having the LIP author accept private comments in the early design phases, setting up a wiki page or git repository, etc. LIP authors should use their discretion here.

It is highly recommended that a single LIP contain a single key proposal or new idea. The more focused the LIP, the more successful it tends to be. If in doubt, split your LIP into several well-focused ones.

When the LIP draft is complete, the LIP editor will assign the LIP a number, label it as Standards Track, Informational, or Process, and merge the pull request to the LIPs git repository. The LIP editor will not unreasonably reject a LIP. Reasons for rejecting LIPs include duplication of effort, disregard for formatting rules, being too unfocused or too broad, being technically unsound, not providing proper motivation or addressing backwards compatibility, or not in keeping with the Litecoin philosophy. For a LIP to be accepted it must meet certain minimum criteria. It must be a clear and complete description of the proposed enhancement. The enhancement must represent a net improvement. The proposed implementation, if applicable, must be solid and must not complicate the protocol unduly.

The LIP author may update the draft as necessary in the git repository. Updates to drafts should also be submitted by the author as pull requests.

Transferring LIP Ownership

It occasionally becomes necessary to transfer ownership of LIPs to a new champion. In general, we'd like to retain the original author as a co-author of the transferred LIP, but that's really up to the original author. A good reason to transfer ownership is because the original author no longer has the time or interest in updating it or following through with the LIP process, or has fallen off the face of the 'net (i.e. is unreachable or not responding to email). A bad reason to transfer ownership is because you don't agree with the direction of the LIP. We try to build consensus around a LIP, but if that's not possible, you can always submit a competing LIP.

If you are interested in assuming ownership of a LIP, send a message asking to take over, addressed to both the original author and the LIP editor. If the original author doesn't respond to email in a timely manner, the LIP editor will make a unilateral decision (it's not like such decisions can't be reversed :).

LIP Editors

The current LIP editor is Adrian Gallagher who can be contacted at thrasher@addictionsoftware.com.

LIP Editor Responsibilities & Workflow

The LIP editor subscribes to the Litcoin development mailing list. Off-list LIP-related correspondence should be sent (or CC'd) to thrasher@addictionsoftware.com.

For each new LIP that comes in an editor does the following:

  • Read the LIP to check if it is ready: sound and complete. The ideas must make technical sense, even if they don't seem likely to be accepted.
  • The title should accurately describe the content.
  • The LIP draft must have been sent to the Litecoin development mailing list for discussion.
  • Motivation and backward compatibility (when applicable) must be addressed.
  • The defined Layer header must be correctly assigned for the given specification.
  • Licensing terms must be acceptable for LIPs.
If the LIP isn't ready, the editor will send it back to the author for revision, with specific instructions.

Once the LIP is ready for the repository it should be submitted as a "pull request" to the LIPs git repository where it may get further feedback.

The LIP editor will:

  • Assign a LIP number in the pull request.
  • Merge the pull request when it is ready.
  • List the LIP in README.mediawiki
The LIP editors are intended to fulfill administrative and editorial responsibilities. The LIP editors monitor LIP changes, and update LIP headers as appropriate.

LIP format and structure

Specification

LIPs should be written in mediawiki format.

Each LIP should have the following parts:

  • Preamble -- Headers containing metadata about the LIP (see below).
  • Abstract -- A short (~200 word) description of the technical issue being addressed.
  • Copyright -- The LIP must be explicitly licensed under acceptable copyright terms (see below).
  • Specification -- The technical specification should describe the syntax and semantics of any new feature. The specification should be detailed enough to allow competing, interoperable implementations for any of the current Litecoin platforms.
  • Motivation -- The motivation is critical for LIPs that want to change the Litecoin protocol. It should clearly explain why the existing protocol is inadequate to address the problem that the LIP solves.
  • Rationale -- The rationale fleshes out the specification by describing what motivated the design and why particular design decisions were made. It should describe alternate designs that were considered and related work. The rationale should provide evidence of consensus within the community and discuss important objections or concerns raised during discussion.
  • Backwards compatibility -- All LIPs that introduce backwards incompatibilities must include a section describing these incompatibilities and their severity. The LIP must explain how the author proposes to deal with these incompatibilities.
  • Reference implementation -- The reference implementation must be completed before any LIP is given status "Final", but it need not be completed before the LIP is accepted. It is better to finish the specification and rationale first and reach consensus on it before writing code. The final implementation must include test code and documentation appropriate for the Litecoin protocol.

LIP header preamble

Each LIP must begin with an RFC 822 style header preamble. The headers must appear in the following order. Headers marked with "*" are optional and are described below. All other headers are required.

  LIP: <LIP number, or "?" before being assigned>
* Layer: <Consensus (soft fork) | Consensus (hard fork) | Peer Services | API/RPC | Applications>
  Title: <LIP title; maximum 44 characters>
  Author: <list of authors' real names and email addrs>
* Discussions-To: <email address>
* Comments-Summary: <summary tone>
  Comments-URI: <links to wiki page for comments>
  Status: <Draft | Active | Proposed | Deferred | Rejected |
           Withdrawn | Final | Replaced | Obsolete>
  Type: <Standards Track | Informational | Process>
  Created: <date created on, in ISO 8601 (yyyy-mm-dd) format>
  License: <abbreviation for approved license(s)>
* License-Code: <abbreviation for code under different approved license(s)>
* Post-History: <dates of postings to bitcoin mailing list, or link to thread in mailing list archive>
* Requires: <LIP number(s)>
* Replaces: <LIP number>
* Superseded-By: <LIP number>

The Layer header (only for Standards Track LIPs) documents which layer of Litecoin the LIP applies to. See BIP 123 from Bitcoin's BIPs, for definitions of the various LIP layers. Activation of this LIP implies activation of BIP 123.

The Author header lists the names and email addresses of all the authors/owners of the LIP. The format of the Author header value must be

  Random J. User <address@dom.ain>

If there are multiple authors, each should be on a separate line following RFC 2822 continuation line conventions.

While a LIP is in private discussions (usually during the initial Draft phase), a Discussions-To header will indicate the mailing list or URL where the LIP is being discussed. No Discussions-To header is necessary if the LIP is being discussed privately with the author, or on the Litecoin email mailing lists.

The Type header specifies the type of LIP: Standards Track, Informational, or Process.

The Created header records the date that the LIP was assigned a number, while Post-History is used to record when new versions of the LIP are posted to Litecoin mailing lists. Dates should be in yyyy-mm-dd format, e.g. 2001-08-14. Post-History is permitted to be a link to a specific thread in a mailing list archive.

LIPs may have a Requires header, indicating the LIP numbers that this LIP depends on.

LIPs may also have a Superseded-By header indicating that a LIP has been rendered obsolete by a later document; the value is the number of the LIP that replaces the current document. The newer LIP must have a Replaces header containing the number of the LIP that it rendered obsolete.

Auxiliary Files

LIPs may include auxiliary files such as diagrams. Auxiliary files should be included in a subdirectory for that LIP, or must be named LIP-XXXX-Y.ext, where "XXXX" is the LIP number, "Y" is a serial number (starting at 1), and "ext" is replaced by the actual file extension (e.g. "png").

LIP types

There are three kinds of LIP:

  • A Standards Track LIP describes any change that affects most or all Litecoin implementations, such as a change to the network protocol, a change in block or transaction validity rules, or any change or addition that affects the interoperability of applications using Litecoin. Standards Track LIPs consist of two parts, a design document and a reference implementation.
  • An Informational LIP describes a Litecoin design issue, or provides general guidelines or information to the Litecoin community, but does not propose a new feature. Informational LIPs do not necessarily represent a Litecoin community consensus or recommendation, so users and implementors are free to ignore Informational LIPs or follow their advice.
  • A Process LIP describes a process surrounding Litecoin, or proposes a change to (or an event in) a process. Process LIPs are like Standards Track LIPs but apply to areas other than the Litecoin protocol itself. They may propose an implementation, but not to Litecoin's codebase; they often require community consensus; unlike Informational LIPs, they are more than recommendations, and users are typically not free to ignore them. Examples include procedures, guidelines, changes to the decision-making process, and changes to the tools or environment used in Litecoin development. Any meta-LIP is also considered a Process LIP.

LIP status field

Specification

The typical paths of the status of LIPs are as follows:

Champions of a LIP may decide on their own to change the status between Draft, Deferred, or Withdrawn. The LIP editor may also change the status to Deferred when no progress is being made on the LIP.

A LIP may only change status from Draft (or Rejected) to Proposed, when the author deems it is complete, has a working implementation (where applicable), and has community plans to progress it to the Final status.

LIPs should be changed from Draft or Proposed status, to Rejected status, upon request by any person, if they have not made progress in three years. Such a LIP may be changed to Draft status if the champion provides revisions that meaningfully address public criticism of the proposal, or to Proposed status if it meets the criteria required as described in the previous paragraph.

An Proposed LIP may progress to Final only when specific criteria reflecting real-world adoption has occurred. This is different for each LIP depending on the nature of its proposed changes, which will be expanded on below. Evaluation of this status change should be objectively verifiable, and/or be discussed on the development mailing list.

When a Final LIP is no longer relevant, its status may be changed to Replaced or Obsolete (which is equivalent to Replaced). This change must also be objectively verifiable and/or discussed.

A process LIP may change status from Draft to Active when it achieves rough consensus on the mailing list. Such a proposal is said to have rough consensus if it has been open to discussion on the development mailing list for at least one month, and no person maintains any unaddressed substantiated objections to it. Addressed or obstructive objections may be ignored/overruled by general agreement that they have been sufficiently addressed, but clear reasoning must be given in such circumstances.

Progression to Final status

A soft-fork LIP strictly requires a clear miner majority expressed by blockchain voting (eg, using [BIP](https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki)). In addition, if the economy seems willing to make a "no confidence" hard-fork (such as a change in proof-of-work algorithm), the soft-fork does not become Final for as long as such a hard-fork might have majority support, or at most three months. Soft-fork LIPs may also set additional requirements for their adoption. Because of the possibility of changes to miner dynamics, especially in light of delegated voting (mining pools), it is highly recommended that a supermajority vote around 95% be required by the LIP itself, unless rationale is given for a lower threshold.

A hard-fork LIP requires adoption from the entire Litecoin economy, particularly including those selling desirable goods and services in exchange for litecoin payments, as well as Litecoin holders who wish to spend or would spend their litecoins (including selling for other currencies) differently in the event of such a hard-fork. Adoption must be expressed by de facto usage of the hard-fork in practice (ie, not merely expressing public support, although that is a good step to establish agreement before adoption of the LIP). This economic adoption cannot be established merely by a super-majority, except by literally forcing the minority to accept the hard-fork (whether this is viable or not is outside the scope of this document).

Peer services LIPs should be observed to be adopted by at least 1% of public listening nodes for one month.

API/RPC and application layer LIPs must be implemented by at least two independent and compatible software applications.

Software authors are encouraged to publish summaries of what LIPs their software supports to aid in verification of status changes. Good examples of this at the time of writing this LIP, can be observed in Bitcoin Core's doc/bips.md file as well as Bitcoin Wallet for Android's wallet/README.specs.md file.

These criteria are considered objective ways to observe the de facto adoption of the LIP, and are not to be used as reasons to oppose or reject a LIP. Should a LIP become actually and unambiguously adopted despite not meeting the criteria outlined here, it should still be updated to Final status.

Rationale

Why is this necessary at all?

  • LIP 1 provides a formalized process for submitting Litecoin Improvement Proposals. By giving objective criteria to judge the progression of LIPs, this proposal aims to help keep the Status accurate and up-to-date.
Why is the entire Litecoin economy defined by people selling goods/services and holders?

  • For Litecoin to function as a currency, it must be accepted as payment. Litecoins have no value if you cannot acquire anything in exchange for them. If everyone accepting such payments requires a particular set of consensus rules, "litecoins" are de facto defined by that set of rules - this is already the case today. If those consensus rules are expected to broaden (as with a hard-fork), those merchants need to accept payments made under the new set of rules, or they will reject "litecoins" as invalid. Holders are relevant to the degree in that they choose the merchants they wish to spend their litecoins with, and could also as a whole decide to sell under one set of consensus rules or the other, thus flooding the market with litecoins and crashing the price.
Why aren't <x></x> included in the economy?

  • Some entities may, to some degree, also be involved in offering goods and/or services in exchange for litecoins, thus in that capacity (but not their capacity as <x></x>) are involved in the economy.
  • Miners are not included in the economy, because they merely *rely on* others to sell/spend their otherwise-worthless mined produce. Therefore, they must accept everyone else's direction in deciding the consensus rules.
  • Exchanges are not included in the economy, because they merely provide services of connecting the merchants and users who wish to trade. Even if all exchanges were to defect from Litecoin, those merchants and users can always trade directly and/or establish their own exchanges.
  • Developers are not included in the economy, since they merely write code, and it is up to others to decide to use that code or not.
But they're doing something important and have invested a lot in Litecoin! Shouldn't they be included in such an important decision?

  • This LIP does not aim to address what "should" be the basis of decisions. Such a statement, no matter how perfect in its justification, would be futile without some way to force others to use it. The LIP process does not aim to be a kind of forceful "governance" of Litecoin, merely to provide a collaborative repository for proposing and providing information on standards, which people may voluntarily adopt or not. It can only hope to achieve accuracy in regard to the "Status" field by striving to reflect the reality of *how things actually are*, rather than *how they should be*.
What if a single merchant wishes to block a hard-fork?

  • This LIP addresses only the progression of the LIP Status field, not the deployment of the hard-fork (or any other change) itself.
  • Regardless, one shop cannot operate in a vacuum: if they are indeed alone, they will soon find themselves no longer selling in exchange for litecoin payments, as nobody else would exist willing to use the previous blockchain to pay them. If they are no longer selling, they cease to meet the criteria herein which enables their veto.
How about a small number of merchants (maybe only two) who sell products to each other?

  • In this scenario, it would seem the previous Litecoin is alive any working, and that the hard-fork has failed. How to resolve such a split is outside the scope of this LIP.
How can economic agreement veto a soft-fork?

  • The group of miners is determined by the consensus rules for the dynamic-membership multi-party signature (for Litecoin, the proof-of-work algorithm), which can be modified with a hard-fork. Thus, if the same conditions required to modify this group are met in opposition to a soft-fork, the miner majority supporting the soft-fork is effectively void because the economy can decide to replace them with another group of would-be miners who do not support the soft-fork.
What happens if the economy decides to hard-fork away from a controversial soft-fork, more than three months later?

  • The controversial soft-fork, in this circumstance, changes from Final to Replaced status to reflect the nature of the hard-fork replacing the previous (final) soft-fork.
What is the ideal percentage of listening nodes needed to adopt peer services proposals?

  • This is unknown, and set rather arbitrarily at this time. For a random selection of peers to have at least one other peer implementing the extension, 13% or more would be necessary, but nodes could continue to scan the network for such peers with perhaps some reasonable success. Furthermore, service bits exist to help identification upfront.
Why is it necessary for at least two software projects to release an implementation of API/RPC and application layer LIPs, before they become Final?

  • If there is only one implementation of a specification, there is no other program for which a standard interface is used with or needed.
  • Even if there are only two projects rather than more, some standard coordination between them exists.
What if a LIP is proposed that only makes sense for a single specific project?

  • The LIP process exists for standardisation between independent projects. If something only affects one project, it should be done through that project's own internal processes, and never be proposed as a LIP in the first place.

LIP comments

Specification

Each LIP should, in its preamble, link to a public wiki page with a summary tone of the comments on that page. Reviewers of the LIP who consider themselves qualified, should post their own comments on this wiki page. The comments page should generally only be used to post final comments for a completed LIP. If a LIP is not yet completed, reviewers should instead post on the applicable development mailing list thread to allow the LIP author(s) to address any concerns or problems pointed out by the review.

Some LIPs receive exposure outside the development community prior to completion, and other LIPs might not be completed at all. To avoid a situation where critical LIP reviews may go unnoticed during this period, reviewers may, at their option, still post their review on the comments page, provided they first post it to the mailing list and plan to later remove or revise it as applicable based on the completed version. Such revisions should be made by editing the previous review and updating the timestamp. Reviews made prior to the complete version may be removed if they are no longer applicable and have not been updated in a timely manner (eg, within one month).

Pages must be named after the full LIP number (eg, "LIP 0001") and placed in the "Comments" namespace. For example, the link for LIP 1 will be https://github.com/litecoin-project/lips/wiki/Comments:LIP-0001 .

Comments posted to this wiki should use the following format:

    <Your opinion> --<Your name>, <Date of posting, as YYYY-MM-DD>

LIPs may also choose to list a second forum for LIP comments, in addition to the LIPs wiki. In this case, the second forum's URI should be listed below the primary wiki's URI.

After some time, the LIP itself may be updated with a summary tone of the comments. Summary tones may be chosen from the following, but this LIP does not intend to cover all possible nuances and other summaries may be used as needed:

  • No comments yet.
  • Unanimously Recommended for implementation
  • Unanimously Discourage for implementation
  • Mostly Recommended for implementation, with some Discouragement
  • Mostly Discouraged for implementation, with some Recommendation
For example, the preamble to LIP 1 might be updated to include the line:

    Comments-Summary: No comments yet.
    Comments-URI: https://github.com/litecoin-project/lips/wiki/Comments:LIP-0001
                  https://some-other-wiki.org/LIP_1_Comments

These fields must follow the "Discussions-To" header defined in LIP 1 (if that header is not present, it should follow the position where it would be present; generally this is immediately above the Status header).

To avoid doubt: comments and status are unrelated metrics to judge a LIP, and neither should be directly influencing the other.

Rationale

What is the purpose of LIP comments?

  • Various LIPs have been adopted (the criteria required for "Final" Status) despite being considered generally inadvisable. Some presently regard LIPs as a "good idea" simply by virtue of them being assigned a LIP number. Due to the low barrier of entry for submission of new LIPs, it seems advisable for a way for reviewers to express their opinions on them in a way that is consumable to the public without needing to review the entire development discussion.
Will LIP comments be censored or limited to particular participants/"experts"?

  • Participants should freely refrain from commenting outside of their area of knowledge or expertise. However, comments should not be censored, and participation should be open to the public.

LIP licensing

Specification

New LIPs may be accepted with the following licenses. Each new LIP must identify at least one acceptable license in its preamble. The License header in the preamble must be placed after the Created header. Each license must be referenced by their respective abbreviation given below.

For example, a preamble might include the following License header:

    License: BSD-2-Clause
             GNU-All-Permissive

In this case, the LIP text is fully licensed under both the OSI-approved BSD 2-clause license as well as the GNU All-Permissive License, and anyone may modify and redistribute the text provided they comply with the terms of *either* license. In other words, the license list is an "OR choice", not an "AND also" requirement.

It is also possible to license source code differently from the LIP text. A optional License-Code header is placed after the License header. Again, each license must be referenced by their respective abbreviation given below.

For example, a preamble specifying the optional License-Code header might look like:

    License: BSD-2-Clause
             GNU-All-Permissive
    License-Code: GPL-2.0+

In this case, the code in the LIP is not available under the BSD or All-Permissive licenses, but only under the terms of the GNU General Public License (GPL), version 2 or newer. If the code were to be available under *only* version 2 exactly, the "+" symbol should be removed from the license abbreviation. For a later version (eg, GPL 3.0), you would increase the version number (and retain or remove the "+" depending on intent).

    License-Code: GPL-2.0   # This refers to GPL v2.0 *only*, no later license versions are acceptable.
    License-Code: GPL-2.0+  # This refers to GPL v2.0 *or later*.
    License-Code: GPL-3.0   # This refers to GPL v3.0 *only*, no later license versions are acceptable.
    License-Code: GPL-3.0+  # This refers to GPL v3.0 *or later*.

In the event that the licensing for the text or code is too complicated to express with a simple list of alternatives, the list should instead be replaced with the single term "Complex". In all cases, details of the licensing terms must be provided in the Copyright section of the LIP.

LIPs are not required to be *exclusively* licensed under approved terms, and may also be licensed under unacceptable licenses *in addition to* at least one acceptable license. In this case, only the acceptable license(s) should be listed in the License and License-Code headers.

Recommended licenses

In addition, it is recommended that literal code included in the LIP be dual-licensed under the same license terms as the project it modifies. For example, literal code intended for Litecoin Core would ideally be dual-licensed under the MIT license terms as well as one of the above with the rest of the LIP text.

Not recommended, but acceptable licenses

Not acceptable licenses

All licenses not explicitly included in the above lists are not acceptable terms for a Litecoin Improvement Proposal unless a later LIP extends this one to add them. However, LIPs predating the acceptance of this LIP were allowed under other terms, and should use these abbreviation when no other license is granted:

Rationale

Is Open Publication License or releasing into the public domain insufficient?

  • The OPL is generally regarded as obsolete, and not a license suitable for new publications.
  • Many are unfamiliar with the OPL terms, and may just prefer to use the public domain rather than license under uncertain terms.
  • The OPL license terms allowed for the author to prevent publication and derived works, which was widely considered inappropriate for Litecoin standards.
  • Public domain is not universally recognised as a legitimate action, thus it is inadvisable.
Why are there software licenses included?

  • Some LIPs, especially consensus layer, may include literal code in the LIP itself which may not be available under the exact license terms of the LIP.
  • Despite this, not all software licenses would be acceptable for content included in LIPs.
Why is Public Domain not acceptable for new LIPs?

  • In some jurisdictions, public domain is not recognised as a legitimate legal action, leaving the LIP simply copyrighted with no redistribution or modification allowed at all.

See Also