Skip to content

Commit

Permalink
common/golang: fix error issue in report
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruoyu-y committed Jun 25, 2024
1 parent 8ed5e29 commit 0e7f05e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/golang/cctrusted_base/tdx/report.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package tdx

import (
"errors"
"github.com/cc-api/cc-trusted-api/common/golang/cctrusted_base"
)

Expand Down Expand Up @@ -51,7 +52,7 @@ func (t *TdxReport) Marshal() ([]byte, error) {
rawBytes := append(t.Quote.Header.raw.Binary, t.Quote.Body.raw.Binary...)
sig_ecdsa, ok := t.Quote.Signature.(*TdxQuoteSignatureEcdsa256)
if !ok {
return []byte{}, errors.new("Invalid TDX Quote Signature.")
return []byte{}, errors.New("Invalid TDX Quote Signature.")
}

rawBytes = append(rawBytes, sig_ecdsa.raw.Binary...)
Expand Down

0 comments on commit 0e7f05e

Please sign in to comment.