Skip to content

Create a system of offline currency using chameleon hashes and commitment

Notifications You must be signed in to change notification settings

blockchain-trainer/offline_currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A system using chameleon hashes and commitment schemes can be designed for offline value transfer similar to cash currency. The idea here is to leverage the cryptographic properties of chameleon hashes to allow modification of a message (value) in a controlled manner and use commitment schemes to securely share and reveal information.

Conceptual Framework

  1. Chameleon Hashes: A hash function with a trapdoor that allows the hash value to be modified by knowing a secret value (trapdoor).
  2. Commitment Scheme: Allows a sender to commit to a value while keeping it hidden, with the ability to reveal the committed value later.
  3. Value Transfer: Use chameleon hashes to transfer value securely. The sender commits to a value (amount) and sends a chameleon hash with the ability to modify it using a secret (trapdoor).
  4. Spending: The recipient can modify the message using the trapdoor to spend the value at a later time.

Implementation Outline

  1. Chameleon Hash Function:

    • Generate a chameleon hash with a trapdoor.
    • The hash value can be modified using the trapdoor, keeping the overall hash consistent.
  2. Commitment Scheme:

    • Create a commitment to a secret value.
    • The commitment is used to securely share the secret, which can be revealed later to modify the hash.
  3. Value Transfer Protocol:

    • Sender creates a chameleon hash and commits to a value.
    • Sender sends the chameleon hash and commitment to the recipient.
    • Recipient uses the commitment to verify and later modify the value using the trapdoor.

Double-Spending Prevention

  1. Unique Token Identifiers: Each value transfer involves unique identifiers to ensure that each token or value can be uniquely tracked.
  2. Controlled Modification: Only the recipient with the correct trapdoor can modify the message, preventing unauthorized modifications or reuse.
  3. Commitment Verification: Recipients verify commitments before accepting value transfers, ensuring that only valid commitments are considered.

This approach leverages chameleon hashes and commitment schemes to create a system for offline value transfer that mimics cash transactions. The recipient can modify the value securely using the provided trapdoor, ensuring that the value transfer is authenticated and verified without needing a central ledger. Further refinements and security measures can enhance the robustness of this system.

About

Create a system of offline currency using chameleon hashes and commitment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages