2024-08-30 22:06:59 +02:00
|
|
|
type DID string
|
|
|
|
|
|
|
|
|
|
# The Delegation payload MUST describe the authorization claims, who is involved, and its validity period.
|
|
|
|
|
type Payload struct {
|
|
|
|
|
# Issuer DID (sender)
|
|
|
|
|
iss DID
|
|
|
|
|
# Audience DID (receiver)
|
|
|
|
|
aud DID
|
|
|
|
|
# Principal that the chain is about (the Subject)
|
|
|
|
|
sub optional DID
|
|
|
|
|
|
|
|
|
|
# The Command to eventually invoke
|
|
|
|
|
cmd String
|
|
|
|
|
|
|
|
|
|
# The delegation policy
|
2024-09-02 02:26:48 +02:00
|
|
|
# It doesn't seem possible to represent it with a schema.
|
|
|
|
|
pol Any
|
2024-08-30 22:06:59 +02:00
|
|
|
|
|
|
|
|
# A unique, random nonce
|
|
|
|
|
nonce Bytes
|
|
|
|
|
|
|
|
|
|
# Arbitrary Metadata
|
2024-10-24 13:43:52 -04:00
|
|
|
meta optional {String : Any}
|
2024-08-30 22:06:59 +02:00
|
|
|
|
|
|
|
|
# "Not before" UTC Unix Timestamp in seconds (valid from), 53-bits integer
|
|
|
|
|
nbf optional Int
|
|
|
|
|
# The timestamp at which the Invocation becomes invalid
|
|
|
|
|
exp nullable Int
|
|
|
|
|
}
|