🔥POW-20 Protocol

POW-20 protocol is an extension of BRC-20 protocol that introduces and requires proof-of-work (PoW) to mint and produce new tokens.

Introduction

Proof-of-Work is the backbone of Bitcoin (BTC) and other PoW chains like Litecoin (LTC), Doge (DOGE), Bitcoin Cash (BCH), Bitcoin SV (BSV), etc. However, derivative assets (tokens/NFTs) like BRC-20 that run on these base layers have traditionally been issued or distributed through means other than PoW. While Atomicals recently enabled a version of PoW token mining, it does so at a cost, namely understandability for the average person and a learning curve to get started. It's fairly complex if you're not a dev. It also introduces challenges for exchanges and indexers that may wish to implement them.

What is needed is something simple that "extends" what we already have with BRC-20, making it easy for users, exchanges, and indexers to get started or implement with a few lines of code.

The protocol is straight forward and should look familiar.

Deploy

{
  "p": "pow-20",
  "op": "deploy",
  "tick": "DOTI",
  "max": "21000000",
  "lim": "1000",
  "difficulty": "5",
  "startBlock": "875000"
  "dec": "8" // max 15
  "icon": "534cede12f90729d961dbdaf7dc889e9ac6567fd43759097567bca2f2791dcd8i0"
}

New Fields

  • difficulty: The number of leading zeros required in the double sha256 hash of the solution

  • startBlock: Any future block number

  • icon (optional): a reference inscriptionId or link to the icon

Mint

New Fields

  • solution: A unique string that is double sha256 hashed to meet the difficulty specified in the deploy inscription

A solution is composed of 4 parts delimited by a colon:

  1. TICK - The ticker symbol

  2. BTC_ADDRESS - The BTC ordinal address that the inscription is inscribed to (to prevent mempool sniping)

  3. START_BLOCK_HEADER - The future block header/hash of the startBlock specified in the deploy inscription (to prevent pre-mines)

  4. NONCE - A random nonce

Transfer

New Indexer Rules

  1. Is the address the same address found in the inscription? Must be true

  2. Does the solution contain the correct START_BLOCK_HEADER header for the startBlock found in the deploy inscription? Must be true

  3. Does the double sha256 hash of the solution meet the difficulty found in the deploy inscription? Must be true

  4. Has the solution been seen before? Must be false

Examples

Valid Deploy:

Valid Mint:

The double sha256 hash of the above solution produces the following hash which meets the example deployment difficulty requirement of 3:

Valid Transfer:

Invalid Mint:

The double sha256 hash of the above solution produces the following hash which does NOT meet the deployment difficulty requirement and is invalid:

NOTE: The above protocol applies to all layer-1 chains other than BSV which implements an sCrypt Hash-to-Mint (HTM) smart-contract for BSV-20(v2) token issuance based on provided proof-of-work.

Last updated