Documentation

QedShare.Shamir.Share

Shares #

A share is a point index x (a nonzero field element) and one value f_b(x) per secret byte b, where f_b is the random polynomial hiding byte b.

The core uses List GF256 rather than ByteArray for payloads: lists are much easier to reason about in proofs, and secrets are short. The CLI converts at the boundary.

One share: the index x and the payload ys (one field element per secret byte).

  • x : GF256

    Share index; never 0 for shares made by split.

  • ys : List GF256

    ys[b] = f_b(x) for each secret byte b.

Instances For
    def QedShare.Shamir.instDecidableEqShare.decEq (x✝ x✝¹ : Share) :
    Decidable (x✝ = x✝¹)
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For