Skip to content

Instantly share code, notes, and snippets.

@csuwildcat
Last active November 29, 2023 16:31
Show Gist options
  • Save csuwildcat/683520334e8df31cc7a40dbc1bd62b65 to your computer and use it in GitHub Desktop.
Save csuwildcat/683520334e8df31cc7a40dbc1bd62b65 to your computer and use it in GitHub Desktop.
{
types: {
invitation: {
schema: "https://example.com/protocols/signdocs/invitation"
dataFormats: ['application/json']
}
},
structure: {
invitation: {
$actions: [
{
who: 'anyone',
can: 'write'
}
]
},
document: {
verifier: {
$contextRole: true
},
$actions: [
{
role: 'document/verifier',
can: 'query'
},
{
role: 'document/verifier',
can: 'read'
}
],
finalizedBundle: {
$actions: [
{
role: 'document/verifier',
can: 'query'
},
{
role: 'document/verifier',
can: 'read'
}
],
},
signer: {
$actions: [
{
who: 'author',
of: 'document',
can: 'write'
}
],
signedProof: {
$actions: [
{
who: 'recipient',
of: 'document/signer',
can: 'write'
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment