diff --git a/token/delegation/loader.go b/token/delegation/utilities.go similarity index 73% rename from token/delegation/loader.go rename to token/delegation/utilities.go index 13dd81d..957ca9d 100644 --- a/token/delegation/loader.go +++ b/token/delegation/utilities.go @@ -15,3 +15,10 @@ type Loader interface { // If not found, ErrDelegationNotFound is returned. GetDelegation(cid cid.Cid) (*Token, error) } + +// Bundle carries together a decoded delegation with its Cid and raw signed data. +type Bundle struct { + Cid cid.Cid + Decoded *Token + Sealed []byte +}