From b217415ca2de6a128aac87dc4d318c3371901fa6 Mon Sep 17 00:00:00 2001 From: Quint Daenen Date: Tue, 2 Jul 2024 20:59:45 +0200 Subject: [PATCH] Use protoc v5.27. --- clients/ledger/proto/v1/ledger.pb.go | 2 +- clients/registry/proto/v1/local.pb.go | 2 +- clients/registry/proto/v1/node.pb.go | 2 +- clients/registry/proto/v1/operator.pb.go | 110 +- clients/registry/proto/v1/registry.pb.go | 108 +- clients/registry/proto/v1/subnet.pb.go | 2425 ++++++++++----------- clients/registry/proto/v1/transport.pb.go | 2 +- 7 files changed, 1325 insertions(+), 1326 deletions(-) diff --git a/clients/ledger/proto/v1/ledger.pb.go b/clients/ledger/proto/v1/ledger.pb.go index 8cd4a7a..6e0b8a2 100644 --- a/clients/ledger/proto/v1/ledger.pb.go +++ b/clients/ledger/proto/v1/ledger.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.0 +// protoc v5.26.1 // source: ledger.proto package v1 diff --git a/clients/registry/proto/v1/local.pb.go b/clients/registry/proto/v1/local.pb.go index db16176..0c95201 100644 --- a/clients/registry/proto/v1/local.pb.go +++ b/clients/registry/proto/v1/local.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.0 +// protoc v5.26.1 // source: local.proto package v1 diff --git a/clients/registry/proto/v1/node.pb.go b/clients/registry/proto/v1/node.pb.go index a4fd0c6..f8e70a8 100644 --- a/clients/registry/proto/v1/node.pb.go +++ b/clients/registry/proto/v1/node.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.0 +// protoc v5.26.1 // source: node.proto package v1 diff --git a/clients/registry/proto/v1/operator.pb.go b/clients/registry/proto/v1/operator.pb.go index d3ee07f..430bc94 100644 --- a/clients/registry/proto/v1/operator.pb.go +++ b/clients/registry/proto/v1/operator.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.0 +// protoc v5.26.1 // source: operator.proto package v1 @@ -83,57 +83,6 @@ var file_operator_proto_rawDesc = []byte{ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func file_operator_proto_init() { - if File_operator_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_operator_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*NodeOperatorRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_operator_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*RemoveNodeOperatorsPayload); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_operator_proto_msgTypes[0].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_operator_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_operator_proto_goTypes, - DependencyIndexes: file_operator_proto_depIdxs, - MessageInfos: file_operator_proto_msgTypes, - }.Build() - File_operator_proto = out.File - file_operator_proto_rawDesc = nil - file_operator_proto_goTypes = nil - file_operator_proto_depIdxs = nil -} - func file_operator_proto_rawDescGZIP() []byte { file_operator_proto_rawDescOnce.Do(func() { file_operator_proto_rawDescData = protoimpl.X.CompressGZIP(file_operator_proto_rawDescData) @@ -141,8 +90,6 @@ func file_operator_proto_rawDescGZIP() []byte { return file_operator_proto_rawDescData } -func init() { file_operator_proto_init() } - // A record for a node operator. Each node operator is associated with a // unique principal id, a.k.a. NOID. // @@ -265,7 +212,9 @@ func (x *RemoveNodeOperatorsPayload) GetNodeOperatorsToRemove() [][]byte { } return nil } + func (*RemoveNodeOperatorsPayload) ProtoMessage() {} + func (x *RemoveNodeOperatorsPayload) ProtoReflect() protoreflect.Message { mi := &file_operator_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { @@ -277,7 +226,6 @@ func (x *RemoveNodeOperatorsPayload) ProtoReflect() protoreflect.Message { } return mi.MessageOf(x) } - func (x *RemoveNodeOperatorsPayload) Reset() { *x = RemoveNodeOperatorsPayload{} if protoimpl.UnsafeEnabled { @@ -289,3 +237,55 @@ func (x *RemoveNodeOperatorsPayload) Reset() { func (x *RemoveNodeOperatorsPayload) String() string { return protoimpl.X.MessageStringOf(x) } + +func init() { file_operator_proto_init() } +func file_operator_proto_init() { + if File_operator_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_operator_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*NodeOperatorRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_operator_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*RemoveNodeOperatorsPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_operator_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_operator_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_operator_proto_goTypes, + DependencyIndexes: file_operator_proto_depIdxs, + MessageInfos: file_operator_proto_msgTypes, + }.Build() + File_operator_proto = out.File + file_operator_proto_rawDesc = nil + file_operator_proto_goTypes = nil + file_operator_proto_depIdxs = nil +} diff --git a/clients/registry/proto/v1/registry.pb.go b/clients/registry/proto/v1/registry.pb.go index 8d15c31..a401912 100644 --- a/clients/registry/proto/v1/registry.pb.go +++ b/clients/registry/proto/v1/registry.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.0 +// protoc v5.26.1 // source: registry.proto package v1 @@ -70,56 +70,6 @@ var file_registry_proto_rawDesc = []byte{ 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func file_registry_proto_init() { - if File_registry_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_registry_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*ProtoRegistry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_registry_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*ProtoRegistryRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_registry_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_registry_proto_goTypes, - DependencyIndexes: file_registry_proto_depIdxs, - MessageInfos: file_registry_proto_msgTypes, - }.Build() - File_registry_proto = out.File - file_registry_proto_rawDesc = nil - file_registry_proto_goTypes = nil - file_registry_proto_depIdxs = nil -} - func file_registry_proto_rawDescGZIP() []byte { file_registry_proto_rawDescOnce.Do(func() { file_registry_proto_rawDescData = protoimpl.X.CompressGZIP(file_registry_proto_rawDescData) @@ -127,8 +77,6 @@ func file_registry_proto_rawDescGZIP() []byte { return file_registry_proto_rawDescData } -func init() { file_registry_proto_init() } - type ProtoRegistry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -211,7 +159,9 @@ func (x *ProtoRegistryRecord) GetVersion() uint64 { } return 0 } + func (*ProtoRegistryRecord) ProtoMessage() {} + func (x *ProtoRegistryRecord) ProtoReflect() protoreflect.Message { mi := &file_registry_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { @@ -223,7 +173,6 @@ func (x *ProtoRegistryRecord) ProtoReflect() protoreflect.Message { } return mi.MessageOf(x) } - func (x *ProtoRegistryRecord) Reset() { *x = ProtoRegistryRecord{} if protoimpl.UnsafeEnabled { @@ -235,3 +184,54 @@ func (x *ProtoRegistryRecord) Reset() { func (x *ProtoRegistryRecord) String() string { return protoimpl.X.MessageStringOf(x) } + +func init() { file_registry_proto_init() } +func file_registry_proto_init() { + if File_registry_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_registry_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*ProtoRegistry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_registry_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*ProtoRegistryRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_registry_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_registry_proto_goTypes, + DependencyIndexes: file_registry_proto_depIdxs, + MessageInfos: file_registry_proto_msgTypes, + }.Build() + File_registry_proto = out.File + file_registry_proto_rawDesc = nil + file_registry_proto_goTypes = nil + file_registry_proto_depIdxs = nil +} diff --git a/clients/registry/proto/v1/subnet.pb.go b/clients/registry/proto/v1/subnet.pb.go index 2d449b4..c345e10 100644 --- a/clients/registry/proto/v1/subnet.pb.go +++ b/clients/registry/proto/v1/subnet.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.0 +// protoc v5.26.1 // source: subnet.proto package v1 @@ -852,558 +852,449 @@ var file_subnet_proto_rawDesc = []byte{ 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func file_subnet_proto_init() { - if File_subnet_proto != nil { - return +func file_subnet_proto_rawDescGZIP() []byte { + file_subnet_proto_rawDescOnce.Do(func() { + file_subnet_proto_rawDescData = protoimpl.X.CompressGZIP(file_subnet_proto_rawDescData) + }) + return file_subnet_proto_rawDescData +} + +// An algorithm ID. This is used to specify the signature algorithm associated with a public key. +type AlgorithmId int32 + +const ( + AlgorithmId_ALGORITHM_ID_UNSPECIFIED AlgorithmId = 0 + AlgorithmId_ALGORITHM_ID_MULTI_BLS12_381 AlgorithmId = 1 + AlgorithmId_ALGORITHM_ID_THRES_BLS12_381 AlgorithmId = 2 + AlgorithmId_ALGORITHM_ID_SCHNORR_SECP256K1 AlgorithmId = 3 + AlgorithmId_ALGORITHM_ID_STATIC_DH_SECP256K1 AlgorithmId = 4 + AlgorithmId_ALGORITHM_ID_HASH_SHA256 AlgorithmId = 5 + AlgorithmId_ALGORITHM_ID_TLS AlgorithmId = 6 + AlgorithmId_ALGORITHM_ID_ED25519 AlgorithmId = 7 + AlgorithmId_ALGORITHM_ID_SECP256K1 AlgorithmId = 8 + AlgorithmId_ALGORITHM_ID_GROTH20_BLS12_381 AlgorithmId = 9 + AlgorithmId_ALGORITHM_ID_NIDKG_GROTH20_BLS12_381 AlgorithmId = 10 + AlgorithmId_ALGORITHM_ID_ECDSA_P256 AlgorithmId = 11 + AlgorithmId_ALGORITHM_ID_ECDSA_SECP_256K1 AlgorithmId = 12 + AlgorithmId_ALGORITHM_ID_IC_CANISTER_SIGNATURE AlgorithmId = 13 + AlgorithmId_ALGORITHM_ID_RSA_SHA256 AlgorithmId = 14 + AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256K1 AlgorithmId = 15 + AlgorithmId_ALGORITHM_ID_MEGA_SECP_256K1 AlgorithmId = 16 + AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256R1 AlgorithmId = 17 + AlgorithmId_ALGORITHM_ID_THRESHOLD_SCHNORR_BIP340 AlgorithmId = 18 + AlgorithmId_ALGORITHM_ID_THRESHOLD_ED25519 AlgorithmId = 19 +) + +func (AlgorithmId) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[2].Descriptor() +} + +func (x AlgorithmId) Enum() *AlgorithmId { + p := new(AlgorithmId) + *p = x + return p +} + +// Deprecated: Use AlgorithmId.Descriptor instead. +func (AlgorithmId) EnumDescriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{2} +} + +func (x AlgorithmId) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +func (x AlgorithmId) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AlgorithmId) Type() protoreflect.EnumType { + return &file_subnet_proto_enumTypes[2] +} + +// Contains the initial DKG transcripts for the subnet and materials to construct a base CUP (i.e. +// a CUP with no dependencies on previous CUPs or blocks). Such CUP materials can be used to +// construct the genesis CUP or a recovery CUP in the event of a subnet stall. +type CatchUpPackageContents struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Initial non-interactive low-threshold DKG transcript + InitialNiDkgTranscriptLowThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,1,opt,name=initial_ni_dkg_transcript_low_threshold,json=initialNiDkgTranscriptLowThreshold,proto3" json:"initial_ni_dkg_transcript_low_threshold,omitempty"` + // Initial non-interactive high-threshold DKG transcript + InitialNiDkgTranscriptHighThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,2,opt,name=initial_ni_dkg_transcript_high_threshold,json=initialNiDkgTranscriptHighThreshold,proto3" json:"initial_ni_dkg_transcript_high_threshold,omitempty"` + // The blockchain height that the CUP should have + Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + // Block time for the CUP's block + Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` + // The hash of the state that the subnet should use + StateHash []byte `protobuf:"bytes,5,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` + // A uri from which data to replace the registry local store should be downloaded + RegistryStoreUri *RegistryStoreUri `protobuf:"bytes,6,opt,name=registry_store_uri,json=registryStoreUri,proto3" json:"registry_store_uri,omitempty"` + // / The initial ECDSA dealings for boot strapping target subnets. + EcdsaInitializations []*EcdsaInitialization `protobuf:"bytes,7,rep,name=ecdsa_initializations,json=ecdsaInitializations,proto3" json:"ecdsa_initializations,omitempty"` +} + +// Deprecated: Use CatchUpPackageContents.ProtoReflect.Descriptor instead. +func (*CatchUpPackageContents) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{3} +} + +func (x *CatchUpPackageContents) GetEcdsaInitializations() []*EcdsaInitialization { + if x != nil { + return x.EcdsaInitializations } - if !protoimpl.UnsafeEnabled { - file_subnet_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*SubnetRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*EcdsaKeyId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return nil +} + +func (x *CatchUpPackageContents) GetHeight() uint64 { + if x != nil { + return x.Height + } + return 0 +} + +func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptHighThreshold() *InitialNiDkgTranscriptRecord { + if x != nil { + return x.InitialNiDkgTranscriptHighThreshold + } + return nil +} + +func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptLowThreshold() *InitialNiDkgTranscriptRecord { + if x != nil { + return x.InitialNiDkgTranscriptLowThreshold + } + return nil +} + +func (x *CatchUpPackageContents) GetRegistryStoreUri() *RegistryStoreUri { + if x != nil { + return x.RegistryStoreUri + } + return nil +} + +func (x *CatchUpPackageContents) GetStateHash() []byte { + if x != nil { + return x.StateHash + } + return nil +} + +func (x *CatchUpPackageContents) GetTime() uint64 { + if x != nil { + return x.Time + } + return 0 +} + +func (*CatchUpPackageContents) ProtoMessage() {} + +func (x *CatchUpPackageContents) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*EcdsaInitialization); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +func (x *CatchUpPackageContents) Reset() { + *x = CatchUpPackageContents{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CatchUpPackageContents) String() string { + return protoimpl.X.MessageStringOf(x) +} + +// Per-subnet chain key configuration +type ChainKeyConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Configurations for keys held by the subnet. + KeyConfigs []*KeyConfig `protobuf:"bytes,1,rep,name=key_configs,json=keyConfigs,proto3" json:"key_configs,omitempty"` + // Signature requests will timeout after the given number of nano seconds. + SignatureRequestTimeoutNs *uint64 `protobuf:"varint,2,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` + // Key rotation period of a single node in milliseconds. + // If none is specified key rotation is disabled. + IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,3,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` +} + +// Deprecated: Use ChainKeyConfig.ProtoReflect.Descriptor instead. +func (*ChainKeyConfig) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{30} +} + +func (x *ChainKeyConfig) GetIdkgKeyRotationPeriodMs() uint64 { + if x != nil && x.IdkgKeyRotationPeriodMs != nil { + return *x.IdkgKeyRotationPeriodMs + } + return 0 +} + +func (x *ChainKeyConfig) GetKeyConfigs() []*KeyConfig { + if x != nil { + return x.KeyConfigs + } + return nil +} + +func (x *ChainKeyConfig) GetSignatureRequestTimeoutNs() uint64 { + if x != nil && x.SignatureRequestTimeoutNs != nil { + return *x.SignatureRequestTimeoutNs + } + return 0 +} + +func (*ChainKeyConfig) ProtoMessage() {} + +func (x *ChainKeyConfig) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*CatchUpPackageContents); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*RegistryStoreUri); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*SubnetListRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*NiDkgId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*InitialNiDkgTranscriptRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*PrincipalId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*SubnetId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*IDkgTranscriptId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*VerifiedIDkgDealing); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +func (x *ChainKeyConfig) Reset() { + *x = ChainKeyConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChainKeyConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +type DealerTuple struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DealerId *NodeId `protobuf:"bytes,1,opt,name=dealer_id,json=dealerId,proto3" json:"dealer_id,omitempty"` + DealerIndex uint32 `protobuf:"varint,2,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` +} + +// Deprecated: Use DealerTuple.ProtoReflect.Descriptor instead. +func (*DealerTuple) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{15} +} + +func (x *DealerTuple) GetDealerId() *NodeId { + if x != nil { + return x.DealerId + } + return nil +} + +func (x *DealerTuple) GetDealerIndex() uint32 { + if x != nil { + return x.DealerIndex + } + return 0 +} + +func (*DealerTuple) ProtoMessage() {} + +func (x *DealerTuple) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*NodeId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } + return ms + } + return mi.MessageOf(x) +} + +func (x *DealerTuple) Reset() { + *x = DealerTuple{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DealerTuple) String() string { + return protoimpl.X.MessageStringOf(x) +} + +// Per subnet ECDSA configuration +// +// Deprecated; please use ChainKeyConfig instead. +type EcdsaConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of quadruples to create in advance. + QuadruplesToCreateInAdvance uint32 `protobuf:"varint,1,opt,name=quadruples_to_create_in_advance,json=quadruplesToCreateInAdvance,proto3" json:"quadruples_to_create_in_advance,omitempty"` + // Identifiers for threshold ECDSA keys held by the subnet. + KeyIds []*EcdsaKeyId `protobuf:"bytes,3,rep,name=key_ids,json=keyIds,proto3" json:"key_ids,omitempty"` + // The maximum number of signature requests that can be enqueued at once. + MaxQueueSize uint32 `protobuf:"varint,4,opt,name=max_queue_size,json=maxQueueSize,proto3" json:"max_queue_size,omitempty"` + // Signature requests will timeout after the given number of nano seconds. + SignatureRequestTimeoutNs *uint64 `protobuf:"varint,5,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` + // Key rotation period of a single node in milliseconds. + // If none is specified key rotation is disabled. + IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,6,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` +} + +// Deprecated: Use EcdsaConfig.ProtoReflect.Descriptor instead. +func (*EcdsaConfig) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{26} +} + +func (x *EcdsaConfig) GetIdkgKeyRotationPeriodMs() uint64 { + if x != nil && x.IdkgKeyRotationPeriodMs != nil { + return *x.IdkgKeyRotationPeriodMs + } + return 0 +} + +func (x *EcdsaConfig) GetKeyIds() []*EcdsaKeyId { + if x != nil { + return x.KeyIds + } + return nil +} + +func (x *EcdsaConfig) GetMaxQueueSize() uint32 { + if x != nil { + return x.MaxQueueSize + } + return 0 +} + +func (x *EcdsaConfig) GetQuadruplesToCreateInAdvance() uint32 { + if x != nil { + return x.QuadruplesToCreateInAdvance + } + return 0 +} + +func (x *EcdsaConfig) GetSignatureRequestTimeoutNs() uint64 { + if x != nil && x.SignatureRequestTimeoutNs != nil { + return *x.SignatureRequestTimeoutNs + } + return 0 +} + +func (*EcdsaConfig) ProtoMessage() {} + +func (x *EcdsaConfig) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - file_subnet_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*PublicKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*IDkgTranscript); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*DealerTuple); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*SignatureTuple); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*IDkgTranscriptParams); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*IDkgDealing); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*IDkgSignedDealingTuple); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*InitialIDkgDealings); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*IDkgComplaint); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*IDkgOpening); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*ExtendedDerivationPath); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*GossipConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*SubnetFeatures); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*EcdsaConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*SchnorrKeyId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*MasterPublicKeyId); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*KeyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_subnet_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*ChainKeyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_subnet_proto_msgTypes[0].OneofWrappers = []any{} - file_subnet_proto_msgTypes[25].OneofWrappers = []any{} - file_subnet_proto_msgTypes[26].OneofWrappers = []any{} - file_subnet_proto_msgTypes[28].OneofWrappers = []any{ - (*MasterPublicKeyId_Ecdsa)(nil), - (*MasterPublicKeyId_Schnorr)(nil), + return ms } - file_subnet_proto_msgTypes[29].OneofWrappers = []any{} - file_subnet_proto_msgTypes[30].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_subnet_proto_rawDesc, - NumEnums: 6, - NumMessages: 31, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_subnet_proto_goTypes, - DependencyIndexes: file_subnet_proto_depIdxs, - EnumInfos: file_subnet_proto_enumTypes, - MessageInfos: file_subnet_proto_msgTypes, - }.Build() - File_subnet_proto = out.File - file_subnet_proto_rawDesc = nil - file_subnet_proto_goTypes = nil - file_subnet_proto_depIdxs = nil + return mi.MessageOf(x) } -func file_subnet_proto_rawDescGZIP() []byte { - file_subnet_proto_rawDescOnce.Do(func() { - file_subnet_proto_rawDescData = protoimpl.X.CompressGZIP(file_subnet_proto_rawDescData) - }) - return file_subnet_proto_rawDescData +func (x *EcdsaConfig) Reset() { + *x = EcdsaConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func init() { file_subnet_proto_init() } +func (x *EcdsaConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} -// An algorithm ID. This is used to specify the signature algorithm associated with a public key. -type AlgorithmId int32 +// Types of curves that can be used for ECDSA signatures. +type EcdsaCurve int32 const ( - AlgorithmId_ALGORITHM_ID_UNSPECIFIED AlgorithmId = 0 - AlgorithmId_ALGORITHM_ID_MULTI_BLS12_381 AlgorithmId = 1 - AlgorithmId_ALGORITHM_ID_THRES_BLS12_381 AlgorithmId = 2 - AlgorithmId_ALGORITHM_ID_SCHNORR_SECP256K1 AlgorithmId = 3 - AlgorithmId_ALGORITHM_ID_STATIC_DH_SECP256K1 AlgorithmId = 4 - AlgorithmId_ALGORITHM_ID_HASH_SHA256 AlgorithmId = 5 - AlgorithmId_ALGORITHM_ID_TLS AlgorithmId = 6 - AlgorithmId_ALGORITHM_ID_ED25519 AlgorithmId = 7 - AlgorithmId_ALGORITHM_ID_SECP256K1 AlgorithmId = 8 - AlgorithmId_ALGORITHM_ID_GROTH20_BLS12_381 AlgorithmId = 9 - AlgorithmId_ALGORITHM_ID_NIDKG_GROTH20_BLS12_381 AlgorithmId = 10 - AlgorithmId_ALGORITHM_ID_ECDSA_P256 AlgorithmId = 11 - AlgorithmId_ALGORITHM_ID_ECDSA_SECP_256K1 AlgorithmId = 12 - AlgorithmId_ALGORITHM_ID_IC_CANISTER_SIGNATURE AlgorithmId = 13 - AlgorithmId_ALGORITHM_ID_RSA_SHA256 AlgorithmId = 14 - AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256K1 AlgorithmId = 15 - AlgorithmId_ALGORITHM_ID_MEGA_SECP_256K1 AlgorithmId = 16 - AlgorithmId_ALGORITHM_ID_THRESHOLD_ECDSA_SECP_256R1 AlgorithmId = 17 - AlgorithmId_ALGORITHM_ID_THRESHOLD_SCHNORR_BIP340 AlgorithmId = 18 - AlgorithmId_ALGORITHM_ID_THRESHOLD_ED25519 AlgorithmId = 19 + EcdsaCurve_ECDSA_CURVE_UNSPECIFIED EcdsaCurve = 0 + EcdsaCurve_ECDSA_CURVE_SECP256K1 EcdsaCurve = 1 ) -func (AlgorithmId) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[2].Descriptor() +func (EcdsaCurve) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[0].Descriptor() } -func (x AlgorithmId) Enum() *AlgorithmId { - p := new(AlgorithmId) +func (x EcdsaCurve) Enum() *EcdsaCurve { + p := new(EcdsaCurve) *p = x return p } -// Deprecated: Use AlgorithmId.Descriptor instead. -func (AlgorithmId) EnumDescriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{2} +// Deprecated: Use EcdsaCurve.Descriptor instead. +func (EcdsaCurve) EnumDescriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{0} } -func (x AlgorithmId) Number() protoreflect.EnumNumber { +func (x EcdsaCurve) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -func (x AlgorithmId) String() string { +func (x EcdsaCurve) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (AlgorithmId) Type() protoreflect.EnumType { - return &file_subnet_proto_enumTypes[2] +func (EcdsaCurve) Type() protoreflect.EnumType { + return &file_subnet_proto_enumTypes[0] } -// Contains the initial DKG transcripts for the subnet and materials to construct a base CUP (i.e. -// a CUP with no dependencies on previous CUPs or blocks). Such CUP materials can be used to -// construct the genesis CUP or a recovery CUP in the event of a subnet stall. -type CatchUpPackageContents struct { +type EcdsaInitialization struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Initial non-interactive low-threshold DKG transcript - InitialNiDkgTranscriptLowThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,1,opt,name=initial_ni_dkg_transcript_low_threshold,json=initialNiDkgTranscriptLowThreshold,proto3" json:"initial_ni_dkg_transcript_low_threshold,omitempty"` - // Initial non-interactive high-threshold DKG transcript - InitialNiDkgTranscriptHighThreshold *InitialNiDkgTranscriptRecord `protobuf:"bytes,2,opt,name=initial_ni_dkg_transcript_high_threshold,json=initialNiDkgTranscriptHighThreshold,proto3" json:"initial_ni_dkg_transcript_high_threshold,omitempty"` - // The blockchain height that the CUP should have - Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` - // Block time for the CUP's block - Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` - // The hash of the state that the subnet should use - StateHash []byte `protobuf:"bytes,5,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"` - // A uri from which data to replace the registry local store should be downloaded - RegistryStoreUri *RegistryStoreUri `protobuf:"bytes,6,opt,name=registry_store_uri,json=registryStoreUri,proto3" json:"registry_store_uri,omitempty"` - // / The initial ECDSA dealings for boot strapping target subnets. - EcdsaInitializations []*EcdsaInitialization `protobuf:"bytes,7,rep,name=ecdsa_initializations,json=ecdsaInitializations,proto3" json:"ecdsa_initializations,omitempty"` -} - -// Deprecated: Use CatchUpPackageContents.ProtoReflect.Descriptor instead. -func (*CatchUpPackageContents) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{3} -} - -func (x *CatchUpPackageContents) GetEcdsaInitializations() []*EcdsaInitialization { - if x != nil { - return x.EcdsaInitializations - } - return nil -} - -func (x *CatchUpPackageContents) GetHeight() uint64 { - if x != nil { - return x.Height - } - return 0 -} - -func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptHighThreshold() *InitialNiDkgTranscriptRecord { - if x != nil { - return x.InitialNiDkgTranscriptHighThreshold - } - return nil + KeyId *EcdsaKeyId `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` + Dealings *InitialIDkgDealings `protobuf:"bytes,2,opt,name=dealings,proto3" json:"dealings,omitempty"` } -func (x *CatchUpPackageContents) GetInitialNiDkgTranscriptLowThreshold() *InitialNiDkgTranscriptRecord { - if x != nil { - return x.InitialNiDkgTranscriptLowThreshold - } - return nil +// Deprecated: Use EcdsaInitialization.ProtoReflect.Descriptor instead. +func (*EcdsaInitialization) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{2} } -func (x *CatchUpPackageContents) GetRegistryStoreUri() *RegistryStoreUri { +func (x *EcdsaInitialization) GetDealings() *InitialIDkgDealings { if x != nil { - return x.RegistryStoreUri + return x.Dealings } return nil } -func (x *CatchUpPackageContents) GetStateHash() []byte { +func (x *EcdsaInitialization) GetKeyId() *EcdsaKeyId { if x != nil { - return x.StateHash + return x.KeyId } return nil } -func (x *CatchUpPackageContents) GetTime() uint64 { - if x != nil { - return x.Time - } - return 0 -} - -func (*CatchUpPackageContents) ProtoMessage() {} +func (*EcdsaInitialization) ProtoMessage() {} -func (x *CatchUpPackageContents) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[3] +func (x *EcdsaInitialization) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1414,64 +1305,51 @@ func (x *CatchUpPackageContents) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *CatchUpPackageContents) Reset() { - *x = CatchUpPackageContents{} +func (x *EcdsaInitialization) Reset() { + *x = EcdsaInitialization{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[3] + mi := &file_subnet_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CatchUpPackageContents) String() string { +func (x *EcdsaInitialization) String() string { return protoimpl.X.MessageStringOf(x) } -// Per-subnet chain key configuration -type ChainKeyConfig struct { +type EcdsaKeyId struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Configurations for keys held by the subnet. - KeyConfigs []*KeyConfig `protobuf:"bytes,1,rep,name=key_configs,json=keyConfigs,proto3" json:"key_configs,omitempty"` - // Signature requests will timeout after the given number of nano seconds. - SignatureRequestTimeoutNs *uint64 `protobuf:"varint,2,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` - // Key rotation period of a single node in milliseconds. - // If none is specified key rotation is disabled. - IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,3,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` -} - -// Deprecated: Use ChainKeyConfig.ProtoReflect.Descriptor instead. -func (*ChainKeyConfig) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{30} + Curve EcdsaCurve `protobuf:"varint,1,opt,name=curve,proto3,enum=registry.subnet.v1.EcdsaCurve" json:"curve,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } -func (x *ChainKeyConfig) GetIdkgKeyRotationPeriodMs() uint64 { - if x != nil && x.IdkgKeyRotationPeriodMs != nil { - return *x.IdkgKeyRotationPeriodMs - } - return 0 +// Deprecated: Use EcdsaKeyId.ProtoReflect.Descriptor instead. +func (*EcdsaKeyId) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{1} } -func (x *ChainKeyConfig) GetKeyConfigs() []*KeyConfig { +func (x *EcdsaKeyId) GetCurve() EcdsaCurve { if x != nil { - return x.KeyConfigs + return x.Curve } - return nil + return EcdsaCurve_ECDSA_CURVE_UNSPECIFIED } -func (x *ChainKeyConfig) GetSignatureRequestTimeoutNs() uint64 { - if x != nil && x.SignatureRequestTimeoutNs != nil { - return *x.SignatureRequestTimeoutNs +func (x *EcdsaKeyId) GetName() string { + if x != nil { + return x.Name } - return 0 + return "" } -func (*ChainKeyConfig) ProtoMessage() {} +func (*EcdsaKeyId) ProtoMessage() {} -func (x *ChainKeyConfig) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[30] +func (x *EcdsaKeyId) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1482,51 +1360,51 @@ func (x *ChainKeyConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *ChainKeyConfig) Reset() { - *x = ChainKeyConfig{} +func (x *EcdsaKeyId) Reset() { + *x = EcdsaKeyId{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[30] + mi := &file_subnet_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ChainKeyConfig) String() string { +func (x *EcdsaKeyId) String() string { return protoimpl.X.MessageStringOf(x) } -type DealerTuple struct { +type ExtendedDerivationPath struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DealerId *NodeId `protobuf:"bytes,1,opt,name=dealer_id,json=dealerId,proto3" json:"dealer_id,omitempty"` - DealerIndex uint32 `protobuf:"varint,2,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` + Caller *PrincipalId `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"` + DerivationPath [][]byte `protobuf:"bytes,2,rep,name=derivation_path,json=derivationPath,proto3" json:"derivation_path,omitempty"` } -// Deprecated: Use DealerTuple.ProtoReflect.Descriptor instead. -func (*DealerTuple) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{15} +// Deprecated: Use ExtendedDerivationPath.ProtoReflect.Descriptor instead. +func (*ExtendedDerivationPath) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{23} } -func (x *DealerTuple) GetDealerId() *NodeId { +func (x *ExtendedDerivationPath) GetCaller() *PrincipalId { if x != nil { - return x.DealerId + return x.Caller } return nil } -func (x *DealerTuple) GetDealerIndex() uint32 { +func (x *ExtendedDerivationPath) GetDerivationPath() [][]byte { if x != nil { - return x.DealerIndex + return x.DerivationPath } - return 0 + return nil } -func (*DealerTuple) ProtoMessage() {} +func (*ExtendedDerivationPath) ProtoMessage() {} -func (x *DealerTuple) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[15] +func (x *ExtendedDerivationPath) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1537,84 +1415,109 @@ func (x *DealerTuple) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *DealerTuple) Reset() { - *x = DealerTuple{} +func (x *ExtendedDerivationPath) Reset() { + *x = ExtendedDerivationPath{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[15] + mi := &file_subnet_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *DealerTuple) String() string { +func (x *ExtendedDerivationPath) String() string { return protoimpl.X.MessageStringOf(x) } -// Per subnet ECDSA configuration -// -// Deprecated; please use ChainKeyConfig instead. -type EcdsaConfig struct { +// Per subnet P2P configuration +// Note: protoc is mangling the name P2PConfig to P2pConfig +type GossipConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Number of quadruples to create in advance. - QuadruplesToCreateInAdvance uint32 `protobuf:"varint,1,opt,name=quadruples_to_create_in_advance,json=quadruplesToCreateInAdvance,proto3" json:"quadruples_to_create_in_advance,omitempty"` - // Identifiers for threshold ECDSA keys held by the subnet. - KeyIds []*EcdsaKeyId `protobuf:"bytes,3,rep,name=key_ids,json=keyIds,proto3" json:"key_ids,omitempty"` - // The maximum number of signature requests that can be enqueued at once. - MaxQueueSize uint32 `protobuf:"varint,4,opt,name=max_queue_size,json=maxQueueSize,proto3" json:"max_queue_size,omitempty"` - // Signature requests will timeout after the given number of nano seconds. - SignatureRequestTimeoutNs *uint64 `protobuf:"varint,5,opt,name=signature_request_timeout_ns,json=signatureRequestTimeoutNs,proto3,oneof" json:"signature_request_timeout_ns,omitempty"` - // Key rotation period of a single node in milliseconds. - // If none is specified key rotation is disabled. - IdkgKeyRotationPeriodMs *uint64 `protobuf:"varint,6,opt,name=idkg_key_rotation_period_ms,json=idkgKeyRotationPeriodMs,proto3,oneof" json:"idkg_key_rotation_period_ms,omitempty"` -} - -// Deprecated: Use EcdsaConfig.ProtoReflect.Descriptor instead. -func (*EcdsaConfig) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{26} -} - -func (x *EcdsaConfig) GetIdkgKeyRotationPeriodMs() uint64 { - if x != nil && x.IdkgKeyRotationPeriodMs != nil { - return *x.IdkgKeyRotationPeriodMs - } - return 0 -} - -func (x *EcdsaConfig) GetKeyIds() []*EcdsaKeyId { + // max outstanding request per peer MIN/DEFAULT/MAX 1/20/200 + MaxArtifactStreamsPerPeer uint32 `protobuf:"varint,1,opt,name=max_artifact_streams_per_peer,json=maxArtifactStreamsPerPeer,proto3" json:"max_artifact_streams_per_peer,omitempty"` + // timeout for a outstanding request 3_000/15_000/180_000 + MaxChunkWaitMs uint32 `protobuf:"varint,2,opt,name=max_chunk_wait_ms,json=maxChunkWaitMs,proto3" json:"max_chunk_wait_ms,omitempty"` + // max duplicate requests in underutilized networks 1/28/6000 + MaxDuplicity uint32 `protobuf:"varint,3,opt,name=max_duplicity,json=maxDuplicity,proto3" json:"max_duplicity,omitempty"` + // maximum chunk size supported on this subnet 1024/4096/131_072 + MaxChunkSize uint32 `protobuf:"varint,4,opt,name=max_chunk_size,json=maxChunkSize,proto3" json:"max_chunk_size,omitempty"` + // history size for receive check 1_000/5_000/30_000 + ReceiveCheckCacheSize uint32 `protobuf:"varint,5,opt,name=receive_check_cache_size,json=receiveCheckCacheSize,proto3" json:"receive_check_cache_size,omitempty"` + // period for re evaluating the priority function. 1_000/3_000/30_000 + PfnEvaluationPeriodMs uint32 `protobuf:"varint,6,opt,name=pfn_evaluation_period_ms,json=pfnEvaluationPeriodMs,proto3" json:"pfn_evaluation_period_ms,omitempty"` + // period for polling the registry for updates 1_000/3_000/30_000 + RegistryPollPeriodMs uint32 `protobuf:"varint,7,opt,name=registry_poll_period_ms,json=registryPollPeriodMs,proto3" json:"registry_poll_period_ms,omitempty"` + // period for sending a retransmission request + RetransmissionRequestMs uint32 `protobuf:"varint,8,opt,name=retransmission_request_ms,json=retransmissionRequestMs,proto3" json:"retransmission_request_ms,omitempty"` // config for advert distribution. +} + +// Deprecated: Use GossipConfig.ProtoReflect.Descriptor instead. +func (*GossipConfig) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{24} +} + +func (x *GossipConfig) GetMaxArtifactStreamsPerPeer() uint32 { if x != nil { - return x.KeyIds + return x.MaxArtifactStreamsPerPeer } - return nil + return 0 } -func (x *EcdsaConfig) GetMaxQueueSize() uint32 { +func (x *GossipConfig) GetMaxChunkSize() uint32 { if x != nil { - return x.MaxQueueSize + return x.MaxChunkSize } return 0 } -func (x *EcdsaConfig) GetQuadruplesToCreateInAdvance() uint32 { +func (x *GossipConfig) GetMaxChunkWaitMs() uint32 { if x != nil { - return x.QuadruplesToCreateInAdvance + return x.MaxChunkWaitMs } return 0 } -func (x *EcdsaConfig) GetSignatureRequestTimeoutNs() uint64 { - if x != nil && x.SignatureRequestTimeoutNs != nil { - return *x.SignatureRequestTimeoutNs +func (x *GossipConfig) GetMaxDuplicity() uint32 { + if x != nil { + return x.MaxDuplicity } return 0 } -func (*EcdsaConfig) ProtoMessage() {} +func (x *GossipConfig) GetPfnEvaluationPeriodMs() uint32 { + if x != nil { + return x.PfnEvaluationPeriodMs + } + return 0 +} -func (x *EcdsaConfig) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[26] +func (x *GossipConfig) GetReceiveCheckCacheSize() uint32 { + if x != nil { + return x.ReceiveCheckCacheSize + } + return 0 +} + +func (x *GossipConfig) GetRegistryPollPeriodMs() uint32 { + if x != nil { + return x.RegistryPollPeriodMs + } + return 0 +} + +func (x *GossipConfig) GetRetransmissionRequestMs() uint32 { + if x != nil { + return x.RetransmissionRequestMs + } + return 0 +} + +func (*GossipConfig) ProtoMessage() {} + +func (x *GossipConfig) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1625,86 +1528,59 @@ func (x *EcdsaConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *EcdsaConfig) Reset() { - *x = EcdsaConfig{} +func (x *GossipConfig) Reset() { + *x = GossipConfig{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[26] + mi := &file_subnet_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EcdsaConfig) String() string { +func (x *GossipConfig) String() string { return protoimpl.X.MessageStringOf(x) } -// Types of curves that can be used for ECDSA signatures. -type EcdsaCurve int32 - -const ( - EcdsaCurve_ECDSA_CURVE_UNSPECIFIED EcdsaCurve = 0 - EcdsaCurve_ECDSA_CURVE_SECP256K1 EcdsaCurve = 1 -) - -func (EcdsaCurve) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[0].Descriptor() -} - -func (x EcdsaCurve) Enum() *EcdsaCurve { - p := new(EcdsaCurve) - *p = x - return p -} - -// Deprecated: Use EcdsaCurve.Descriptor instead. -func (EcdsaCurve) EnumDescriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{0} -} - -func (x EcdsaCurve) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -func (x EcdsaCurve) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (EcdsaCurve) Type() protoreflect.EnumType { - return &file_subnet_proto_enumTypes[0] -} - -type EcdsaInitialization struct { +type IDkgComplaint struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - KeyId *EcdsaKeyId `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - Dealings *InitialIDkgDealings `protobuf:"bytes,2,opt,name=dealings,proto3" json:"dealings,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` + RawComplaint []byte `protobuf:"bytes,3,opt,name=raw_complaint,json=rawComplaint,proto3" json:"raw_complaint,omitempty"` } -// Deprecated: Use EcdsaInitialization.ProtoReflect.Descriptor instead. -func (*EcdsaInitialization) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{2} +// Deprecated: Use IDkgComplaint.ProtoReflect.Descriptor instead. +func (*IDkgComplaint) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{21} } -func (x *EcdsaInitialization) GetDealings() *InitialIDkgDealings { +func (x *IDkgComplaint) GetDealer() *NodeId { if x != nil { - return x.Dealings + return x.Dealer } return nil } -func (x *EcdsaInitialization) GetKeyId() *EcdsaKeyId { +func (x *IDkgComplaint) GetRawComplaint() []byte { if x != nil { - return x.KeyId + return x.RawComplaint } return nil } -func (*EcdsaInitialization) ProtoMessage() {} +func (x *IDkgComplaint) GetTranscriptId() *IDkgTranscriptId { + if x != nil { + return x.TranscriptId + } + return nil +} -func (x *EcdsaInitialization) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[2] +func (*IDkgComplaint) ProtoMessage() {} + +func (x *IDkgComplaint) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1715,51 +1591,51 @@ func (x *EcdsaInitialization) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *EcdsaInitialization) Reset() { - *x = EcdsaInitialization{} +func (x *IDkgComplaint) Reset() { + *x = IDkgComplaint{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[2] + mi := &file_subnet_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EcdsaInitialization) String() string { +func (x *IDkgComplaint) String() string { return protoimpl.X.MessageStringOf(x) } -type EcdsaKeyId struct { +type IDkgDealing struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Curve EcdsaCurve `protobuf:"varint,1,opt,name=curve,proto3,enum=registry.subnet.v1.EcdsaCurve" json:"curve,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + RawDealing []byte `protobuf:"bytes,2,opt,name=raw_dealing,json=rawDealing,proto3" json:"raw_dealing,omitempty"` // serialised InternalRawDealing } -// Deprecated: Use EcdsaKeyId.ProtoReflect.Descriptor instead. -func (*EcdsaKeyId) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{1} +// Deprecated: Use IDkgDealing.ProtoReflect.Descriptor instead. +func (*IDkgDealing) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{18} } -func (x *EcdsaKeyId) GetCurve() EcdsaCurve { +func (x *IDkgDealing) GetRawDealing() []byte { if x != nil { - return x.Curve + return x.RawDealing } - return EcdsaCurve_ECDSA_CURVE_UNSPECIFIED + return nil } -func (x *EcdsaKeyId) GetName() string { +func (x *IDkgDealing) GetTranscriptId() *IDkgTranscriptId { if x != nil { - return x.Name + return x.TranscriptId } - return "" + return nil } -func (*EcdsaKeyId) ProtoMessage() {} +func (*IDkgDealing) ProtoMessage() {} -func (x *EcdsaKeyId) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[1] +func (x *IDkgDealing) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1770,51 +1646,59 @@ func (x *EcdsaKeyId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *EcdsaKeyId) Reset() { - *x = EcdsaKeyId{} +func (x *IDkgDealing) Reset() { + *x = IDkgDealing{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[1] + mi := &file_subnet_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *EcdsaKeyId) String() string { +func (x *IDkgDealing) String() string { return protoimpl.X.MessageStringOf(x) } -type ExtendedDerivationPath struct { +type IDkgOpening struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Caller *PrincipalId `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"` - DerivationPath [][]byte `protobuf:"bytes,2,rep,name=derivation_path,json=derivationPath,proto3" json:"derivation_path,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` + RawOpening []byte `protobuf:"bytes,3,opt,name=raw_opening,json=rawOpening,proto3" json:"raw_opening,omitempty"` } -// Deprecated: Use ExtendedDerivationPath.ProtoReflect.Descriptor instead. -func (*ExtendedDerivationPath) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{23} +// Deprecated: Use IDkgOpening.ProtoReflect.Descriptor instead. +func (*IDkgOpening) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{22} } -func (x *ExtendedDerivationPath) GetCaller() *PrincipalId { +func (x *IDkgOpening) GetDealer() *NodeId { if x != nil { - return x.Caller + return x.Dealer } return nil } -func (x *ExtendedDerivationPath) GetDerivationPath() [][]byte { +func (x *IDkgOpening) GetRawOpening() []byte { if x != nil { - return x.DerivationPath + return x.RawOpening } return nil } -func (*ExtendedDerivationPath) ProtoMessage() {} +func (x *IDkgOpening) GetTranscriptId() *IDkgTranscriptId { + if x != nil { + return x.TranscriptId + } + return nil +} -func (x *ExtendedDerivationPath) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[23] +func (*IDkgOpening) ProtoMessage() {} + +func (x *IDkgOpening) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1825,109 +1709,59 @@ func (x *ExtendedDerivationPath) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *ExtendedDerivationPath) Reset() { - *x = ExtendedDerivationPath{} +func (x *IDkgOpening) Reset() { + *x = IDkgOpening{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[23] + mi := &file_subnet_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *ExtendedDerivationPath) String() string { +func (x *IDkgOpening) String() string { return protoimpl.X.MessageStringOf(x) } -// Per subnet P2P configuration -// Note: protoc is mangling the name P2PConfig to P2pConfig -type GossipConfig struct { +type IDkgSignedDealingTuple struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // max outstanding request per peer MIN/DEFAULT/MAX 1/20/200 - MaxArtifactStreamsPerPeer uint32 `protobuf:"varint,1,opt,name=max_artifact_streams_per_peer,json=maxArtifactStreamsPerPeer,proto3" json:"max_artifact_streams_per_peer,omitempty"` - // timeout for a outstanding request 3_000/15_000/180_000 - MaxChunkWaitMs uint32 `protobuf:"varint,2,opt,name=max_chunk_wait_ms,json=maxChunkWaitMs,proto3" json:"max_chunk_wait_ms,omitempty"` - // max duplicate requests in underutilized networks 1/28/6000 - MaxDuplicity uint32 `protobuf:"varint,3,opt,name=max_duplicity,json=maxDuplicity,proto3" json:"max_duplicity,omitempty"` - // maximum chunk size supported on this subnet 1024/4096/131_072 - MaxChunkSize uint32 `protobuf:"varint,4,opt,name=max_chunk_size,json=maxChunkSize,proto3" json:"max_chunk_size,omitempty"` - // history size for receive check 1_000/5_000/30_000 - ReceiveCheckCacheSize uint32 `protobuf:"varint,5,opt,name=receive_check_cache_size,json=receiveCheckCacheSize,proto3" json:"receive_check_cache_size,omitempty"` - // period for re evaluating the priority function. 1_000/3_000/30_000 - PfnEvaluationPeriodMs uint32 `protobuf:"varint,6,opt,name=pfn_evaluation_period_ms,json=pfnEvaluationPeriodMs,proto3" json:"pfn_evaluation_period_ms,omitempty"` - // period for polling the registry for updates 1_000/3_000/30_000 - RegistryPollPeriodMs uint32 `protobuf:"varint,7,opt,name=registry_poll_period_ms,json=registryPollPeriodMs,proto3" json:"registry_poll_period_ms,omitempty"` - // period for sending a retransmission request - RetransmissionRequestMs uint32 `protobuf:"varint,8,opt,name=retransmission_request_ms,json=retransmissionRequestMs,proto3" json:"retransmission_request_ms,omitempty"` // config for advert distribution. -} - -// Deprecated: Use GossipConfig.ProtoReflect.Descriptor instead. -func (*GossipConfig) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{24} -} - -func (x *GossipConfig) GetMaxArtifactStreamsPerPeer() uint32 { - if x != nil { - return x.MaxArtifactStreamsPerPeer - } - return 0 -} - -func (x *GossipConfig) GetMaxChunkSize() uint32 { - if x != nil { - return x.MaxChunkSize - } - return 0 -} - -func (x *GossipConfig) GetMaxChunkWaitMs() uint32 { - if x != nil { - return x.MaxChunkWaitMs - } - return 0 -} - -func (x *GossipConfig) GetMaxDuplicity() uint32 { - if x != nil { - return x.MaxDuplicity - } - return 0 + Dealer *NodeId `protobuf:"bytes,1,opt,name=dealer,proto3" json:"dealer,omitempty"` + Dealing *IDkgDealing `protobuf:"bytes,2,opt,name=dealing,proto3" json:"dealing,omitempty"` + Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` } -func (x *GossipConfig) GetPfnEvaluationPeriodMs() uint32 { - if x != nil { - return x.PfnEvaluationPeriodMs - } - return 0 +// Deprecated: Use IDkgSignedDealingTuple.ProtoReflect.Descriptor instead. +func (*IDkgSignedDealingTuple) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{19} } -func (x *GossipConfig) GetReceiveCheckCacheSize() uint32 { +func (x *IDkgSignedDealingTuple) GetDealer() *NodeId { if x != nil { - return x.ReceiveCheckCacheSize + return x.Dealer } - return 0 + return nil } -func (x *GossipConfig) GetRegistryPollPeriodMs() uint32 { +func (x *IDkgSignedDealingTuple) GetDealing() *IDkgDealing { if x != nil { - return x.RegistryPollPeriodMs + return x.Dealing } - return 0 + return nil } -func (x *GossipConfig) GetRetransmissionRequestMs() uint32 { +func (x *IDkgSignedDealingTuple) GetSignature() []byte { if x != nil { - return x.RetransmissionRequestMs + return x.Signature } - return 0 + return nil } -func (*GossipConfig) ProtoMessage() {} +func (*IDkgSignedDealingTuple) ProtoMessage() {} -func (x *GossipConfig) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[24] +func (x *IDkgSignedDealingTuple) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1938,114 +1772,99 @@ func (x *GossipConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *GossipConfig) Reset() { - *x = GossipConfig{} +func (x *IDkgSignedDealingTuple) Reset() { + *x = IDkgSignedDealingTuple{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[24] + mi := &file_subnet_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GossipConfig) String() string { +func (x *IDkgSignedDealingTuple) String() string { return protoimpl.X.MessageStringOf(x) } -type IDkgComplaint struct { +type IDkgTranscript struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` - RawComplaint []byte `protobuf:"bytes,3,opt,name=raw_complaint,json=rawComplaint,proto3" json:"raw_complaint,omitempty"` + TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` + Dealers []*NodeId `protobuf:"bytes,2,rep,name=dealers,proto3" json:"dealers,omitempty"` + Receivers []*NodeId `protobuf:"bytes,3,rep,name=receivers,proto3" json:"receivers,omitempty"` + RegistryVersion uint64 `protobuf:"varint,4,opt,name=registry_version,json=registryVersion,proto3" json:"registry_version,omitempty"` + VerifiedDealings []*VerifiedIDkgDealing `protobuf:"bytes,5,rep,name=verified_dealings,json=verifiedDealings,proto3" json:"verified_dealings,omitempty"` + TranscriptType []byte `protobuf:"bytes,6,opt,name=transcript_type,json=transcriptType,proto3" json:"transcript_type,omitempty"` // CBOR serialized IDkgTranscriptType + AlgorithmId AlgorithmId `protobuf:"varint,7,opt,name=algorithm_id,json=algorithmId,proto3,enum=registry.subnet.v1.AlgorithmId" json:"algorithm_id,omitempty"` + RawTranscript []byte `protobuf:"bytes,8,opt,name=raw_transcript,json=rawTranscript,proto3" json:"raw_transcript,omitempty"` // serialised InternalRawTranscript } -// Deprecated: Use IDkgComplaint.ProtoReflect.Descriptor instead. -func (*IDkgComplaint) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{21} +// Deprecated: Use IDkgTranscript.ProtoReflect.Descriptor instead. +func (*IDkgTranscript) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{14} } -func (x *IDkgComplaint) GetDealer() *NodeId { +func (x *IDkgTranscript) GetAlgorithmId() AlgorithmId { if x != nil { - return x.Dealer + return x.AlgorithmId } - return nil + return AlgorithmId_ALGORITHM_ID_UNSPECIFIED } -func (x *IDkgComplaint) GetRawComplaint() []byte { +func (x *IDkgTranscript) GetDealers() []*NodeId { if x != nil { - return x.RawComplaint + return x.Dealers } return nil } -func (x *IDkgComplaint) GetTranscriptId() *IDkgTranscriptId { +func (x *IDkgTranscript) GetRawTranscript() []byte { if x != nil { - return x.TranscriptId + return x.RawTranscript } return nil } -func (*IDkgComplaint) ProtoMessage() {} - -func (x *IDkgComplaint) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *IDkgTranscript) GetReceivers() []*NodeId { + if x != nil { + return x.Receivers } - return mi.MessageOf(x) + return nil } -func (x *IDkgComplaint) Reset() { - *x = IDkgComplaint{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *IDkgTranscript) GetRegistryVersion() uint64 { + if x != nil { + return x.RegistryVersion } + return 0 } -func (x *IDkgComplaint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgDealing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - RawDealing []byte `protobuf:"bytes,2,opt,name=raw_dealing,json=rawDealing,proto3" json:"raw_dealing,omitempty"` // serialised InternalRawDealing -} - -// Deprecated: Use IDkgDealing.ProtoReflect.Descriptor instead. -func (*IDkgDealing) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{18} +func (x *IDkgTranscript) GetTranscriptId() *IDkgTranscriptId { + if x != nil { + return x.TranscriptId + } + return nil } -func (x *IDkgDealing) GetRawDealing() []byte { +func (x *IDkgTranscript) GetTranscriptType() []byte { if x != nil { - return x.RawDealing + return x.TranscriptType } return nil } -func (x *IDkgDealing) GetTranscriptId() *IDkgTranscriptId { +func (x *IDkgTranscript) GetVerifiedDealings() []*VerifiedIDkgDealing { if x != nil { - return x.TranscriptId + return x.VerifiedDealings } return nil } -func (*IDkgDealing) ProtoMessage() {} +func (*IDkgTranscript) ProtoMessage() {} -func (x *IDkgDealing) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[18] +func (x *IDkgTranscript) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2056,59 +1875,59 @@ func (x *IDkgDealing) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *IDkgDealing) Reset() { - *x = IDkgDealing{} +func (x *IDkgTranscript) Reset() { + *x = IDkgTranscript{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[18] + mi := &file_subnet_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *IDkgDealing) String() string { +func (x *IDkgTranscript) String() string { return protoimpl.X.MessageStringOf(x) } -type IDkgOpening struct { +type IDkgTranscriptId struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - Dealer *NodeId `protobuf:"bytes,2,opt,name=dealer,proto3" json:"dealer,omitempty"` - RawOpening []byte `protobuf:"bytes,3,opt,name=raw_opening,json=rawOpening,proto3" json:"raw_opening,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + SubnetId *SubnetId `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` + SourceHeight uint64 `protobuf:"varint,3,opt,name=source_height,json=sourceHeight,proto3" json:"source_height,omitempty"` } -// Deprecated: Use IDkgOpening.ProtoReflect.Descriptor instead. -func (*IDkgOpening) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{22} +// Deprecated: Use IDkgTranscriptId.ProtoReflect.Descriptor instead. +func (*IDkgTranscriptId) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{10} } -func (x *IDkgOpening) GetDealer() *NodeId { +func (x *IDkgTranscriptId) GetId() uint64 { if x != nil { - return x.Dealer + return x.Id } - return nil + return 0 } -func (x *IDkgOpening) GetRawOpening() []byte { +func (x *IDkgTranscriptId) GetSourceHeight() uint64 { if x != nil { - return x.RawOpening + return x.SourceHeight } - return nil + return 0 } -func (x *IDkgOpening) GetTranscriptId() *IDkgTranscriptId { +func (x *IDkgTranscriptId) GetSubnetId() *SubnetId { if x != nil { - return x.TranscriptId + return x.SubnetId } return nil } -func (*IDkgOpening) ProtoMessage() {} +func (*IDkgTranscriptId) ProtoMessage() {} -func (x *IDkgOpening) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[22] +func (x *IDkgTranscriptId) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2119,267 +1938,38 @@ func (x *IDkgOpening) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *IDkgOpening) Reset() { - *x = IDkgOpening{} +func (x *IDkgTranscriptId) Reset() { + *x = IDkgTranscriptId{} if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[22] + mi := &file_subnet_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *IDkgOpening) String() string { +func (x *IDkgTranscriptId) String() string { return protoimpl.X.MessageStringOf(x) } -type IDkgSignedDealingTuple struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields +type IDkgTranscriptOperation int32 - Dealer *NodeId `protobuf:"bytes,1,opt,name=dealer,proto3" json:"dealer,omitempty"` - Dealing *IDkgDealing `protobuf:"bytes,2,opt,name=dealing,proto3" json:"dealing,omitempty"` - Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` +const ( + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNSPECIFIED IDkgTranscriptOperation = 0 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM IDkgTranscriptOperation = 1 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_MASKED IDkgTranscriptOperation = 2 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_UNMASKED IDkgTranscriptOperation = 3 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNMASKED_TIMES_MASKED IDkgTranscriptOperation = 4 + IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM_UNMASKED IDkgTranscriptOperation = 5 +) + +func (IDkgTranscriptOperation) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[3].Descriptor() } -// Deprecated: Use IDkgSignedDealingTuple.ProtoReflect.Descriptor instead. -func (*IDkgSignedDealingTuple) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{19} -} - -func (x *IDkgSignedDealingTuple) GetDealer() *NodeId { - if x != nil { - return x.Dealer - } - return nil -} - -func (x *IDkgSignedDealingTuple) GetDealing() *IDkgDealing { - if x != nil { - return x.Dealing - } - return nil -} - -func (x *IDkgSignedDealingTuple) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (*IDkgSignedDealingTuple) ProtoMessage() {} - -func (x *IDkgSignedDealingTuple) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *IDkgSignedDealingTuple) Reset() { - *x = IDkgSignedDealingTuple{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDkgSignedDealingTuple) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgTranscript struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TranscriptId *IDkgTranscriptId `protobuf:"bytes,1,opt,name=transcript_id,json=transcriptId,proto3" json:"transcript_id,omitempty"` - Dealers []*NodeId `protobuf:"bytes,2,rep,name=dealers,proto3" json:"dealers,omitempty"` - Receivers []*NodeId `protobuf:"bytes,3,rep,name=receivers,proto3" json:"receivers,omitempty"` - RegistryVersion uint64 `protobuf:"varint,4,opt,name=registry_version,json=registryVersion,proto3" json:"registry_version,omitempty"` - VerifiedDealings []*VerifiedIDkgDealing `protobuf:"bytes,5,rep,name=verified_dealings,json=verifiedDealings,proto3" json:"verified_dealings,omitempty"` - TranscriptType []byte `protobuf:"bytes,6,opt,name=transcript_type,json=transcriptType,proto3" json:"transcript_type,omitempty"` // CBOR serialized IDkgTranscriptType - AlgorithmId AlgorithmId `protobuf:"varint,7,opt,name=algorithm_id,json=algorithmId,proto3,enum=registry.subnet.v1.AlgorithmId" json:"algorithm_id,omitempty"` - RawTranscript []byte `protobuf:"bytes,8,opt,name=raw_transcript,json=rawTranscript,proto3" json:"raw_transcript,omitempty"` // serialised InternalRawTranscript -} - -// Deprecated: Use IDkgTranscript.ProtoReflect.Descriptor instead. -func (*IDkgTranscript) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{14} -} - -func (x *IDkgTranscript) GetAlgorithmId() AlgorithmId { - if x != nil { - return x.AlgorithmId - } - return AlgorithmId_ALGORITHM_ID_UNSPECIFIED -} - -func (x *IDkgTranscript) GetDealers() []*NodeId { - if x != nil { - return x.Dealers - } - return nil -} - -func (x *IDkgTranscript) GetRawTranscript() []byte { - if x != nil { - return x.RawTranscript - } - return nil -} - -func (x *IDkgTranscript) GetReceivers() []*NodeId { - if x != nil { - return x.Receivers - } - return nil -} - -func (x *IDkgTranscript) GetRegistryVersion() uint64 { - if x != nil { - return x.RegistryVersion - } - return 0 -} - -func (x *IDkgTranscript) GetTranscriptId() *IDkgTranscriptId { - if x != nil { - return x.TranscriptId - } - return nil -} - -func (x *IDkgTranscript) GetTranscriptType() []byte { - if x != nil { - return x.TranscriptType - } - return nil -} - -func (x *IDkgTranscript) GetVerifiedDealings() []*VerifiedIDkgDealing { - if x != nil { - return x.VerifiedDealings - } - return nil -} - -func (*IDkgTranscript) ProtoMessage() {} - -func (x *IDkgTranscript) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *IDkgTranscript) Reset() { - *x = IDkgTranscript{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDkgTranscript) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgTranscriptId struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - SubnetId *SubnetId `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"` - SourceHeight uint64 `protobuf:"varint,3,opt,name=source_height,json=sourceHeight,proto3" json:"source_height,omitempty"` -} - -// Deprecated: Use IDkgTranscriptId.ProtoReflect.Descriptor instead. -func (*IDkgTranscriptId) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{10} -} - -func (x *IDkgTranscriptId) GetId() uint64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *IDkgTranscriptId) GetSourceHeight() uint64 { - if x != nil { - return x.SourceHeight - } - return 0 -} - -func (x *IDkgTranscriptId) GetSubnetId() *SubnetId { - if x != nil { - return x.SubnetId - } - return nil -} - -func (*IDkgTranscriptId) ProtoMessage() {} - -func (x *IDkgTranscriptId) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -func (x *IDkgTranscriptId) Reset() { - *x = IDkgTranscriptId{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IDkgTranscriptId) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type IDkgTranscriptOperation int32 - -const ( - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNSPECIFIED IDkgTranscriptOperation = 0 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM IDkgTranscriptOperation = 1 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_MASKED IDkgTranscriptOperation = 2 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RESHARE_OF_UNMASKED IDkgTranscriptOperation = 3 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_UNMASKED_TIMES_MASKED IDkgTranscriptOperation = 4 - IDkgTranscriptOperation_I_DKG_TRANSCRIPT_OPERATION_RANDOM_UNMASKED IDkgTranscriptOperation = 5 -) - -func (IDkgTranscriptOperation) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[3].Descriptor() -} - -func (x IDkgTranscriptOperation) Enum() *IDkgTranscriptOperation { - p := new(IDkgTranscriptOperation) - *p = x - return p +func (x IDkgTranscriptOperation) Enum() *IDkgTranscriptOperation { + p := new(IDkgTranscriptOperation) + *p = x + return p } // Deprecated: Use IDkgTranscriptOperation.Descriptor instead. @@ -3690,130 +3280,539 @@ func (x *SubnetRecord) ProtoReflect() protoreflect.Message { if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } - return ms - } - return mi.MessageOf(x) -} - -func (x *SubnetRecord) Reset() { - *x = SubnetRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SubnetRecord) String() string { - return protoimpl.X.MessageStringOf(x) -} - -// Represents the type of subnet. Subnets of different type might exhibit different -// behavior, e.g. being more restrictive in what operations are allowed or privileged -// compared to other subnet types. -type SubnetType int32 - -const ( - SubnetType_SUBNET_TYPE_UNSPECIFIED SubnetType = 0 - // A normal subnet where no restrictions are applied. - SubnetType_SUBNET_TYPE_APPLICATION SubnetType = 1 - // A more privileged subnet where certain restrictions are applied, - // like not charging for cycles or restricting who can create and - // install canisters on it. - SubnetType_SUBNET_TYPE_SYSTEM SubnetType = 2 - // A subnet type that is like application subnets but can have some - // additional features. - SubnetType_SUBNET_TYPE_VERIFIED_APPLICATION SubnetType = 4 -) - -func (SubnetType) Descriptor() protoreflect.EnumDescriptor { - return file_subnet_proto_enumTypes[4].Descriptor() -} - -func (x SubnetType) Enum() *SubnetType { - p := new(SubnetType) - *p = x - return p -} - -// Deprecated: Use SubnetType.Descriptor instead. -func (SubnetType) EnumDescriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{4} -} - -func (x SubnetType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -func (x SubnetType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SubnetType) Type() protoreflect.EnumType { - return &file_subnet_proto_enumTypes[4] -} - -type VerifiedIDkgDealing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DealerIndex uint32 `protobuf:"varint,1,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` - SignedDealingTuple *IDkgSignedDealingTuple `protobuf:"bytes,6,opt,name=signed_dealing_tuple,json=signedDealingTuple,proto3" json:"signed_dealing_tuple,omitempty"` - SupportTuples []*SignatureTuple `protobuf:"bytes,7,rep,name=support_tuples,json=supportTuples,proto3" json:"support_tuples,omitempty"` -} - -// Deprecated: Use VerifiedIDkgDealing.ProtoReflect.Descriptor instead. -func (*VerifiedIDkgDealing) Descriptor() ([]byte, []int) { - return file_subnet_proto_rawDescGZIP(), []int{11} -} - -func (x *VerifiedIDkgDealing) GetDealerIndex() uint32 { - if x != nil { - return x.DealerIndex - } - return 0 -} - -func (x *VerifiedIDkgDealing) GetSignedDealingTuple() *IDkgSignedDealingTuple { - if x != nil { - return x.SignedDealingTuple - } - return nil -} - -func (x *VerifiedIDkgDealing) GetSupportTuples() []*SignatureTuple { - if x != nil { - return x.SupportTuples - } - return nil -} -func (*VerifiedIDkgDealing) ProtoMessage() {} -func (x *VerifiedIDkgDealing) ProtoReflect() protoreflect.Message { - mi := &file_subnet_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) + return ms + } + return mi.MessageOf(x) +} + +func (x *SubnetRecord) Reset() { + *x = SubnetRecord{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SubnetRecord) String() string { + return protoimpl.X.MessageStringOf(x) +} + +// Represents the type of subnet. Subnets of different type might exhibit different +// behavior, e.g. being more restrictive in what operations are allowed or privileged +// compared to other subnet types. +type SubnetType int32 + +const ( + SubnetType_SUBNET_TYPE_UNSPECIFIED SubnetType = 0 + // A normal subnet where no restrictions are applied. + SubnetType_SUBNET_TYPE_APPLICATION SubnetType = 1 + // A more privileged subnet where certain restrictions are applied, + // like not charging for cycles or restricting who can create and + // install canisters on it. + SubnetType_SUBNET_TYPE_SYSTEM SubnetType = 2 + // A subnet type that is like application subnets but can have some + // additional features. + SubnetType_SUBNET_TYPE_VERIFIED_APPLICATION SubnetType = 4 +) + +func (SubnetType) Descriptor() protoreflect.EnumDescriptor { + return file_subnet_proto_enumTypes[4].Descriptor() +} + +func (x SubnetType) Enum() *SubnetType { + p := new(SubnetType) + *p = x + return p +} + +// Deprecated: Use SubnetType.Descriptor instead. +func (SubnetType) EnumDescriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{4} +} + +func (x SubnetType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +func (x SubnetType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SubnetType) Type() protoreflect.EnumType { + return &file_subnet_proto_enumTypes[4] +} + +type VerifiedIDkgDealing struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DealerIndex uint32 `protobuf:"varint,1,opt,name=dealer_index,json=dealerIndex,proto3" json:"dealer_index,omitempty"` + SignedDealingTuple *IDkgSignedDealingTuple `protobuf:"bytes,6,opt,name=signed_dealing_tuple,json=signedDealingTuple,proto3" json:"signed_dealing_tuple,omitempty"` + SupportTuples []*SignatureTuple `protobuf:"bytes,7,rep,name=support_tuples,json=supportTuples,proto3" json:"support_tuples,omitempty"` +} + +// Deprecated: Use VerifiedIDkgDealing.ProtoReflect.Descriptor instead. +func (*VerifiedIDkgDealing) Descriptor() ([]byte, []int) { + return file_subnet_proto_rawDescGZIP(), []int{11} +} + +func (x *VerifiedIDkgDealing) GetDealerIndex() uint32 { + if x != nil { + return x.DealerIndex + } + return 0 +} + +func (x *VerifiedIDkgDealing) GetSignedDealingTuple() *IDkgSignedDealingTuple { + if x != nil { + return x.SignedDealingTuple + } + return nil +} + +func (x *VerifiedIDkgDealing) GetSupportTuples() []*SignatureTuple { + if x != nil { + return x.SupportTuples + } + return nil +} + +func (*VerifiedIDkgDealing) ProtoMessage() {} + +func (x *VerifiedIDkgDealing) ProtoReflect() protoreflect.Message { + mi := &file_subnet_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} +func (x *VerifiedIDkgDealing) Reset() { + *x = VerifiedIDkgDealing{} + if protoimpl.UnsafeEnabled { + mi := &file_subnet_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} +func (x *VerifiedIDkgDealing) String() string { + return protoimpl.X.MessageStringOf(x) +} + +type isMasterPublicKeyId_KeyId interface { + isMasterPublicKeyId_KeyId() +} + +func init() { file_subnet_proto_init() } +func file_subnet_proto_init() { + if File_subnet_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_subnet_proto_msgTypes[0].Exporter = func(v any, i int) any { + switch v := v.(*SubnetRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[1].Exporter = func(v any, i int) any { + switch v := v.(*EcdsaKeyId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[2].Exporter = func(v any, i int) any { + switch v := v.(*EcdsaInitialization); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[3].Exporter = func(v any, i int) any { + switch v := v.(*CatchUpPackageContents); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[4].Exporter = func(v any, i int) any { + switch v := v.(*RegistryStoreUri); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[5].Exporter = func(v any, i int) any { + switch v := v.(*SubnetListRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[6].Exporter = func(v any, i int) any { + switch v := v.(*NiDkgId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[7].Exporter = func(v any, i int) any { + switch v := v.(*InitialNiDkgTranscriptRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[8].Exporter = func(v any, i int) any { + switch v := v.(*PrincipalId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[9].Exporter = func(v any, i int) any { + switch v := v.(*SubnetId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[10].Exporter = func(v any, i int) any { + switch v := v.(*IDkgTranscriptId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[11].Exporter = func(v any, i int) any { + switch v := v.(*VerifiedIDkgDealing); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[12].Exporter = func(v any, i int) any { + switch v := v.(*NodeId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[13].Exporter = func(v any, i int) any { + switch v := v.(*PublicKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[14].Exporter = func(v any, i int) any { + switch v := v.(*IDkgTranscript); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[15].Exporter = func(v any, i int) any { + switch v := v.(*DealerTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[16].Exporter = func(v any, i int) any { + switch v := v.(*SignatureTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[17].Exporter = func(v any, i int) any { + switch v := v.(*IDkgTranscriptParams); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[18].Exporter = func(v any, i int) any { + switch v := v.(*IDkgDealing); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[19].Exporter = func(v any, i int) any { + switch v := v.(*IDkgSignedDealingTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[20].Exporter = func(v any, i int) any { + switch v := v.(*InitialIDkgDealings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[21].Exporter = func(v any, i int) any { + switch v := v.(*IDkgComplaint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[22].Exporter = func(v any, i int) any { + switch v := v.(*IDkgOpening); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[23].Exporter = func(v any, i int) any { + switch v := v.(*ExtendedDerivationPath); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[24].Exporter = func(v any, i int) any { + switch v := v.(*GossipConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[25].Exporter = func(v any, i int) any { + switch v := v.(*SubnetFeatures); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[26].Exporter = func(v any, i int) any { + switch v := v.(*EcdsaConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[27].Exporter = func(v any, i int) any { + switch v := v.(*SchnorrKeyId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[28].Exporter = func(v any, i int) any { + switch v := v.(*MasterPublicKeyId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[29].Exporter = func(v any, i int) any { + switch v := v.(*KeyConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_subnet_proto_msgTypes[30].Exporter = func(v any, i int) any { + switch v := v.(*ChainKeyConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } } - return ms } - return mi.MessageOf(x) -} - -func (x *VerifiedIDkgDealing) Reset() { - *x = VerifiedIDkgDealing{} - if protoimpl.UnsafeEnabled { - mi := &file_subnet_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + file_subnet_proto_msgTypes[0].OneofWrappers = []any{} + file_subnet_proto_msgTypes[25].OneofWrappers = []any{} + file_subnet_proto_msgTypes[26].OneofWrappers = []any{} + file_subnet_proto_msgTypes[28].OneofWrappers = []any{ + (*MasterPublicKeyId_Ecdsa)(nil), + (*MasterPublicKeyId_Schnorr)(nil), } -} - -func (x *VerifiedIDkgDealing) String() string { - return protoimpl.X.MessageStringOf(x) -} - -type isMasterPublicKeyId_KeyId interface { - isMasterPublicKeyId_KeyId() + file_subnet_proto_msgTypes[29].OneofWrappers = []any{} + file_subnet_proto_msgTypes[30].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_subnet_proto_rawDesc, + NumEnums: 6, + NumMessages: 31, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_subnet_proto_goTypes, + DependencyIndexes: file_subnet_proto_depIdxs, + EnumInfos: file_subnet_proto_enumTypes, + MessageInfos: file_subnet_proto_msgTypes, + }.Build() + File_subnet_proto = out.File + file_subnet_proto_rawDesc = nil + file_subnet_proto_goTypes = nil + file_subnet_proto_depIdxs = nil } diff --git a/clients/registry/proto/v1/transport.pb.go b/clients/registry/proto/v1/transport.pb.go index 19f902a..899fb15 100644 --- a/clients/registry/proto/v1/transport.pb.go +++ b/clients/registry/proto/v1/transport.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.0 +// protoc v5.26.1 // source: transport.proto // Set of messages used to interact with the registry canister.