Documentation ¶
Overview ¶
Package server implements the gRPC and REST endpoints for retrieving attestation statements.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttestationIssuer ¶
type AttestationIssuer interface {
Issue(ctx context.Context, userData []byte, nonce []byte) (quote []byte, err error)
}
AttestationIssuer issues an attestation document for the provided userData and nonce.
type Server ¶
type Server struct { verifyproto.UnimplementedAPIServer // contains filtered or unexported fields }
Server implements Constellation's verify API. The server exposes both HTTP and gRPC endpoints to retrieve attestation statements.
func New ¶
func New(log *slog.Logger, issuer AttestationIssuer) *Server
New initializes a new verification server.
func (*Server) GetAttestation ¶
func (s *Server) GetAttestation(ctx context.Context, req *verifyproto.GetAttestationRequest) (*verifyproto.GetAttestationResponse, error)
GetAttestation implements the gRPC endpoint for requesting attestation statements.
Click to show internal directories.
Click to hide internal directories.