container: Reader should keep around and expose the sealed bytes
This commit is contained in:
@@ -39,3 +39,10 @@ type Marshaller interface {
|
||||
// ToDagJsonWriter is the same as ToDagJson, but it accepts an io.Writer.
|
||||
ToDagJsonWriter(w io.Writer, privKey crypto.PrivKey) error
|
||||
}
|
||||
|
||||
// Bundle carries together a decoded token with its Cid and raw signed data.
|
||||
type Bundle[T Token] struct {
|
||||
Cid cid.Cid
|
||||
Decoded T
|
||||
Sealed []byte
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user