Skip to content

Commit

Permalink
invocation: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMure committed Sep 2, 2024
1 parent 3e40c1f commit 2fa3521
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions invocation/invocation.ipldsch
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]
}

0 comments on commit 2fa3521

Please sign in to comment.