Skip to content

Instantly share code, notes, and snippets.

@msporny
Last active May 4, 2016 02:58
Show Gist options
  • Save msporny/f1e904f4e24ef7c8fec3b7646406c4ad to your computer and use it in GitHub Desktop.
Save msporny/f1e904f4e24ef7c8fec3b7646406c4ad to your computer and use it in GitHub Desktop.
Example of credential transmission with proof of posession
{
"@context":"https://w3id.org/identity/v1",
"id":"did:90096afc-c232-4b96-b48c-dcdba19b7ead",
"type":"Identity",
"credential":[
{
"@graph":{
"@context":"https://w3id.org/identity/v1",
"id":"https://travel.state.gov/credentials/6fc0f6d2c68a",
"type":[
"Credential"
],
"claim":{
"id":"did:90096afc-c232-4b96-b48c-dcdba19b7ead",
"isCitizenOfUSA": true
},
"signature":{
"type":"LinkedDataSignature2015",
"created":"2016-05-04T02:49:02Z",
"creator":"https://travel.state.gov/ids/us-dept-of-state/keys/327",
"signatureValue":"iHNqcWIklT7lnAYIcRtBekMFI1zZjgmkXFi/ab84SFAn0uEMOKpEbbaUtvBK8Hn8q2X6dNYwtVFzG2/TKIMU03T3o/Y6kL3hMcGrMOKQYPUEyQpWK3EB+A7qHYv03QJ3wpBk2eEK9HQJJ/dyxqaAZuZKMp+oG7IMtgj1AyntIc6cKdofuqWodaflAYLnDHcbs1LfgO+7a8nVNbrn/vprk08VXOaHnrFIyXUwzkHyFxgi0JXb2WmxPIHJDgQW/c8Jn2IDsxNroIqBRsITaDuvvKzyYDoQ8WnFS6astEs5rk8NRwDGhytFV2mlHe3Lf2g+h6Nx0tEQPf7mqSiUswAikg=="
}
}
}
],
"signature":{
"type":"LinkedDataSignature2015",
"created":"2016-05-04T02:49:03Z",
"creator":"did:90096afc-c232-4b96-b48c-dcdba19b7ead/keys/1",
"domain":"anders.com",
"signatureValue":"KkMLWzEapffAXZKj+VaG9KfxDjc0DlUzH0rb/HNAAziqpyjAtb7zMaX2koroE7bPRwtn+OAJJ49meLcHEXSxP4soLsQcgfgbKiBZhrHQyjkZUBonANdYGpVRh4wRHSbWn1BBxbCZkveHYJdptwLZDG8mrum8OJ4Q3aDjf2KzgZ9cQgRWqEGVVS/vBjz3KedZvwN5hXMxS1BWudOTu2vfXdr2MfuTapr8pxjPjh5ld3W36AuNiFKj/JAoIILvEVBIhFlGkzmNPXWEVURWdJ5iYVnfTyx/NwRWFtYfHU9ylJa4S+SoGi0h1aTUkjPFZDnTCxZH5q4p5lxqiO7ea9piKQ=="
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment