proto

package
v0.20261006.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MTCB_StandaloneReady_FullMethodName     = "/mtcb.MTCB/StandaloneReady"
	MTCB_GetStandalone_FullMethodName       = "/mtcb.MTCB/GetStandalone"
	MTCB_GetLandmarkRelative_FullMethodName = "/mtcb.MTCB/GetLandmarkRelative"
)

Variables

View Source
var MTCB_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mtcb.MTCB",
	HandlerType: (*MTCBServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StandaloneReady",
			Handler:    _MTCB_StandaloneReady_Handler,
		},
		{
			MethodName: "GetStandalone",
			Handler:    _MTCB_GetStandalone_Handler,
		},
		{
			MethodName: "GetLandmarkRelative",
			Handler:    _MTCB_GetLandmarkRelative_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "mtcb.proto",
}

MTCB_ServiceDesc is the grpc.ServiceDesc for MTCB service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMTCBServer

func RegisterMTCBServer(s grpc.ServiceRegistrar, srv MTCBServer)

Types

type LandmarkRelativeRequest

type LandmarkRelativeRequest struct {

	// Next unused field number: 3
	MtcLogID string `protobuf:"bytes,1,opt,name=mtcLogID,proto3" json:"mtcLogID,omitempty"`
	Serial   uint64 `protobuf:"varint,2,opt,name=serial,proto3" json:"serial,omitempty"`
	// contains filtered or unexported fields
}

func (*LandmarkRelativeRequest) Descriptor deprecated

func (*LandmarkRelativeRequest) Descriptor() ([]byte, []int)

Deprecated: Use LandmarkRelativeRequest.ProtoReflect.Descriptor instead.

func (*LandmarkRelativeRequest) GetMtcLogID

func (x *LandmarkRelativeRequest) GetMtcLogID() string

func (*LandmarkRelativeRequest) GetSerial

func (x *LandmarkRelativeRequest) GetSerial() uint64

func (*LandmarkRelativeRequest) ProtoMessage

func (*LandmarkRelativeRequest) ProtoMessage()

func (*LandmarkRelativeRequest) ProtoReflect

func (x *LandmarkRelativeRequest) ProtoReflect() protoreflect.Message

func (*LandmarkRelativeRequest) Reset

func (x *LandmarkRelativeRequest) Reset()

func (*LandmarkRelativeRequest) String

func (x *LandmarkRelativeRequest) String() string

type LandmarkRelativeResponse

type LandmarkRelativeResponse struct {

	// Next unused field number: 3
	CertDER      []byte `protobuf:"bytes,1,opt,name=certDER,proto3" json:"certDER,omitempty"`
	CertPropList []byte `protobuf:"bytes,2,opt,name=certPropList,proto3" json:"certPropList,omitempty"`
	// contains filtered or unexported fields
}

func (*LandmarkRelativeResponse) Descriptor deprecated

func (*LandmarkRelativeResponse) Descriptor() ([]byte, []int)

Deprecated: Use LandmarkRelativeResponse.ProtoReflect.Descriptor instead.

func (*LandmarkRelativeResponse) GetCertDER

func (x *LandmarkRelativeResponse) GetCertDER() []byte

func (*LandmarkRelativeResponse) GetCertPropList

func (x *LandmarkRelativeResponse) GetCertPropList() []byte

func (*LandmarkRelativeResponse) ProtoMessage

func (*LandmarkRelativeResponse) ProtoMessage()

func (*LandmarkRelativeResponse) ProtoReflect

func (x *LandmarkRelativeResponse) ProtoReflect() protoreflect.Message

func (*LandmarkRelativeResponse) Reset

func (x *LandmarkRelativeResponse) Reset()

func (*LandmarkRelativeResponse) String

func (x *LandmarkRelativeResponse) String() string

type MTCBClient

type MTCBClient interface {
	// StandaloneReady returns whether a given TBSCertificateLogEntry has sufficient signatures
	// for a standalone certificate to be built.
	StandaloneReady(ctx context.Context, in *StandaloneReadyRequest, opts ...grpc.CallOption) (*StandaloneReadyResponse, error)
	// GetStandalone returns a standalone certificate.
	GetStandalone(ctx context.Context, in *StandaloneRequest, opts ...grpc.CallOption) (*StandaloneResponse, error)
	// GetLandmarkRelative returns a landmark-relative certificate.
	GetLandmarkRelative(ctx context.Context, in *LandmarkRelativeRequest, opts ...grpc.CallOption) (*LandmarkRelativeResponse, error)
}

MTCBClient is the client API for MTCB service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

MTCB constructs already-issued MTCs from database and log data.

func NewMTCBClient

func NewMTCBClient(cc grpc.ClientConnInterface) MTCBClient

type MTCBServer

type MTCBServer interface {
	// StandaloneReady returns whether a given TBSCertificateLogEntry has sufficient signatures
	// for a standalone certificate to be built.
	StandaloneReady(context.Context, *StandaloneReadyRequest) (*StandaloneReadyResponse, error)
	// GetStandalone returns a standalone certificate.
	GetStandalone(context.Context, *StandaloneRequest) (*StandaloneResponse, error)
	// GetLandmarkRelative returns a landmark-relative certificate.
	GetLandmarkRelative(context.Context, *LandmarkRelativeRequest) (*LandmarkRelativeResponse, error)
	// contains filtered or unexported methods
}

MTCBServer is the server API for MTCB service. All implementations must embed UnimplementedMTCBServer for forward compatibility.

MTCB constructs already-issued MTCs from database and log data.

type StandaloneReadyRequest

type StandaloneReadyRequest struct {

	// Next unused field number: 4
	MtcLogID        string `protobuf:"bytes,1,opt,name=mtcLogID,proto3" json:"mtcLogID,omitempty"`
	MtcSerialNumber uint64 `protobuf:"varint,2,opt,name=mtcSerialNumber,proto3" json:"mtcSerialNumber,omitempty"`
	MtcSubtreeID    int64  `protobuf:"varint,3,opt,name=mtcSubtreeID,proto3" json:"mtcSubtreeID,omitempty"`
	// contains filtered or unexported fields
}

func (*StandaloneReadyRequest) Descriptor deprecated

func (*StandaloneReadyRequest) Descriptor() ([]byte, []int)

Deprecated: Use StandaloneReadyRequest.ProtoReflect.Descriptor instead.

func (*StandaloneReadyRequest) GetMtcLogID

func (x *StandaloneReadyRequest) GetMtcLogID() string

func (*StandaloneReadyRequest) GetMtcSerialNumber

func (x *StandaloneReadyRequest) GetMtcSerialNumber() uint64

func (*StandaloneReadyRequest) GetMtcSubtreeID

func (x *StandaloneReadyRequest) GetMtcSubtreeID() int64

func (*StandaloneReadyRequest) ProtoMessage

func (*StandaloneReadyRequest) ProtoMessage()

func (*StandaloneReadyRequest) ProtoReflect

func (x *StandaloneReadyRequest) ProtoReflect() protoreflect.Message

func (*StandaloneReadyRequest) Reset

func (x *StandaloneReadyRequest) Reset()

func (*StandaloneReadyRequest) String

func (x *StandaloneReadyRequest) String() string

type StandaloneReadyResponse

type StandaloneReadyResponse struct {

	// Next unused field number: 2
	Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"`
	// contains filtered or unexported fields
}

func (*StandaloneReadyResponse) Descriptor deprecated

func (*StandaloneReadyResponse) Descriptor() ([]byte, []int)

Deprecated: Use StandaloneReadyResponse.ProtoReflect.Descriptor instead.

func (*StandaloneReadyResponse) GetReady

func (x *StandaloneReadyResponse) GetReady() bool

func (*StandaloneReadyResponse) ProtoMessage

func (*StandaloneReadyResponse) ProtoMessage()

func (*StandaloneReadyResponse) ProtoReflect

func (x *StandaloneReadyResponse) ProtoReflect() protoreflect.Message

func (*StandaloneReadyResponse) Reset

func (x *StandaloneReadyResponse) Reset()

func (*StandaloneReadyResponse) String

func (x *StandaloneReadyResponse) String() string

type StandaloneRequest

type StandaloneRequest struct {

	// Next unused field number: 4
	MtcLogID        string `protobuf:"bytes,1,opt,name=mtcLogID,proto3" json:"mtcLogID,omitempty"`
	MtcSerialNumber uint64 `protobuf:"varint,2,opt,name=mtcSerialNumber,proto3" json:"mtcSerialNumber,omitempty"`
	MtcSubtreeID    int64  `protobuf:"varint,3,opt,name=mtcSubtreeID,proto3" json:"mtcSubtreeID,omitempty"`
	// contains filtered or unexported fields
}

func (*StandaloneRequest) Descriptor deprecated

func (*StandaloneRequest) Descriptor() ([]byte, []int)

Deprecated: Use StandaloneRequest.ProtoReflect.Descriptor instead.

func (*StandaloneRequest) GetMtcLogID

func (x *StandaloneRequest) GetMtcLogID() string

func (*StandaloneRequest) GetMtcSerialNumber

func (x *StandaloneRequest) GetMtcSerialNumber() uint64

func (*StandaloneRequest) GetMtcSubtreeID

func (x *StandaloneRequest) GetMtcSubtreeID() int64

func (*StandaloneRequest) ProtoMessage

func (*StandaloneRequest) ProtoMessage()

func (*StandaloneRequest) ProtoReflect

func (x *StandaloneRequest) ProtoReflect() protoreflect.Message

func (*StandaloneRequest) Reset

func (x *StandaloneRequest) Reset()

func (*StandaloneRequest) String

func (x *StandaloneRequest) String() string

type StandaloneResponse

type StandaloneResponse struct {

	// Next unused field number: 2
	CertDER []byte `protobuf:"bytes,1,opt,name=certDER,proto3" json:"certDER,omitempty"`
	// contains filtered or unexported fields
}

func (*StandaloneResponse) Descriptor deprecated

func (*StandaloneResponse) Descriptor() ([]byte, []int)

Deprecated: Use StandaloneResponse.ProtoReflect.Descriptor instead.

func (*StandaloneResponse) GetCertDER

func (x *StandaloneResponse) GetCertDER() []byte

func (*StandaloneResponse) ProtoMessage

func (*StandaloneResponse) ProtoMessage()

func (*StandaloneResponse) ProtoReflect

func (x *StandaloneResponse) ProtoReflect() protoreflect.Message

func (*StandaloneResponse) Reset

func (x *StandaloneResponse) Reset()

func (*StandaloneResponse) String

func (x *StandaloneResponse) String() string

type UnimplementedMTCBServer

type UnimplementedMTCBServer struct{}

UnimplementedMTCBServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMTCBServer) GetLandmarkRelative

func (UnimplementedMTCBServer) GetStandalone

func (UnimplementedMTCBServer) StandaloneReady

type UnsafeMTCBServer

type UnsafeMTCBServer interface {
	// contains filtered or unexported methods
}

UnsafeMTCBServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MTCBServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL