Skip to content

Add more zero-knowledge proof examples #9

@tob-joe

Description

@tob-joe

Overview

Add additional zero-knowledge proof examples to demonstrate the Decree library's capabilities and provide reference implementations for common cryptographic protocols.

Existing Examples

  • Girault proof (test in tests/inscribe_tests.rs)
  • Schnorr proof (test in tests/inscribe_tests.rs)

Possible Options

Simple Examples (Sigma Protocols)

  • Chaum-Pedersen proof - equality of discrete logarithms (Add Chaum-Pedersen proof example #10)
  • Product proof - prove z = x * y given commitments
  • Range proof - prove 0 ≤ x < 2^n using bit-by-bit approach

Complex Examples (Beyond Sigma Protocols)

Implementation Guidelines

  • Use Ristretto255 for elliptic curve examples
  • Include comprehensive test suites in example files
  • Focus on clean implementations
  • Demonstrate proper use of the Inscribe trait with domain separation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions