. #27455

issue Bandarfaqih opened this issue on April 12, 2023
  1. Bandarfaqih commented at 7:08 PM on April 12, 2023: none

    Please describe the feature you'd like to see added.

    This BIP proposes the direct implementation of several privacy and anonymity-enhancing features in the Bitcoin protocol, including CoinJoin, zk-SNARKs, ring signatures, and stealth addresses directly into the Bitcoin protocol. These features were envisioned by Satoshi Nakamoto and other contributors as essential tools for preserving user privacy on the network.

    Motivation

    Bitcoin's and Bitcoin current level of privacy and anonymity is limited due to its public ledger, which allows anyone to view all transactions and trace them back to their source. This has led to concerns about the privacy and security of Bitcoin users, as well as potential regulatory pressures and censorship.

    To address these issues, Satoshi Nakamoto foresaw the need for privacy-enhancing technologies in the original Bitcoin white paper. Specifically, Nakamoto suggested the use of ring signatures to protect user privacy and prevent transaction analysis. In section 10 of the white paper, Nakamoto wrote: "We can use a ring signature to protect user privacy by not showing the input transaction to the world, keeping the public key only inside the group."

    Additionally, Nakamoto envisioned stealth addresses as a way to enhance privacy on the network. In section 9 of the white paper, Nakamoto wrote: "To protect privacy, the output value of a transaction must be completely used up in the next transaction. If the value is split into smaller amounts and combined with other transactions, it becomes more difficult to know which transaction(s) are relevant to a particular transaction." While Nakamoto did not specifically mention stealth addresses in the white paper, he did allude to the concept by suggesting the use of one-time addresses to enhance privacy. In addition to Nakamoto's original vision, there have been several other proposals for privacy-enhancing features in the Bitcoin ecosystem, including CoinJoin and zk-SNARKs. These technologies can help obfuscate transaction details, making it more difficult for third parties to track and analyze Bitcoin transactions.

    Proposal and Technical Specifications

    We propose the direct implementation of four privacy-enhancing features in the Bitcoin protocol:

    1. CoinJoin: CoinJoin is a technique that allows multiple Bitcoin transactions to be combined into a single transaction, making it more difficult for outside observers to determine which inputs correspond to which outputs. By joining transactions together, CoinJoin can help obfuscate the origin and destination of Bitcoin Gold transactions. We propose that CoinJoin be implemented directly in the Bitcoin protocol using a new opcode or updated Taproot protocol.

    2. zk-SNARKs: zk-SNARKs (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge) are a type of zero-knowledge proof that allows for private transactions on the Bitcoin network. Using zk-SNARKs, users can prove that they own a certain amount of Bitcoin without revealing any details about the transaction or their identity. In section 10 of the white paper, Nakamoto wrote: "The traditional banking model achieves a level of privacy by limiting access to information to the parties involved and the trusted third party. The necessity to announce all transactions publicly precludes this method, but privacy can still be maintained by breaking the flow of information in another place: by keeping public keys anonymous.". We propose that zk-SNARKs be implemented in the Bitcoin protocol using a new transaction format.

    3. Ring Signatures: Ring signatures allow users to sign a message without revealing which user actually signed it. This can help protect the privacy and anonymity of Bitcoin users, as it makes it more difficult for third parties to determine who is behind a particular transaction. In section 10 of the white paper, Nakamoto wrote: "We can use a ring signature to protect user privacy by not showing the input transaction to the world, keeping the public key only inside the group." We propose that ring signatures be implemented in the Bitcoin protocol using a new opcode.

    4. Stealth Addresses: Stealth addresses allow users to generate a new address for each transaction, making it more difficult for outside observers to track the flow of Bitcoin. This can help enhance privacy on the network, as it makes it more difficult for third parties to link transactions together. While stealth addresses were not specifically mentioned in the white paper the idea was presented by Satoshi Nakamoto white pepar the quote can be found in the original Bitcoin white paper, in section 9 "Combining and Splitting Value":

    "The solution we propose begins with a timestamp server. A timestamp server works by taking a hash of a block of items to be timestamped and widely publishing the hash, such as in a newspaper or Usenet post [2-5]. The timestamp proves that the data must have existed at the time, obviously, in order to get into the hash. Each timestamp includes the previous timestamp in its hash, forming a chain, with each additional timestamp reinforcing the ones before it. When a client wishes to make a payment to another, he broadcasts to the network a message signed by his private key, announcing this transaction and identifying the recipient by a hash of the recipient's public key. The recipient can then scan the blockchain to confirm that the sender does indeed have the necessary funds. The recipient's software then generates a new key pair and uses the public key to receive the funds, and the private key to spend them. The transaction is broadcast to the network to be included in the next block if it is valid (this is where the timestamping comes in)."

    In this section, Satoshi does not use the term "stealth address" specifically, but he does describe a process where a recipient generates a new key pair to receive funds, which is a core feature of stealth address technology. they were proposed later by Peter Todd in 2013 as a way to enhance privacy on the network. We propose that stealth addresses be implemented in the Bitcoin protocol using a new transaction format.

    Implementation

    We propose that these features be implemented directly into the Bitcoin protocol, rather than relying on third-party wallet providers to implement them. This would help ensure that all Bitcoin users have access to these privacy-enhancing features, regardless of which wallet provider they choose to use.

    Acknowledgment

    We acknowledge that there may be technical challenges to implementing these features directly in the protocol, and we propose that a working group be formed to explore these challenges and develop a plan for implementation. This working group could be composed of Bitcoin developers, privacy advocates of the Bitcoin community, and other stakeholders with an interest in enhancing the privacy and security of the Bitcoin network. I have discussed this with the BITCOIN development team and they were welcoming the idea but incentive me to do a discussion feature here in the BTC community before further implementation to have a more mature proposal for the development and processing of the BIP therefore everyone is welcome to discuss further technical implementation and thoughts.

    Conclusion

    Bitcoin was originally conceived as a decentralized, peer-to-peer payment system that would allow users to transact without the need for intermediaries. However, the current level of transparency on the Bitcoin network has raised concerns about the privacy and security of Bitcoin users. By implementing privacy-enhancing features such as CoinJoin, zk-SNARKs, ring signatures, and stealth addresses directly into the Bitcoin protocol, we can help ensure that Bitcoin remains a viable payment system for users who value privacy and anonymity.

    <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Enhancing Privacy in the Bitcoin Gold Protocol</span> by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Bandarfaqih</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License

    Is your feature related to a problem, if so please describe it.

    BTC privacy and fungibility

    Describe the solution you'd like

    The direct implementation of CoinJoin, zk-SNARKs, ring signatures, and stealth addresses into the Bitcoin protocol, rather than relying on third-party wallet providers to implement them. This would help ensure that all Bitcoin users have access to these privacy-enhancing features, regardless of which wallet provider they choose to use.

    Describe any alternatives you've considered

    Offering those features compatibility on third-party wallets such as taproot update which introduces CoinJoin but is not as mandatory integration to the protocol. (This approach is not advisable for the long-term adoption)

    Please leave any additional context

    If BTC implemented a ring signature and stealth address it would maintain or reduce its current synchronization time depending on code optimization and compatibility, due to its algorithm and ASIC mining capabilities.

  2. Bandarfaqih added the label Feature on Apr 12, 2023
  3. fanquake commented at 7:11 PM on April 12, 2023: member

    Thanks. However as I said last time you posted this. This is not the right place to post this.

  4. fanquake closed this on Apr 12, 2023

  5. fanquake removed the label Feature on Apr 12, 2023
  6. Bandarfaqih commented at 7:11 PM on April 12, 2023: none

    I have discussed this with the BITCOIN development team and they were welcoming the idea but incentive me to do a discussion feature here in the BTC community before further implementation to have a more mature final consensus proposal for the development and processing of the BIP therefore everyone is welcome to discuss further technical implementation and thoughts.

  7. fanquake locked this on Apr 12, 2023
  8. fanquake renamed this:
    Enhancing Bitcoin Privacy Protocol Bip Proposal
    .
    on Apr 12, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-29 03:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me