Skip to content

Commit 2d2b6ef

Browse files
authored
Merge pull request #5 from openvex/drop-signed-buffer
Drop signed data bufffer
2 parents b7b46c9 + 4cd7d75 commit 2d2b6ef

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pkg/attestation/attestation.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ import (
1818
type 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

2624
func New() *Attestation {
@@ -36,13 +34,6 @@ func New() *Attestation {
3634

3735
// ToJSON writes the attestation as JSON to the io.Writer w
3836
func (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)

0 commit comments

Comments
 (0)