Documentation

AMATELUS.DIDCommProfile

Version 1 is an explicit two-key profile. Version 0 and its hash input remain unchanged. This adds no directory or endpoint requirement. The public information pair is [1, {signingKey, agreementKey}]. No Ed25519-to-X25519 conversion is assumed.

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

      JCS of fixed Version 1 template; only public keys vary.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def AMT.DIDComm.keyId (did : W3C.DID) (fragment : String) :
        Equations
        Instances For
          def AMT.DIDComm.method (did : W3C.DID) (fragment curve : String) (key : PublicKey) :
          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 AMT.DIDComm.methodMatches (vm : W3C.VerificationMethod) (did : W3C.DID) (fragment curve : String) (key : PublicKey) :

              Canonical W3C model ordering; JSON parser normalizes object member order and checks the two exact context entries, duplicates, sizes and unknown fields.

              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 AMT.DIDComm.derive (sha3512 : List UInt8 → Hash) (input : Input) :
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Instances For
                      def AMT.DIDComm.verifyPeer (sha3512 : List UInt8 → Hash) (peer : Peer) :
                      Equations
                      Instances For
                        def AMT.DIDComm.selectAgreementKeys (sha3512 : List UInt8 → Hash) (sender recipient : Peer) (senderKid recipientKid : W3C.DIDURL) :

                        Authcrypt key selection. Agreement keys come exclusively from the locally reconstructed keyAgreement relationship; never substitute the signing key.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def AMT.DIDComm.encrypt (sha3512 : List UInt8 → Hash) (sender recipient : Peer) (senderKid recipientKid : W3C.DIDURL) (plaintext : List UInt8) (budget : ResourceBudget) (pack : Peer → Peer → W3C.DIDURL → W3C.DIDURL → List UInt8 → Option (List UInt8)) :

                          Backend implements DIDComm authcrypt, validates X25519 keys (including all-zero shared-secret rejection), binds protected headers and authenticated from/to, and checks that its private-key handle matches the selected local agreement key.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def AMT.DIDComm.decrypt (sha3512 : List UInt8 → Hash) (sender recipient : Peer) (senderKid recipientKid : W3C.DIDURL) (ciphertext : List UInt8) (budget : ResourceBudget) (unpack : ResourceBudget → Peer → Peer → W3C.DIDURL → W3C.DIDURL → List UInt8 → Option (List UInt8)) :

                            Unpack authenticates the protected skid/kid, from/to and context before return; its decompression/parser must enforce the budget during work, not only at the end.

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