Last active
November 29, 2023 16:31
-
-
Save csuwildcat/683520334e8df31cc7a40dbc1bd62b65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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