File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ import (
1818type Attestation struct {
1919 intoto.StatementHeader
2020 // Predicate contains type specific metadata.
21- Predicate vex.VEX `json:"predicate"`
22- Signed bool `json:"-"`
23- signedData []byte `json:"-"`
21+ Predicate vex.VEX `json:"predicate"`
2422}
2523
2624func New () * Attestation {
@@ -36,13 +34,6 @@ func New() *Attestation {
3634
3735// ToJSON writes the attestation as JSON to the io.Writer w
3836func (att * Attestation ) ToJSON (w io.Writer ) error {
39- if att .Signed {
40- if _ , err := w .Write (att .signedData ); err != nil {
41- return fmt .Errorf ("writing signed attestation" )
42- }
43- return nil
44- }
45-
4637 enc := json .NewEncoder (w )
4738 enc .SetIndent ("" , " " )
4839 enc .SetEscapeHTML (false )
You can’t perform that action at this time.
0 commit comments