Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/upgrade to askar #16

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

KimEbert42
Copy link
Contributor

Upgrade to Askar work

@anwalker293
Copy link
Contributor

anwalker293 commented Nov 18, 2023

Error when upping this:

DEBUG: Agent received message
INFO: Received message with type 'https://didcomm.org/coordinate-mediation/1.0/keylist-update-response', recipient key z6MkkUGLS3BeoVGDC2tH6QLd5QXEqf5TSFEbGdvyK8gLGErj and sender key z6MkinNuxf17LVNYNina6mBqFtH8SRgVxLuA7XW9PFAnBUDG {
  "@type": "https://didcomm.org/coordinate-mediation/1.0/keylist-update-response",
  "@id": "34f5c7e0-3f56-416d-b611-db0adeea2364",
  "~thread": {
    "thid": "ca20006e-5728-41b8-8095-434532f756d7"
  },
  "updated": [
    {
      "recipient_key": "HJg5ye2Zuq6rKDFdZrbtr6jmGDokNnQaDWDt9C8acxqW",
      "action": "add",
      "result": "success"
    }
  ]
}
DEBUG: Create message https://didcomm.org/connections/1.0/request start {
  "_tags": {
    "invitationId": "72c8be2f-29a0-4680-95c7-ea2c4c1d83b9",
    "recipientKeyFingerprints": [
      "z6Mkvc8JyzSASxQCTAWhTQeQxSEV8RiZQsipNyx4hGtBTqWx"
    ],
    "role": "receiver",
    "state": "initial",
    "threadId": "72c8be2f-29a0-4680-95c7-ea2c4c1d83b9"
  },
  "metadata": {},
  "id": "f25f1e43-c4d8-4409-82c1-baa5ba3ba2ba",
  "createdAt": "2023-11-14T20:36:03.675Z",
  "outOfBandInvitation": {
    "@type": "https://didcomm.org/out-of-band/1.1/invitation",
    "@id": "72c8be2f-29a0-4680-95c7-ea2c4c1d83b9",
    "label": "Bob",
    "accept": [
      "didcomm/aip1",
      "didcomm/aip2;env=rfc19"
    ],
    "handshake_protocols": [
      "https://didcomm.org/connections/1.0"
    ],
    "services": [
      {
        "id": "#inline",
        "serviceEndpoint": "http://107.23.115.185:8151",
        "type": "did-communication",
        "recipientKeys": [
          "did:key:z6Mkvc8JyzSASxQCTAWhTQeQxSEV8RiZQsipNyx4hGtBTqWx"
        ]
      }
    ]
  },
  "role": "receiver",
  "state": "prepare-response",
  "autoAcceptConnection": true,
  "reusable": false,
  "updatedAt": "2023-11-14T20:36:03.686Z"
}
DEBUG: Saving DID record {
  "id": "52fe9090-bdce-4005-805a-7694f45c19ff",
  "did": "did:peer:1zQmXisgfLPAva9bmmMPytzubdKSYPoUtN6GDLFi61oRK78M",
  "role": "created",
  "tags": {
    "recipientKeyFingerprints": [
      "z6Mkvkw8ZtH1FNbKRi6LFRZjhCHm5o5bnfevuX8oyU6bYBct"
    ],
    "role": "created",
    "method": "peer",
    "legacyUnqualifiedDid": "Wv5FQ9cx7PRiYqk8mMM6PZ",
    "did": "did:peer:1zQmXisgfLPAva9bmmMPytzubdKSYPoUtN6GDLFi61oRK78M",
    "methodSpecificIdentifier": "1zQmXisgfLPAva9bmmMPytzubdKSYPoUtN6GDLFi61oRK78M"
  },
  "didDocument": "omitted..."
}
DEBUG: Did record created. {
  "_tags": {
    "recipientKeyFingerprints": [
      "z6Mkvkw8ZtH1FNbKRi6LFRZjhCHm5o5bnfevuX8oyU6bYBct"
    ]
  },
  "metadata": { 
   "_internal/legacyDid": {
      "unqualifiedDid": "Wv5FQ9cx7PRiYqk8mMM6PZ",
      "didDocumentString": "{\"@context\":\"https://w3id.org/did/v1\",\"publicKey\":[{\"id\":\"Wv5FQ9cx7PRiYqk8mMM6PZ#1\",\"controller\":\"Wv5FQ9cx7PRiYqk8mMM6PZ\",\"type\":\"Ed25519VerificationKey2018\",\"publicKeyBase58\":\"HJg5ye2Zuq6rKDFdZrbtr6jmGDokNnQaDWDt9C8acxqW\"}],\"service\":[{\"id\":\"Wv5FQ9cx7PRiYqk8mMM6PZ#IndyAgentService\",\"serviceEndpoint\":\"https://ndutqgo9cj.execute-api.us-east-1.amazonaws.com/Prod/message\",\"type\":\"IndyAgent\",\"priority\":0,\"recipientKeys\":[\"HJg5ye2Zuq6rKDFdZrbtr6jmGDokNnQaDWDt9C8acxqW\"],\"routingKeys\":[\"5L7sNQkfzwt5GDwsRCDzQnj8crQeYTeoRWbDYyCmGFRt\"]}],\"authentication\":[{\"publicKey\":\"Wv5FQ9cx7PRiYqk8mMM6PZ#1\",\"type\":\"Ed25519SignatureAuthentication2018\"}],\"id\":\"Wv5FQ9cx7PRiYqk8mMM6PZ\"}"
    }
  },
  "id": "52fe9090-bdce-4005-805a-7694f45c19ff",
  "did": "did:peer:1zQmXisgfLPAva9bmmMPytzubdKSYPoUtN6GDLFi61oRK78M",
  "role": "created",
  "didDocument": {
    "@context": [
      "https://w3id.org/did/v1"
    ],
    "id": "did:peer:1zQmXisgfLPAva9bmmMPytzubdKSYPoUtN6GDLFi61oRK78M",
    "verificationMethod": [
      {
        "id": "#HJg5ye2Z",
        "type": "Ed25519VerificationKey2018",
        "controller": "#id",
        "publicKeyBase58": "HJg5ye2Zuq6rKDFdZrbtr6jmGDokNnQaDWDt9C8acxqW"
      }
    ],
    "service": [
      {
        "id": "#IndyAgentService",
        "serviceEndpoint": "https://ndutqgo9cj.execute-api.us-east-1.amazonaws.com/Prod/message",
        "type": "IndyAgent",
        "priority": 0,
        "recipientKeys": [
          "HJg5ye2Zuq6rKDFdZrbtr6jmGDokNnQaDWDt9C8acxqW"
        ],
        "routingKeys": [
          "5L7sNQkfzwt5GDwsRCDzQnj8crQeYTeoRWbDYyCmGFRt"
        ]
      }
    ],
    "authentication": [
      "#HJg5ye2Z"
    ]
  },
  "createdAt": "2023-11-14T20:36:03.837Z",
  "updatedAt": "2023-11-14T20:36:03.838Z"
}
DEBUG: Send outbound message {
  "message": {
    "@type": "https://didcomm.org/connections/1.0/request",
    "@id": "deafb561-cbcc-41b1-bcc4-62122a16b520",
    "label": "je4YiqaPy0YWnF",
    "connection": {
      "DID": "Wv5FQ9cx7PRiYqk8mMM6PZ",
      "DIDDoc": {
        "@context": "https://w3id.org/did/v1",
        "publicKey": [
          {
            "id": "Wv5FQ9cx7PRiYqk8mMM6PZ#1",
            "controller": "Wv5FQ9cx7PRiYqk8mMM6PZ",
            "type": "Ed25519VerificationKey2018",
            "publicKeyBase58": "HJg5ye2Zuq6rKDFdZrbtr6jmGDokNnQaDWDt9C8acxqW"
          }
        ],
        "service": [
          {
            "id": "Wv5FQ9cx7PRiYqk8mMM6PZ#IndyAgentService",
            "serviceEndpoint": "https://ndutqgo9cj.execute-api.us-east-1.amazonaws.com/Prod/message",
            "type": "IndyAgent",
            "priority": 0,
            "recipientKeys": [
              "HJg5ye2Zuq6rKDFdZrbtr6jmGDokNnQaDWDt9C8acxqW"
            ],
            "routingKeys": [
              "5L7sNQkfzwt5GDwsRCDzQnj8crQeYTeoRWbDYyCmGFRt"
            ]
          }
        ],
        "authentication": [
          {
            "publicKey": "Wv5FQ9cx7PRiYqk8mMM6PZ#1",
            "type": "Ed25519SignatureAuthentication2018"
          }
        ],
        "id": "Wv5FQ9cx7PRiYqk8mMM6PZ"
      }
    },
    "~thread": {
      "thid": "deafb561-cbcc-41b1-bcc4-62122a16b520",
      "pthid": "72c8be2f-29a0-4680-95c7-ea2c4c1d83b9"
    }
  },
  "connectionId": "101953b4-154c-4480-8901-5cff497f8fd0"
}
DEBUG: Retrieving services for connection '101953b4-154c-4480-8901-5cff497f8fd0' (Bob) {
  "connection": {
    "_tags": {},
    "metadata": {},
    "connectionTypes": [],
    "id": "101953b4-154c-4480-8901-5cff497f8fd0",
    "createdAt": "2023-11-14T20:36:03.844Z",
    "did": "did:peer:1zQmXisgfLPAva9bmmMPytzubdKSYPoUtN6GDLFi61oRK78M",
    "invitationDid": "did:peer:2.SeyJzIjoiaHR0cDovLzEwNy4yMy4xMTUuMTg1OjgxNTEiLCJ0IjoiZGlkLWNvbW11bmljYXRpb24iLCJwcmlvcml0eSI6MCwicmVjaXBpZW50S2V5cyI6WyJkaWQ6a2V5Ono2TWt2YzhKeXpTQVN4UUNUQVdoVFFlUXhTRVY4UmlaUXNpcE55eDRoR3RCVHFXeCN6Nk1rdmM4Snl6U0FTeFFDVEFXaFRRZVF4U0VWOFJpWlFzaXBOeXg0aEd0QlRxV3giXX0",
    "theirLabel": "Bob",
    "state": "request-sent",
    "role": "requester",
    "autoAcceptConnection": true,
    "threadId": "deafb561-cbcc-41b1-bcc4-62122a16b520",
    "mediatorId": "a08cc2fd-5968-4977-bd8f-5634f7dbbe96",
    "protocol": "https://didcomm.org/connections/1.0",
    "outOfBandId": "f25f1e43-c4d8-4409-82c1-baa5ba3ba2ba",
    "updatedAt": "2023-11-14T20:36:03.850Z"
  }
}
DEBUG: Resolving services from out-of-band record f25f1e43-c4d8-4409-82c1-baa5ba3ba2ba.
DEBUG: Retrieved 1 services for message to connection '101953b4-154c-4480-8901-5cff497f8fd0'(Bob)' {
  "hasQueueService": false
}
DEBUG: resolving didUrl did:peer:1zQmXisgfLPAva9bmmMPytzubdKSYPoUtN6GDLFi61oRK78M
DEBUG: Sending outbound message to service: {
  "messageId": "deafb561-cbcc-41b1-bcc4-62122a16b520",
  "service": {
    "id": "#inline",
    "recipientKeys": "omitted...",
    "routingKeys": "omitted...",
    "serviceEndpoint": "http://107.23.115.185:8151"
  }
}
DEBUG: Pack outbound message https://didcomm.org/connections/1.0/request
DEBUG: Sending outbound message to endpoint 'http://107.23.115.185:8151' {
  "payload": {
    "protected": "eyJlbmMiOiJ4Y2hhY2hhMjBwb2x5MTMwNV9pZXRmIiwidHlwIjoiSldNLzEuMCIsImFsZyI6IkF1dGhjcnlwdCIsInJlY2lwaWVudHMiOlt7ImVuY3J5cHRlZF9rZXkiOiJtLVByd3g1Mzd6Vzc1SWNhRTcyRXJvVFNrdUxmbmpnc1BLTWlEQjBhdW1veHg2MEZIVEgzdXZ6ZmFCdkhaRzJyIiwiaGVhZGVyIjp7ImtpZCI6Ikg5c0dQa0JqN1F1akxmZnptcWdhN0x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4439HTl_atiOZfdpTtTAT0ZHP8DE4OQy1ZwubKdquX1zCNkCFmF2yCZ3vLwoTGg3tZrJLImZMiLwZSo8fNGqC2Wl1EcpfWb_QOanJjUQzMr4ESNRxRiWWVT1Vmz9EpJfML9LaRrgi1AF1MO4fYaNeJevkafMpR5V_RMQ8C6Gn1DMjUTU_RFLqxSFWLhmM9vvd6yix1b1iaXD8Os39H_U6jcoKKdAiEFTk4a4jBQMXUnT2umSaNd4mihJx6ASkLIPdx6ETtNVkK1QBsSnp-qE6EREkxGVglsmUoDtkNuxvSonsaQEO7AquNvs-aSof6mZ8twbj-U",
    "iv": "exRVVo-oD8j6Cldl",
    "tag": "tf2hDTOJ35p5LBMvHNtNfw"
  }
}
ERROR: Error sending message to http://107.23.115.185:8151: The user aborted a request. {
  "error": {
    "name": "AbortError",
    "type": "aborted",
    "message": "The user aborted a request.",
    "stack": "AbortError: The user aborted a request.\n    at abort (/load-agent/load-agent/node_modules/node-fetch/lib/index.js:1458:16)\n    at AbortSignal.abortAndFinalize (/load-agent/load-agent/node_modules/node-fetch/lib/index.js:1473:4)\n    at AbortSignal.dispatchEvent (/load-agent/load-agent/node_modules/event-target-shim/src/event-target.mjs:337:35)\n    at abortSignal (/load-agent/load-agent/node_modules/abort-controller/src/abort-signal.ts:68:12)\n    at AbortController.abort (/load-agent/load-agent/node_modules/abort-controller/src/abort-controller.ts:26:9)\n    at Timeout._onTimeout (/load-agent/load-agent/node_modules/@aries-framework/core/src/transport/HttpOutboundTransport.ts:47:51)\n    at listOnTimeout (node:internal/timers:569:17)\n    at processTimers (node:internal/timers:512:7)"
  },
  "message": "The user aborted a request.",
  "body": {
    "protected": "eyJlbmMiOiJ4Y2hhY2hhMjBwb2x5MTMwNV9pZXRmIiwidHlwIjoiSldNLzEuMCIsImFsZyI6IkF1dGhjcnlwdCIsInJlY2lwaWVudHMiOlt7ImVuY3J5cHRlZF9rZXkiOiJtLVByd3g1Mzd6Vzc1SWNhRTcyRXJvVFNrdUxmb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oa5YsHW_Ld5G1yUv-Mj5jf8ERv9HfDa1NF5u4yTUPidwUGzoP9PFSMiB
ayWDgE56F5FsoAsn11aOlw0MlI-4mTCvuh3jmsH-5ppUhWSutKwCW-soRd4439HTl_atiOZfdpTtTAT0ZHP8DE4OQy1ZwubKdquX1zCNkCFmF2yCZ3vLwoTGg3tZrJLImZMiLwZSo8fNGqC2Wl1EcpfWb_QOanJjUQzMr4ESNRxRiWWVT1Vmz9EpJfML9LaRrgi1AF1MO4fYaNeJevkafMpR5V_RMQ8C6Gn1DMjUTU_RFLqxSFWLhmM9vvd6yix1b1iaXD8Os39H_U6jcoKKdAiEFTk4a4jBQMXUnT2umSaNd4mihJx6ASkLIPdx6ETtNVkK1QBsSnp-qE6EREkxGVglsmUoDtkNuxvSonsaQEO7AquNvs-aSof6mZ8twbj-U",
    "iv": "exRVVo-oD8j6Cldl",
    "tag": "tf2hDTOJ35p5LBMvHNtNfw"
  },
  "didCommMimeType": "application/ssi-agent-wire"
}
DEBUG: Sending outbound message to service with id #inline failed with the following error: {
  "message": "Error sending message to http://107.23.115.185:8151: The user aborted a request.",
  "error": {
    "name": "AriesFrameworkError",
    "message": "Error sending message to http://107.23.115.185:8151: The user aborted a request.",
    "stack": "AriesFram...```
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants