cross_runtime_oracle

command
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Command cross_runtime_oracle emits a deterministic Lens transcript covering DKG -> Sign -> Aggregate end-to-end, for cross-language byte-equality validation against the C++ port at luxcpp/crypto/lens/.

JSON shape:

{
  "curve": "<>",
  "n": int,
  "t": int,
  "seed": "<>",
  "message_hex": "<>",
  "salt_hex": "<32-byte hex>",
  "signers": [int],            // sorted ascending
  "group_key_hex": "<>",
  "shares_hex":               { id -> hex },
  "verification_shares_hex":  { id -> hex },
  "lambda_full_hex":          { id -> hex },  // λ over the full party set
  "lambda_signers_hex":       { id -> hex },  // λ over the signing subset
  "commits_D_hex":            { id -> hex },
  "commits_E_hex":            { id -> hex },
  "responses_z_hex":          { id -> hex },
  "sig_R_hex": "<>",
  "sig_z_hex": "<>"
}

All hex outputs are byte-equal to the canonical Go encodings:

  • Scalars: filippo.io / decred / gtank MarshalBinary
  • Points: filippo.io / decred / gtank MarshalBinary (compressed)

The replay harness (luxcpp/crypto/lens/test/cpp/cross_runtime_test.cpp) loads this JSON and asserts byte-equal end-to-end.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL