hexresearch / hschain-utxo

UTXO-based contracts for hschain
0 stars 0 forks source link

Proof sigma tuple #229

Closed anton-k closed 3 years ago

anton-k commented 3 years ago

Implements functions and primitives to proof Diffie-Hellman tuples (pairs of public keys). This allows to implement ErgoMix script.

Instead of single primitive for proof of discrete logarithm we have two primitives. Thus we use Sigma ProofInput to unite the primitives in place of single Sigma PublicKey. Proof of key ownership is DLog. Proof of pair of keys is DTuple.

There is boilerplate in Sigma interpreter module that was caused by difference in commitments for those two types of proofs. First requires single commitment ad second one requires two commitments.