NOTE:Only DID:peer:2. (method type 2) is supported.
Resolver Result ::
Create a DID:peer
To create a new DID:peer, you need to provide at least one key. You can add more keys and services if
needed. NOTE:Only DID:peer:2. (method type 2) is supported.
Keys
DID:peer supports two types of keys: Verification and Encryption. You can add multiple keys of each type.
Verification
- Appears in the DID Document authentication and assertionMethod fields
Recommend Ed25519 key type for signing
Encryption
- Appears in the DID Document keyAgreement field
Recommend Secp256K1 key type for encryption, supports recryption capabilities
You can specify an existing Multibase Public Key if already created (i.e. for example did:key:(z6Mk...)).
If left blank, keys will be autogenerated and private keys shown below.
Important: For DIDComm you must create a new DID:peer with at least one Verification and
one Encryption key.
NOTE:The order of these keys reflects the key identifier names used! NOTE:For simplicity auto-generated keys are Ed25519 based. EdDSA + Curve25519
Key ID
Purpose
Type
Multibase Public Key
Services
DID:peer allows you to specify service statements that can be used for example to describe how DIDComm messages
can be sent to a mediator service. You can specify multiple services.
Type
- Defaults to DIDCommMessaging
URI
- Service endpoint address E.g. (https://127.0.0.1:7037/)
Accept
- Array of accepted message types for this service. Defaults to didcomm/v2
Routing Keys
- Array of DID public-keys that can be used for this defined service. Format must be
did:method:identifier#key-id
NOTE:The order of these services reflects the service identifier names used! NOTE:All attributes are required in describing the service! NOTE:Separate multiple items in Arrays with ';'
Examples
Alice wants to send a DIDComm message to Bob. Bob utilizes a DIDComm mediator to handle his incoming messages,
this
is described in Bob's DID Document via a defined service.
Alice
Alice represents herself with a Decentralized Identifier (DID) that contains the following:
1. Verification key that is used for signing of messages for non-repudiation
2. Encryption key that is used for encryption of messages that are sent to Alice
3. Basic service definition that states she accepts DIDComm messaging directly
Affinidi offers a mediator node that can be used to route messages between two parties. Bob uses this mediator
to
receive messages.
This mediator is referenced in Bob's DID Document via a defined service for DIDComm messaging. The Mediator's
DID
contains:
1. Verification key that is used for signing of messages for non-repudiation
2. Encryption key that is used for encryption of messages that are sent to Bob
3. Service definition that shares the address for Affinidi Secure Messaging