Slide 25
Slide 25 text
CollaboGate Japan, Inc.
DIDComm Message Formats
DIDComm Plaintext Message (.dcpm) DIDComm Encrypted Message (.dcem)
Technology
{
"id" : "543db1d5-e921-4538-9c58-41a4782e03aa",
"type" : "JWM",
"from" : "did:unid:device",
"to" : [ "did:unid:cloud" ],
"typ" : "application/didcomm-plain+json",
“body” : { verifiable credential },
“attachments” : [
{
"data" : {
"json" : "{\"location\":\"Jupiter\",\"serial\":\"SERIAL0000\",\"user\":\"USER0000\"}",
"links" : [ "https://did.getunid.io" ]
},
"format" : "metadata",
"id" : "clegvat4u0000ehq3d78bh2md",
"lastmod_time" : "2023-02-23 08:53:49.950270 UTC"
}
]
}
{
"ciphertext" : "1USvve5YjPq....",
"iv" : "QXtoOcsCfTn408epoKXzuZrJ4saKaAGr",
"protected" : "eyJ0eXAiOiJh....",
"recipients" : [
{
"encrypted_key" : "ehgyo813uvz4iRq50BLdESxiLQl0ak2tlpSwazajhsQ",
"header" : {
"alg" : "ECDH-1PU+XC20PKW",
"epk" : {
"crv" : "X25519",
"kty" : "OKP",
"x" : "-KUZm2DJNvSD5I-gSE_z6l1jmYefW70jNHjYg3Bum2Y"
},
"iv" : "NnmvFYJ3ravTjFNcLD7HSLZOTnns8Ojf",
"key_ops" : [],
"kid" : "did:unid:cloud",
"tag" : "uDN-lHOT8zZMvyzaxSKE1w"
}
}
],
"tag" : "6IbsAW9CenSDIZBWaeF2xw"
}
//base64 decode、”skid”が送信元デバイスのDIDに該当
//受信先クラウドのDIDに該当