token: ditch the generic bundle in favor of specialized struct
It's kust cleaner that way, the generic has no upside.
This commit is contained in:
@@ -41,8 +41,8 @@ type Marshaller interface {
|
||||
}
|
||||
|
||||
// Bundle carries together a decoded token with its Cid and raw signed data.
|
||||
type Bundle[T Token] struct {
|
||||
type Bundle struct {
|
||||
Cid cid.Cid
|
||||
Decoded T
|
||||
Decoded Token
|
||||
Sealed []byte
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user