diff --git a/README.md b/README.md index 63376173..d0b45946 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,6 @@ bazel build //engine/exe:scqlengine -c opt # run unittests for SCQL engine bazel test //engine/... -# update scdb proto -make pb - # build scdb code make diff --git a/pkg/proto-gen/spu/spu.pb.go b/pkg/proto-gen/spu/spu.pb.go index 310993b1..6d274017 100755 --- a/pkg/proto-gen/spu/spu.pb.go +++ b/pkg/proto-gen/spu/spu.pb.go @@ -731,8 +731,6 @@ type RuntimeConfig struct { ProcessorDumpDir string `protobuf:"bytes,14,opt,name=processor_dump_dir,json=processorDumpDir,proto3" json:"processor_dump_dir,omitempty"` EnablePphloProfile bool `protobuf:"varint,15,opt,name=enable_pphlo_profile,json=enablePphloProfile,proto3" json:"enable_pphlo_profile,omitempty"` EnableHalProfile bool `protobuf:"varint,16,opt,name=enable_hal_profile,json=enableHalProfile,proto3" json:"enable_hal_profile,omitempty"` - RevealSecretCondition bool `protobuf:"varint,17,opt,name=reveal_secret_condition,json=revealSecretCondition,proto3" json:"reveal_secret_condition,omitempty"` - RevealSecretIndices bool `protobuf:"varint,18,opt,name=reveal_secret_indices,json=revealSecretIndices,proto3" json:"reveal_secret_indices,omitempty"` PublicRandomSeed uint64 `protobuf:"varint,19,opt,name=public_random_seed,json=publicRandomSeed,proto3" json:"public_random_seed,omitempty"` FxpDivGoldschmidtIters int64 `protobuf:"varint,50,opt,name=fxp_div_goldschmidt_iters,json=fxpDivGoldschmidtIters,proto3" json:"fxp_div_goldschmidt_iters,omitempty"` FxpExpMode RuntimeConfig_ExpMode `protobuf:"varint,51,opt,name=fxp_exp_mode,json=fxpExpMode,proto3,enum=spu.RuntimeConfig_ExpMode" json:"fxp_exp_mode,omitempty"` @@ -851,20 +849,6 @@ func (x *RuntimeConfig) GetEnableHalProfile() bool { return false } -func (x *RuntimeConfig) GetRevealSecretCondition() bool { - if x != nil { - return x.RevealSecretCondition - } - return false -} - -func (x *RuntimeConfig) GetRevealSecretIndices() bool { - if x != nil { - return x.RevealSecretIndices - } - return false -} - func (x *RuntimeConfig) GetPublicRandomSeed() uint64 { if x != nil { return x.PublicRandomSeed @@ -1172,7 +1156,7 @@ var file_libspu_spu_proto_rawDesc = []byte{ 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x76, 0x69, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x53, 0x68, 0x61, 0x70, 0x65, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x22, 0x83, 0x0d, 0x0a, 0x0d, + 0x72, 0x6f, 0x74, 0x6f, 0x52, 0x05, 0x73, 0x68, 0x61, 0x70, 0x65, 0x22, 0xa3, 0x0c, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4b, 0x69, @@ -1202,82 +1186,76 @@ var file_libspu_spu_proto_rawDesc = []byte{ 0x61, 0x62, 0x6c, 0x65, 0x50, 0x70, 0x68, 0x6c, 0x6f, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x68, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x48, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x36, - 0x0a, 0x17, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x15, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, - 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x18, - 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x72, 0x65, 0x76, 0x65, 0x61, 0x6c, 0x53, 0x65, 0x63, - 0x72, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x70, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x5f, 0x73, 0x65, 0x65, 0x64, - 0x18, 0x13, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x61, - 0x6e, 0x64, 0x6f, 0x6d, 0x53, 0x65, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x19, 0x66, 0x78, 0x70, 0x5f, - 0x64, 0x69, 0x76, 0x5f, 0x67, 0x6f, 0x6c, 0x64, 0x73, 0x63, 0x68, 0x6d, 0x69, 0x64, 0x74, 0x5f, - 0x69, 0x74, 0x65, 0x72, 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x66, 0x78, 0x70, - 0x44, 0x69, 0x76, 0x47, 0x6f, 0x6c, 0x64, 0x73, 0x63, 0x68, 0x6d, 0x69, 0x64, 0x74, 0x49, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x78, 0x70, 0x5f, 0x65, 0x78, 0x70, 0x5f, 0x6d, - 0x6f, 0x64, 0x65, 0x18, 0x33, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x73, 0x70, 0x75, 0x2e, - 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x45, 0x78, - 0x70, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x66, 0x78, 0x70, 0x45, 0x78, 0x70, 0x4d, 0x6f, 0x64, - 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x78, 0x70, 0x5f, 0x65, 0x78, 0x70, 0x5f, 0x69, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x34, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x66, 0x78, 0x70, 0x45, 0x78, 0x70, - 0x49, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x78, 0x70, 0x5f, 0x6c, 0x6f, 0x67, - 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x35, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x73, 0x70, - 0x75, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x4c, 0x6f, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x66, 0x78, 0x70, 0x4c, 0x6f, 0x67, 0x4d, - 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x78, 0x70, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x69, - 0x74, 0x65, 0x72, 0x73, 0x18, 0x36, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x66, 0x78, 0x70, 0x4c, - 0x6f, 0x67, 0x49, 0x74, 0x65, 0x72, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x78, 0x70, 0x5f, 0x6c, - 0x6f, 0x67, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x37, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0c, 0x66, 0x78, 0x70, 0x4c, 0x6f, 0x67, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x41, 0x0a, - 0x0c, 0x73, 0x69, 0x67, 0x6d, 0x6f, 0x69, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x38, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x69, 0x67, 0x6d, 0x6f, 0x69, 0x64, 0x4d, - 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6d, 0x6f, 0x69, 0x64, 0x4d, 0x6f, 0x64, 0x65, - 0x12, 0x3d, 0x0a, 0x1b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, - 0x5f, 0x61, 0x63, 0x63, 0x75, 0x72, 0x61, 0x63, 0x79, 0x5f, 0x72, 0x73, 0x71, 0x72, 0x74, 0x18, - 0x39, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x77, - 0x65, 0x72, 0x41, 0x63, 0x63, 0x75, 0x72, 0x61, 0x63, 0x79, 0x52, 0x73, 0x71, 0x72, 0x74, 0x12, - 0x3e, 0x0a, 0x0b, 0x62, 0x65, 0x61, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x46, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, - 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0a, 0x62, 0x65, 0x61, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x40, 0x0a, 0x11, 0x74, 0x74, 0x70, 0x5f, 0x62, 0x65, 0x61, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x47, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x73, 0x70, 0x75, - 0x2e, 0x54, 0x54, 0x50, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x0f, 0x74, 0x74, 0x70, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x45, 0x0a, 0x1f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, - 0x6c, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x6d, 0x75, 0x6c, 0x5f, 0x73, - 0x70, 0x6c, 0x69, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4d, - 0x6d, 0x75, 0x6c, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x12, 0x46, 0x0a, 0x20, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x5f, 0x70, 0x61, 0x72, 0x18, 0x65, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x1c, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x4f, 0x70, 0x50, 0x61, 0x72, - 0x12, 0x46, 0x0a, 0x20, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, - 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x72, 0x61, 0x5f, 0x6f, 0x70, - 0x5f, 0x70, 0x61, 0x72, 0x18, 0x66, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x65, 0x78, 0x70, 0x65, - 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, - 0x74, 0x72, 0x61, 0x4f, 0x70, 0x50, 0x61, 0x72, 0x22, 0x38, 0x0a, 0x07, 0x45, 0x78, 0x70, 0x4d, - 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x58, 0x50, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, - 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, 0x5f, 0x50, 0x41, 0x44, 0x45, - 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x58, 0x50, 0x5f, 0x54, 0x41, 0x59, 0x4c, 0x4f, 0x52, - 0x10, 0x02, 0x22, 0x38, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, - 0x0b, 0x4c, 0x4f, 0x47, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0c, - 0x0a, 0x08, 0x4c, 0x4f, 0x47, 0x5f, 0x50, 0x41, 0x44, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, - 0x4c, 0x4f, 0x47, 0x5f, 0x4e, 0x45, 0x57, 0x54, 0x4f, 0x4e, 0x10, 0x02, 0x22, 0x57, 0x0a, 0x0b, - 0x53, 0x69, 0x67, 0x6d, 0x6f, 0x69, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x53, - 0x49, 0x47, 0x4d, 0x4f, 0x49, 0x44, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, - 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x49, 0x47, 0x4d, 0x4f, 0x49, 0x44, 0x5f, 0x4d, 0x4d, 0x31, 0x10, - 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x49, 0x47, 0x4d, 0x4f, 0x49, 0x44, 0x5f, 0x53, 0x45, 0x47, - 0x33, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x49, 0x47, 0x4d, 0x4f, 0x49, 0x44, 0x5f, 0x52, - 0x45, 0x41, 0x4c, 0x10, 0x03, 0x22, 0x3a, 0x0a, 0x0a, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x46, 0x69, - 0x72, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x79, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x72, - 0x75, 0x73, 0x74, 0x65, 0x64, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, 0x72, 0x74, 0x79, 0x10, - 0x01, 0x22, 0x72, 0x0a, 0x0f, 0x54, 0x54, 0x50, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x43, 0x6f, + 0x61, 0x62, 0x6c, 0x65, 0x48, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x2c, + 0x0a, 0x12, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x5f, + 0x73, 0x65, 0x65, 0x64, 0x18, 0x13, 0x20, 0x01, 0x28, 0x04, 0x52, 0x10, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x53, 0x65, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x19, + 0x66, 0x78, 0x70, 0x5f, 0x64, 0x69, 0x76, 0x5f, 0x67, 0x6f, 0x6c, 0x64, 0x73, 0x63, 0x68, 0x6d, + 0x69, 0x64, 0x74, 0x5f, 0x69, 0x74, 0x65, 0x72, 0x73, 0x18, 0x32, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x16, 0x66, 0x78, 0x70, 0x44, 0x69, 0x76, 0x47, 0x6f, 0x6c, 0x64, 0x73, 0x63, 0x68, 0x6d, 0x69, + 0x64, 0x74, 0x49, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x78, 0x70, 0x5f, 0x65, + 0x78, 0x70, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x33, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x73, 0x70, 0x75, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x45, 0x78, 0x70, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x66, 0x78, 0x70, 0x45, 0x78, + 0x70, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x78, 0x70, 0x5f, 0x65, 0x78, 0x70, + 0x5f, 0x69, 0x74, 0x65, 0x72, 0x73, 0x18, 0x34, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x66, 0x78, + 0x70, 0x45, 0x78, 0x70, 0x49, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x78, 0x70, + 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x35, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1a, 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x66, 0x78, 0x70, + 0x4c, 0x6f, 0x67, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x78, 0x70, 0x5f, 0x6c, + 0x6f, 0x67, 0x5f, 0x69, 0x74, 0x65, 0x72, 0x73, 0x18, 0x36, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x66, 0x78, 0x70, 0x4c, 0x6f, 0x67, 0x49, 0x74, 0x65, 0x72, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x66, + 0x78, 0x70, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x18, 0x37, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0c, 0x66, 0x78, 0x70, 0x4c, 0x6f, 0x67, 0x4f, 0x72, 0x64, 0x65, 0x72, + 0x73, 0x12, 0x41, 0x0a, 0x0c, 0x73, 0x69, 0x67, 0x6d, 0x6f, 0x69, 0x64, 0x5f, 0x6d, 0x6f, 0x64, + 0x65, 0x18, 0x38, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x52, 0x75, + 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x69, 0x67, 0x6d, + 0x6f, 0x69, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x73, 0x69, 0x67, 0x6d, 0x6f, 0x69, 0x64, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6c, + 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x75, 0x72, 0x61, 0x63, 0x79, 0x5f, 0x72, 0x73, + 0x71, 0x72, 0x74, 0x18, 0x39, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x41, 0x63, 0x63, 0x75, 0x72, 0x61, 0x63, 0x79, 0x52, 0x73, + 0x71, 0x72, 0x74, 0x12, 0x3e, 0x0a, 0x0b, 0x62, 0x65, 0x61, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x46, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x52, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x42, 0x65, 0x61, + 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x62, 0x65, 0x61, 0x76, 0x65, 0x72, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x11, 0x74, 0x74, 0x70, 0x5f, 0x62, 0x65, 0x61, 0x76, 0x65, + 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x47, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, + 0x2e, 0x73, 0x70, 0x75, 0x2e, 0x54, 0x54, 0x50, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, 0x74, 0x74, 0x70, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x1f, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, + 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x5f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x6d, + 0x75, 0x6c, 0x5f, 0x73, 0x70, 0x6c, 0x69, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x44, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x4d, 0x6d, 0x75, 0x6c, 0x53, 0x70, 0x6c, 0x69, 0x74, 0x12, 0x46, 0x0a, 0x20, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x70, 0x5f, 0x70, 0x61, 0x72, + 0x18, 0x65, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x4f, + 0x70, 0x50, 0x61, 0x72, 0x12, 0x46, 0x0a, 0x20, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, + 0x6e, 0x74, 0x61, 0x6c, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x72, + 0x61, 0x5f, 0x6f, 0x70, 0x5f, 0x70, 0x61, 0x72, 0x18, 0x66, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, + 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x49, 0x6e, 0x74, 0x72, 0x61, 0x4f, 0x70, 0x50, 0x61, 0x72, 0x22, 0x38, 0x0a, 0x07, + 0x45, 0x78, 0x70, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x58, 0x50, 0x5f, 0x44, + 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x58, 0x50, 0x5f, + 0x50, 0x41, 0x44, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x58, 0x50, 0x5f, 0x54, 0x41, + 0x59, 0x4c, 0x4f, 0x52, 0x10, 0x02, 0x22, 0x38, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x4d, 0x6f, 0x64, + 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x4f, 0x47, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, + 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4c, 0x4f, 0x47, 0x5f, 0x50, 0x41, 0x44, 0x45, 0x10, 0x01, + 0x12, 0x0e, 0x0a, 0x0a, 0x4c, 0x4f, 0x47, 0x5f, 0x4e, 0x45, 0x57, 0x54, 0x4f, 0x4e, 0x10, 0x02, + 0x22, 0x57, 0x0a, 0x0b, 0x53, 0x69, 0x67, 0x6d, 0x6f, 0x69, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, + 0x13, 0x0a, 0x0f, 0x53, 0x49, 0x47, 0x4d, 0x4f, 0x49, 0x44, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, + 0x4c, 0x54, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x49, 0x47, 0x4d, 0x4f, 0x49, 0x44, 0x5f, + 0x4d, 0x4d, 0x31, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x49, 0x47, 0x4d, 0x4f, 0x49, 0x44, + 0x5f, 0x53, 0x45, 0x47, 0x33, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x49, 0x47, 0x4d, 0x4f, + 0x49, 0x44, 0x5f, 0x52, 0x45, 0x41, 0x4c, 0x10, 0x03, 0x22, 0x3a, 0x0a, 0x0a, 0x42, 0x65, 0x61, + 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x73, 0x74, + 0x65, 0x64, 0x46, 0x69, 0x72, 0x73, 0x74, 0x50, 0x61, 0x72, 0x74, 0x79, 0x10, 0x00, 0x12, 0x15, + 0x0a, 0x11, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x54, 0x68, 0x69, 0x72, 0x64, 0x50, 0x61, + 0x72, 0x74, 0x79, 0x10, 0x01, 0x4a, 0x04, 0x08, 0x11, 0x10, 0x12, 0x4a, 0x04, 0x08, 0x12, 0x10, + 0x13, 0x22, 0x72, 0x0a, 0x0f, 0x54, 0x54, 0x50, 0x42, 0x65, 0x61, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, diff --git a/pkg/scdb/server/config.go b/pkg/scdb/server/config.go index 83a50d3d..b349127d 100644 --- a/pkg/scdb/server/config.go +++ b/pkg/scdb/server/config.go @@ -54,8 +54,6 @@ type RuntimeCfg struct { ProcessorDumpDir string `yaml:"processor_dump_dir"` EnablePphloProfile bool `yaml:"enable_pphlo_profile"` EnableHalProfile bool `yaml:"enable_hal_profile"` - RevealSecretCondition bool `yaml:"reveal_secret_condition"` - RevealSecretIndices bool `yaml:"reveal_secret_indices"` PublicRandomSeed uint64 `yaml:"public_random_seed"` FxpDivGoldschmidtIters int64 `yaml:"fxp_div_goldschmidt_iters"` FxpExpMode string `yaml:"fxp_exp_mode"` @@ -199,8 +197,6 @@ func NewSpuRuntimeCfg(config *RuntimeCfg) (*spu.RuntimeConfig, error) { ProcessorDumpDir: config.ProcessorDumpDir, EnablePphloProfile: config.EnablePphloProfile, EnableHalProfile: config.EnableHalProfile, - RevealSecretCondition: config.RevealSecretCondition, - RevealSecretIndices: config.RevealSecretIndices, FxpDivGoldschmidtIters: config.FxpDivGoldschmidtIters, FxpExpIters: config.FxpExpIters, FxpLogIters: config.FxpLogIters,