Documentation

Examples.MerkleTree.Specification

Instances For
    @[irreducible]
    def DY.Example.MerkleTree.mkInclusionProof {Bytes : Type} [Comparse.BytesLike Bytes] [Hash.CanHash Bytes] {α : Type} (mf : Comparse.ExtensibleMessageFormat Bytes α) (l : List α) (i : Nat) (h_i : i < l.length) :
    List Bytes
    Equations
    Instances For
      def DY.Example.MerkleTree.checkInclusionProof {Bytes : Type} [DecidableEq Bytes] [Comparse.BytesLike Bytes] [Hash.CanHash Bytes] {α : Type} (mf : Comparse.ExtensibleMessageFormat Bytes α) (proof : List Bytes) (leaf : α) (i : Nat) (rootHash : Bytes) (length : Nat) :
      Equations
      Instances For
        @[instance_reducible]
        instance DY.Example.MerkleTree.instDecidableCheckInclusionProof {Bytes : Type} [DecidableEq Bytes] [Comparse.BytesLike Bytes] [Hash.CanHash Bytes] {α : Type} (mf : Comparse.ExtensibleMessageFormat Bytes α) (proof : List Bytes) (leaf : α) (i : Nat) (rootHash : Bytes) (length : Nat) :
        Decidable (checkInclusionProof mf proof leaf i rootHash length)
        Equations
        Instances For
          Instances For
            Instances For
              @[instance_reducible]
              Equations
              • One or more equations did not get rendered due to their size.
              @[instance_reducible]
              Equations
              • One or more equations did not get rendered due to their size.
              @[instance_reducible]
              Equations
              • One or more equations did not get rendered due to their size.
              @[instance_reducible]
              Equations
              • One or more equations did not get rendered due to their size.
              theorem DY.Example.MerkleTree.ServerState.IsWellFormed_eq [HasExecBytes] {τ : Sort u_1} (pre : BytesτProp) [Comparse.BytesCompatibleTracePred pre] (x : ServerState) (tr : τ) :
              Comparse.IsWellFormed pre x tr = ∀ (element : Bytes), element x.elementspre element tr
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def DY.Example.MerkleTree.Client.checkInclusion [HasExecTrace] (server : Participant) (msgSigHandle msgInclHandle pkHandle : Nat) :
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For