-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e40c1f
commit 2fa3521
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# The Invocation Payload attaches sender, receiver, and provenance to the Task. | ||
# type Payload struct { | ||
# # The DID of the Invoker | ||
# iss DID | ||
# # The Subject being invoked | ||
# sub DID | ||
# # The DID of the intended Executor if different from the Subject | ||
# aud optional DID | ||
# | ||
# # The Command | ||
# cmd Command | ||
# # The Command's Arguments | ||
# args {String : Any} | ||
# | ||
# # A unique, random nonce | ||
# nonce optional String | ||
# | ||
# # Arbitrary Metadata | ||
# meta optional {String : Any} | ||
# # Delegations that prove the chain of authority | ||
# prf [&Delegation] | ||
# # The timestamp at which the Invocation becomes invalid | ||
# exp optional Integer | ||
# # An OPTIONAL timestamp at which the Invocation was created | ||
# iat optional Integer | ||
# | ||
# # An OPTIONAL CID of the Receipt that enqueued the Task | ||
# cause optional &Receipt | ||
# } | ||
|
||
type DID string | ||
|
||
type Foo struct { | ||
iss DID | ||
exp optional Int | ||
prf [String] | ||
} |