Documentation

AMATELUS.DIDTemplate

structure AMT.LocalInput :

The version is an external template selector, not a prefix of the digest.

Instances For

    Canonical wire alphabet; no checksum, separators or aliases.

    Equations
    Instances For

      MSB-first byte encoding with zero bits appended to the final 5-bit group.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Strict decoder; rejects aliases, lowercase and nonzero trailing padding bits.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Draft-specific k + Crockford representation. This is NOT the registered multibase k (base36); interoperability requires an explicit AMT draft codec.

          Equations
          Instances For
            Equations
            Instances For

              Exact JCS serialization of the fixed ASCII-only Version 0 template. All keys are sorted, all constants are included, no whitespace is emitted. Only the encoded public key varies; it cannot contain JSON metacharacters. This is not a general JSON canonicalizer.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def AMT.didFromHash (digest : Hash) :
                Equations
                Instances For

                  Fill self references only after hashing. W3C's data model stores resolved DID URLs; the wire form of the two relationship references is #key-1. The fixed @context is implicit in this W3C model and explicit in templateV0.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def AMT.matchesV0 (doc : W3C.DIDDocument) (pk : PublicKey) (did : W3C.DID) :

                    Full Version 0 shape check, including derived references and absence of extra claims/services. Parsing must also check the fixed @context and reject unknown/duplicate JSON members before entering this W3C model.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Executable boundary with an explicitly supplied SHA3-512 implementation. Reject unsupported versions, malformed key sizes and wrong digest sizes.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def AMT.verifyWith (sha3512 : List UInt8 → Hash) (input : LocalInput) (claimed : W3C.DID) (doc : W3C.DIDDocument) :
                        Equations
                        Instances For
                          theorem AMT.finalized_id (pk : PublicKey) (did : W3C.DID) :
                          (finalizeV0 pk did).id = did
                          theorem AMT.finalized_matches (pk : PublicKey) (did : W3C.DID) :
                          matchesV0 (finalizeV0 pk did) pk did = true
                          theorem AMT.matchesV0_id (doc : W3C.DIDDocument) (pk : PublicKey) (did : W3C.DID) (h : matchesV0 doc pk did = true) :
                          doc.id = did

                          Acceptance binds the completed document id to the derived id.