Describe the bug
There is a bug (found while updating the Agent Explorer) where the Veramo agent is unable to correctly pack DIDComm messages when trying to send a message from a peer-did and gives a 'could not map an agent key to an skid` error.
Strangely, this bug only occurs on the 2nd or later packDIDCommMessage call of an agent's lifespan. The first call correctly packs the message, but subsequent calls have failures.
Bug severity 3
Describe the bug There is a bug (found while updating the Agent Explorer) where the Veramo agent is unable to correctly pack DIDComm messages when trying to send a message from a
peer-did
and gives a 'could not map an agent key to an skid` error.Strangely, this bug only occurs on the 2nd or later
packDIDCommMessage
call of an agent's lifespan. The first call correctly packs the message, but subsequent calls have failures.To Reproduce Steps to reproduce the behaviour: You can see this error by running this branch of the Agent Explorer: https://github.com/veramolabs/agent-explorer/commit/05789564c704c84f82dd054841c178f618ee5465
Versions (please complete the following information):