KittyMineCoin
  • Introduction
    • 💟Foreword
    • 🐱Overview
  • How KMCoin Works
    • 💵Transaction Process
    • 👾PoG & PoW
    • 📖Lightweight Ledger
  • Installation & Setup
    • 💾Download
  • 🖥️Setup
    • Minecraft 1.21.1 Java Edition
  • Game Integration
    • 🔌Integration Criteria
  • Tokenomics
    • ⛏️KMCoin
    • 🪙$KMC token
  • Roadmap
    • 🚘Roadmap
    • 👁️The Vision
Powered by GitBook
On this page
  • Initiation
  • Broadcasting
  • Verification
  • Public Key Update
  1. How KMCoin Works

Transaction Process

KMCoin transactions are verified using digital signatures derived from players' private keys and their first mined block. Each transaction is recorded in an immutable ledger, ensuring transparency and security.

Initiation

  • A player initiates a transaction by creating a hash using their private key and the solution to the previous transaction.

  • The transaction details (sender, receiver, amount, and gas fee) are included in the hash.

Broadcasting

  • The transaction is broadcast to the network, where other players verify the hash.

  • Players check the transaction against the playerinfo.log to ensure the sender has sufficient balance and the correct public key.

Verification

  • Once verified, the transaction is added to the latstTxs4.log, a temporary log that holds pending transactions.

  • The transaction waits for a block to be mined before being added to the ledgercurrent.log. Only the top 100 transactions (sorted by gas fee) are included in the next block.

  • The sender's transaction number is incremented, and the receiver's balance is updated.

Public Key Update

  • After 1000 transactions, the player's public key is updated using a new nonce.

  • The new public key is derived from the player's first mined block, private key, and the updated nonce.

  • This process ensures that the public key evolves over time while maintaining a secure connection to the player's original credentials.

PreviousOverviewNextPoG & PoW

Last updated 2 months ago

💵