diff --git a/core/api/v1/keytransparency_proto/keytransparency.pb.go b/core/api/v1/keytransparency_proto/keytransparency.pb.go index bed1b744f..a60d44f85 100644 --- a/core/api/v1/keytransparency_proto/keytransparency.pb.go +++ b/core/api/v1/keytransparency_proto/keytransparency.pb.go @@ -28,6 +28,7 @@ It has these top-level messages: UpdateEntryRequest UpdateEntryResponse GetEpochRequest + GetLatestEpochRequest Epoch ListMutationsRequest ListMutationsResponse @@ -573,6 +574,34 @@ func (m *GetEpochRequest) GetFirstTreeSize() int64 { return 0 } +// GetLatestEpochRequest identifies a particular epoch. +type GetLatestEpochRequest struct { + // domain_id is the domain for which epochs are being requested. + DomainId string `protobuf:"bytes,1,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"` + // first_tree_size is the tree_size of the currently trusted log root. + // Omitting this field will omit the log consistency proof from the response. + FirstTreeSize int64 `protobuf:"varint,2,opt,name=first_tree_size,json=firstTreeSize" json:"first_tree_size,omitempty"` +} + +func (m *GetLatestEpochRequest) Reset() { *m = GetLatestEpochRequest{} } +func (m *GetLatestEpochRequest) String() string { return proto.CompactTextString(m) } +func (*GetLatestEpochRequest) ProtoMessage() {} +func (*GetLatestEpochRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } + +func (m *GetLatestEpochRequest) GetDomainId() string { + if m != nil { + return m.DomainId + } + return "" +} + +func (m *GetLatestEpochRequest) GetFirstTreeSize() int64 { + if m != nil { + return m.FirstTreeSize + } + return 0 +} + // Epoch represents a snapshot of the entire key directory and // a diff of what changed between this revision and the previous revision. type Epoch struct { @@ -591,7 +620,7 @@ type Epoch struct { func (m *Epoch) Reset() { *m = Epoch{} } func (m *Epoch) String() string { return proto.CompactTextString(m) } func (*Epoch) ProtoMessage() {} -func (*Epoch) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } +func (*Epoch) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } func (m *Epoch) GetDomainId() string { if m != nil { @@ -646,7 +675,7 @@ type ListMutationsRequest struct { func (m *ListMutationsRequest) Reset() { *m = ListMutationsRequest{} } func (m *ListMutationsRequest) String() string { return proto.CompactTextString(m) } func (*ListMutationsRequest) ProtoMessage() {} -func (*ListMutationsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } +func (*ListMutationsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } func (m *ListMutationsRequest) GetDomainId() string { if m != nil { @@ -688,7 +717,7 @@ type ListMutationsResponse struct { func (m *ListMutationsResponse) Reset() { *m = ListMutationsResponse{} } func (m *ListMutationsResponse) String() string { return proto.CompactTextString(m) } func (*ListMutationsResponse) ProtoMessage() {} -func (*ListMutationsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } +func (*ListMutationsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } func (m *ListMutationsResponse) GetMutations() []*MutationProof { if m != nil { @@ -718,6 +747,7 @@ func init() { proto.RegisterType((*UpdateEntryRequest)(nil), "google.keytransparency.v1.UpdateEntryRequest") proto.RegisterType((*UpdateEntryResponse)(nil), "google.keytransparency.v1.UpdateEntryResponse") proto.RegisterType((*GetEpochRequest)(nil), "google.keytransparency.v1.GetEpochRequest") + proto.RegisterType((*GetLatestEpochRequest)(nil), "google.keytransparency.v1.GetLatestEpochRequest") proto.RegisterType((*Epoch)(nil), "google.keytransparency.v1.Epoch") proto.RegisterType((*ListMutationsRequest)(nil), "google.keytransparency.v1.ListMutationsRequest") proto.RegisterType((*ListMutationsResponse)(nil), "google.keytransparency.v1.ListMutationsResponse") @@ -736,15 +766,14 @@ const _ = grpc.SupportPackageIsVersion4 type KeyTransparencyClient interface { // GetDomain returns the information needed to verify the specified domain. GetDomain(ctx context.Context, in *GetDomainRequest, opts ...grpc.CallOption) (*Domain, error) - // GetEpoch returns a list of mutations between an epoch and its predecessor. - // - // Returns a list of mutations and their inclusion proofs along with the epoch - // signed map root. + // GetEpoch returns a SignedMapRoot by the by the requested revision number + // along with its inclusion proof in the log and the log's consistency proofs. GetEpoch(ctx context.Context, in *GetEpochRequest, opts ...grpc.CallOption) (*Epoch, error) - // GetEpochStream streams new epochs as they are created. - // - // Returns a list of mutations and their inclusion proofs along with the epoch - // signed map root. + // GetLatestEpoch returns the latest SignedMapRoot along with its inclusion + // proof in the log and the log's consistency proofs. + GetLatestEpoch(ctx context.Context, in *GetLatestEpochRequest, opts ...grpc.CallOption) (*Epoch, error) + // GetEpochStream streams new epochs from a requested starting point + // and continues as new epochs are created. GetEpochStream(ctx context.Context, in *GetEpochRequest, opts ...grpc.CallOption) (KeyTransparency_GetEpochStreamClient, error) // ListMutations returns a list of mutations in a specific epoch. ListMutations(ctx context.Context, in *ListMutationsRequest, opts ...grpc.CallOption) (*ListMutationsResponse, error) @@ -793,6 +822,15 @@ func (c *keyTransparencyClient) GetEpoch(ctx context.Context, in *GetEpochReques return out, nil } +func (c *keyTransparencyClient) GetLatestEpoch(ctx context.Context, in *GetLatestEpochRequest, opts ...grpc.CallOption) (*Epoch, error) { + out := new(Epoch) + err := grpc.Invoke(ctx, "/google.keytransparency.v1.KeyTransparency/GetLatestEpoch", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *keyTransparencyClient) GetEpochStream(ctx context.Context, in *GetEpochRequest, opts ...grpc.CallOption) (KeyTransparency_GetEpochStreamClient, error) { stream, err := grpc.NewClientStream(ctx, &_KeyTransparency_serviceDesc.Streams[0], c.cc, "/google.keytransparency.v1.KeyTransparency/GetEpochStream", opts...) if err != nil { @@ -898,15 +936,14 @@ func (c *keyTransparencyClient) UpdateEntry(ctx context.Context, in *UpdateEntry type KeyTransparencyServer interface { // GetDomain returns the information needed to verify the specified domain. GetDomain(context.Context, *GetDomainRequest) (*Domain, error) - // GetEpoch returns a list of mutations between an epoch and its predecessor. - // - // Returns a list of mutations and their inclusion proofs along with the epoch - // signed map root. + // GetEpoch returns a SignedMapRoot by the by the requested revision number + // along with its inclusion proof in the log and the log's consistency proofs. GetEpoch(context.Context, *GetEpochRequest) (*Epoch, error) - // GetEpochStream streams new epochs as they are created. - // - // Returns a list of mutations and their inclusion proofs along with the epoch - // signed map root. + // GetLatestEpoch returns the latest SignedMapRoot along with its inclusion + // proof in the log and the log's consistency proofs. + GetLatestEpoch(context.Context, *GetLatestEpochRequest) (*Epoch, error) + // GetEpochStream streams new epochs from a requested starting point + // and continues as new epochs are created. GetEpochStream(*GetEpochRequest, KeyTransparency_GetEpochStreamServer) error // ListMutations returns a list of mutations in a specific epoch. ListMutations(context.Context, *ListMutationsRequest) (*ListMutationsResponse, error) @@ -969,6 +1006,24 @@ func _KeyTransparency_GetEpoch_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _KeyTransparency_GetLatestEpoch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetLatestEpochRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(KeyTransparencyServer).GetLatestEpoch(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/google.keytransparency.v1.KeyTransparency/GetLatestEpoch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(KeyTransparencyServer).GetLatestEpoch(ctx, req.(*GetLatestEpochRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _KeyTransparency_GetEpochStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetEpochRequest) if err := stream.RecvMsg(m); err != nil { @@ -1095,6 +1150,10 @@ var _KeyTransparency_serviceDesc = grpc.ServiceDesc{ MethodName: "GetEpoch", Handler: _KeyTransparency_GetEpoch_Handler, }, + { + MethodName: "GetLatestEpoch", + Handler: _KeyTransparency_GetLatestEpoch_Handler, + }, { MethodName: "ListMutations", Handler: _KeyTransparency_ListMutations_Handler, @@ -1130,89 +1189,91 @@ var _KeyTransparency_serviceDesc = grpc.ServiceDesc{ func init() { proto.RegisterFile("v1/keytransparency_proto/keytransparency.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 1336 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5d, 0x6f, 0x1b, 0x45, - 0x17, 0xd6, 0xda, 0xb1, 0x63, 0x1f, 0xe7, 0xa3, 0xef, 0x34, 0x6d, 0xb6, 0xee, 0xdb, 0xf7, 0x4d, - 0x97, 0xd2, 0x86, 0x42, 0xbd, 0x89, 0x2b, 0xd4, 0x36, 0xa2, 0xaa, 0x68, 0x9a, 0x96, 0x28, 0x8d, - 0x88, 0x36, 0xad, 0x84, 0xb8, 0x59, 0x4d, 0xbc, 0x63, 0x67, 0xd4, 0xf5, 0xce, 0x76, 0x67, 0x6c, - 0xd5, 0x0d, 0xe1, 0x02, 0x09, 0xe8, 0x5d, 0x2f, 0xf8, 0x07, 0x5c, 0x73, 0xc7, 0x05, 0xe2, 0x06, - 0x09, 0xfe, 0x01, 0x82, 0x3b, 0x6e, 0xf9, 0x21, 0x68, 0x3e, 0xfc, 0x59, 0xdb, 0xb1, 0x03, 0xe2, - 0xc6, 0xde, 0x39, 0x73, 0xce, 0x99, 0x67, 0x9e, 0xf3, 0x9c, 0x99, 0x5d, 0x28, 0x35, 0xd7, 0xdd, - 0x67, 0xa4, 0x25, 0x12, 0x1c, 0xf1, 0x18, 0x27, 0x24, 0xaa, 0xb4, 0xfc, 0x38, 0x61, 0x82, 0x0d, - 0x5a, 0x4b, 0xca, 0x8a, 0x2e, 0xd4, 0x18, 0xab, 0x85, 0xa4, 0x34, 0x38, 0xdb, 0x5c, 0x2f, 0xfe, - 0x57, 0x4f, 0xb9, 0x38, 0xa6, 0x2e, 0x8e, 0x22, 0x26, 0xb0, 0xa0, 0x2c, 0xe2, 0x3a, 0xb0, 0x58, - 0xac, 0x24, 0xad, 0x58, 0xa7, 0xe5, 0xf1, 0x81, 0xf9, 0x33, 0x73, 0xb6, 0x99, 0xe3, 0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0x94, 0x93, 0x64, 0x2f, 0x61, - 0x55, 0x1a, 0x92, 0x8e, 0xa2, 0xad, 0x1e, 0x45, 0x7f, 0x65, 0xc1, 0xe2, 0x23, 0x22, 0xf4, 0x2e, - 0xc8, 0xf3, 0x06, 0xe1, 0x02, 0x5d, 0x84, 0x7c, 0xc0, 0xea, 0x98, 0x46, 0x3e, 0x0d, 0xec, 0x19, - 0x45, 0x6e, 0x4e, 0x1b, 0xb6, 0x03, 0xb4, 0x0c, 0xb3, 0x0d, 0x4e, 0x12, 0x39, 0xa5, 0x79, 0xcf, - 0xca, 0xe1, 0x76, 0x80, 0xce, 0x41, 0x16, 0xc7, 0xb1, 0xb4, 0xa7, 0x94, 0x3d, 0x83, 0xe3, 0x78, - 0x3b, 0x40, 0x57, 0x61, 0xb1, 0x4a, 0x13, 0x2e, 0x7c, 0x91, 0x10, 0xe2, 0x73, 0xfa, 0x92, 0x28, - 0x81, 0xa6, 0xbd, 0x79, 0x65, 0x7e, 0x92, 0x10, 0xb2, 0x4f, 0x5f, 0x12, 0xe7, 0x8f, 0x14, 0x9c, - 0xe9, 0x02, 0xe1, 0x31, 0x8b, 0x38, 0x91, 0x48, 0x9a, 0x49, 0x9b, 0x4b, 0x0d, 0x3b, 0xd7, 0x4c, - 0x34, 0x5d, 0xfd, 0xed, 0x93, 0x3a, 0x55, 0xfb, 0x0c, 0x54, 0x2b, 0x3d, 0x45, 0xb5, 0xd0, 0x3b, - 0x90, 0xe6, 0xf5, 0x44, 0xf1, 0x53, 0x28, 0x2f, 0x77, 0x63, 0xb4, 0xc4, 0x76, 0x71, 0xec, 0x31, - 0x26, 0x3c, 0xe9, 0x83, 0xca, 0x90, 0x0b, 0x59, 0xcd, 0x4f, 0x18, 0x13, 0x76, 0x66, 0xb8, 0xff, - 0x63, 0x56, 0x53, 0xfe, 0xb3, 0xa1, 0x7e, 0x40, 0xd7, 0x60, 0x51, 0xc6, 0x54, 0x58, 0xc4, 0x29, - 0x17, 0x72, 0x13, 0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0x63, 0x0c, 0x96, 0x37, 0x5f, 0x15, 0x8a, 0xa5, 0x49, 0xdd, 0x0d, 0xea, 0x1d, - 0x85, 0x7a, 0xab, 0x78, 0x3a, 0xca, 0x37, 0xfa, 0x5e, 0x11, 0xee, 0x6f, 0x7d, 0xba, 0x59, 0xa3, - 0xe2, 0xb0, 0x71, 0x50, 0xaa, 0xb0, 0xba, 0x6b, 0xbe, 0xce, 0x07, 0x80, 0xb8, 0x15, 0x96, 0xe8, - 0x4f, 0xf6, 0x51, 0x5f, 0xd0, 0x07, 0x59, 0xf5, 0x77, 0xf3, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xfe, 0x5a, 0x14, 0xca, 0x2b, 0x10, 0x00, 0x00, + // 1370 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6f, 0x1b, 0x45, + 0x14, 0xd7, 0xda, 0xb1, 0x63, 0x3f, 0xe7, 0xa3, 0x4c, 0xd3, 0x66, 0xeb, 0x52, 0x48, 0x97, 0xd2, + 0x86, 0x42, 0xbd, 0x89, 0x2b, 0xd4, 0x36, 0xa2, 0xaa, 0x68, 0x9a, 0x96, 0x28, 0x89, 0x88, 0x36, + 0xad, 0x84, 0x10, 0x92, 0x35, 0xf1, 0x8e, 0x9d, 0x51, 0xd7, 0x3b, 0xdb, 0x9d, 0xb1, 0x55, 0x37, + 0x84, 0x03, 0x12, 0xd0, 0x5b, 0x0f, 0xfd, 0x0f, 0x38, 0x73, 0xe3, 0xc4, 0x05, 0x09, 0xee, 0x1c, + 0x10, 0xdc, 0xb8, 0xf2, 0x87, 0xa0, 0xf9, 0xf0, 0x67, 0x6c, 0xc7, 0x0e, 0x88, 0x8b, 0x77, 0xe7, + 0xcd, 0x7b, 0x6f, 0x7e, 0xf3, 0x7b, 0x1f, 0x33, 0x5e, 0x28, 0x34, 0x56, 0xdd, 0xa7, 0xa4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58, 0x9c, 0x18, 0xf4, 0xd8, 0x95, 0xe9, 0xdc, 0x53, 0x60, 0xef, 0xa0, + 0x5b, 0x93, 0x82, 0xed, 0x90, 0xfc, 0xbd, 0xa9, 0x0b, 0xf5, 0x3f, 0xe0, 0xfa, 0x58, 0x87, 0x93, + 0x46, 0x39, 0xc9, 0x41, 0xe6, 0xdc, 0x55, 0x40, 0x6f, 0xa1, 0x0f, 0x87, 0x01, 0xc5, 0x51, 0xc4, + 0xdd, 0x43, 0x7d, 0x92, 0x1f, 0xb9, 0xf2, 0x6c, 0xe7, 0xee, 0xa1, 0x39, 0xf1, 0x8f, 0xd0, 0xaf, + 0x16, 0x9c, 0xe9, 0xbf, 0xb2, 0xa0, 0xe2, 0x09, 0xbc, 0x0e, 0xb8, 0xa2, 0xe5, 0x6f, 0x4e, 0x64, + 0x63, 0xc0, 0x6f, 0x28, 0xf0, 0xf7, 0xd0, 0xdd, 0x53, 0x81, 0x77, 0x0f, 0x0c, 0xde, 0x9f, 0x2c, + 0xc8, 0x75, 0x5d, 0x10, 0xd0, 0x8d, 0x11, 0x58, 0x8e, 0x5f, 0x8f, 0xf2, 0x85, 0x71, 0xd5, 0x0d, + 0xea, 0x2d, 0x85, 0x7a, 0x23, 0x7f, 0x3a, 0xca, 0xd7, 0x7a, 0xae, 0x45, 0xf7, 0x37, 0x3e, 0x5f, + 0xaf, 0x52, 0x71, 0x50, 0xdf, 0x2f, 0x94, 0x59, 0xcd, 0x35, 0x5f, 0x24, 0xfa, 0x80, 0xb8, 0x65, + 0x16, 0xeb, 0xcf, 0x14, 0xc3, 0xbe, 0x1a, 0xec, 0xa7, 0xd5, 0xe3, 0xe6, 0x3f, 0x01, 0x00, 0x00, + 0xff, 0xff, 0x73, 0x13, 0x0f, 0xfd, 0x1f, 0x11, 0x00, 0x00, } diff --git a/core/api/v1/keytransparency_proto/keytransparency.pb.gw.go b/core/api/v1/keytransparency_proto/keytransparency.pb.gw.go index 2a8624193..a594aa659 100644 --- a/core/api/v1/keytransparency_proto/keytransparency.pb.gw.go +++ b/core/api/v1/keytransparency_proto/keytransparency.pb.gw.go @@ -109,6 +109,41 @@ func request_KeyTransparency_GetEpoch_0(ctx context.Context, marshaler runtime.M } +var ( + filter_KeyTransparency_GetLatestEpoch_0 = &utilities.DoubleArray{Encoding: map[string]int{"domain_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} +) + +func request_KeyTransparency_GetLatestEpoch_0(ctx context.Context, marshaler runtime.Marshaler, client KeyTransparencyClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetLatestEpochRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["domain_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain_id") + } + + protoReq.DomainId, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain_id", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_KeyTransparency_GetLatestEpoch_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetLatestEpoch(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + var ( filter_KeyTransparency_GetEpochStream_0 = &utilities.DoubleArray{Encoding: map[string]int{"domain_id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -523,6 +558,35 @@ func RegisterKeyTransparencyHandlerClient(ctx context.Context, mux *runtime.Serv }) + mux.Handle("GET", pattern_KeyTransparency_GetLatestEpoch_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_KeyTransparency_GetLatestEpoch_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_KeyTransparency_GetLatestEpoch_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_KeyTransparency_GetEpochStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(ctx) defer cancel() @@ -705,6 +769,8 @@ var ( pattern_KeyTransparency_GetEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"v1", "domains", "domain_id", "epochs", "epoch"}, "")) + pattern_KeyTransparency_GetLatestEpoch_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "domains", "domain_id", "epochs"}, "latest")) + pattern_KeyTransparency_GetEpochStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"v1", "domains", "domain_id", "epochs"}, "stream")) pattern_KeyTransparency_ListMutations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"v1", "domains", "domain_id", "epochs", "epoch", "mutations"}, "")) @@ -723,6 +789,8 @@ var ( forward_KeyTransparency_GetEpoch_0 = runtime.ForwardResponseMessage + forward_KeyTransparency_GetLatestEpoch_0 = runtime.ForwardResponseMessage + forward_KeyTransparency_GetEpochStream_0 = runtime.ForwardResponseStream forward_KeyTransparency_ListMutations_0 = runtime.ForwardResponseMessage