@nucypher/shared 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/contracts/agents/coordinator.d.ts +1 -1
- package/dist/cjs/contracts/agents/coordinator.js +2 -2
- package/dist/cjs/contracts/agents/coordinator.js.map +1 -1
- package/dist/cjs/contracts/ethers-typechain/Coordinator.d.ts +64 -28
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +137 -5
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js +179 -5
- package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -1
- package/dist/cjs/web3.d.ts +1 -1
- package/dist/cjs/web3.js +1 -1
- package/dist/cjs/web3.js.map +1 -1
- package/dist/es/contracts/agents/coordinator.d.ts +1 -1
- package/dist/es/contracts/agents/coordinator.js +2 -2
- package/dist/es/contracts/agents/coordinator.js.map +1 -1
- package/dist/es/contracts/ethers-typechain/Coordinator.d.ts +64 -28
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +137 -5
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js +179 -5
- package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -1
- package/dist/es/web3.d.ts +1 -1
- package/dist/es/web3.js +1 -1
- package/dist/es/web3.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -32,7 +32,7 @@ export declare enum DkgRitualState {
|
|
|
32
32
|
EXPIRED = 6
|
|
33
33
|
}
|
|
34
34
|
export declare class DkgCoordinatorAgent {
|
|
35
|
-
static getParticipants(provider: ethers.providers.Provider, domain: Domain, ritualId: number): Promise<DkgParticipant[]>;
|
|
35
|
+
static getParticipants(provider: ethers.providers.Provider, domain: Domain, ritualId: number, maxParticipants: number): Promise<DkgParticipant[]>;
|
|
36
36
|
static initializeRitual(provider: ethers.providers.Provider, signer: ethers.Signer, domain: Domain, providers: ChecksumAddress[], authority: string, duration: BigNumberish, accessController: string): Promise<number>;
|
|
37
37
|
static getRitual(provider: ethers.providers.Provider, domain: Domain, ritualId: number): Promise<CoordinatorRitual>;
|
|
38
38
|
static getRitualState(provider: ethers.providers.Provider, domain: Domain, ritualId: number): Promise<DkgRitualState>;
|
|
@@ -17,9 +17,9 @@ var DkgRitualState;
|
|
|
17
17
|
DkgRitualState[DkgRitualState["EXPIRED"] = 6] = "EXPIRED";
|
|
18
18
|
})(DkgRitualState || (exports.DkgRitualState = DkgRitualState = {}));
|
|
19
19
|
class DkgCoordinatorAgent {
|
|
20
|
-
static async getParticipants(provider, domain, ritualId) {
|
|
20
|
+
static async getParticipants(provider, domain, ritualId, maxParticipants) {
|
|
21
21
|
const coordinator = await this.connectReadOnly(provider, domain);
|
|
22
|
-
const participants = await coordinator
|
|
22
|
+
const participants = await coordinator['getParticipants(uint32,uint256,uint256,bool)'](ritualId, 0, maxParticipants, false);
|
|
23
23
|
return participants.map((participant) => {
|
|
24
24
|
return {
|
|
25
25
|
provider: participant.provider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.js","sourceRoot":"","sources":["../../../../src/contracts/agents/coordinator.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAC3D,2DAIiC;AAKjC,uCAA4C;AAC5C,oCAAwD;AACxD,0DAA2D;AAwB3D,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,qEAAa,CAAA;IACb,2FAAwB,CAAA;IACxB,6FAAyB,CAAA;IACzB,iEAAW,CAAA;IACX,iEAAW,CAAA;IACX,uDAAM,CAAA;IACN,yDAAO,CAAA;AACT,CAAC,EARW,cAAc,8BAAd,cAAc,QAQzB;AAED,MAAa,mBAAmB;IACvB,MAAM,CAAC,KAAK,CAAC,eAAe,CACjC,QAAmC,EACnC,MAAc,EACd,QAAgB;
|
|
1
|
+
{"version":3,"file":"coordinator.js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,MAAc,EACd,MAAsB;QAEtB,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC;QAC5C,MAAM,eAAe,GAAG,IAAA,gCAAW,EAAC,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;QAC5E,OAAO,uCAAoB,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,IAAI,QAAQ,CAAC,CAAC;IAC3E,CAAC;CACF;AApID,kDAoIC"}
|
|
@@ -51,11 +51,15 @@ export interface CoordinatorInterface extends utils.Interface {
|
|
|
51
51
|
'defaultAdmin()': FunctionFragment;
|
|
52
52
|
'defaultAdminDelay()': FunctionFragment;
|
|
53
53
|
'defaultAdminDelayIncreaseWait()': FunctionFragment;
|
|
54
|
+
'feeDeduction(uint256,uint256)': FunctionFragment;
|
|
54
55
|
'feeRatePerSecond()': FunctionFragment;
|
|
55
56
|
'getAuthority(uint32)': FunctionFragment;
|
|
57
|
+
'getParticipant(uint32,address,bool)': FunctionFragment;
|
|
56
58
|
'getParticipantFromProvider(uint32,address)': FunctionFragment;
|
|
57
59
|
'getParticipants(uint32)': FunctionFragment;
|
|
60
|
+
'getParticipants(uint32,uint256,uint256,bool)': FunctionFragment;
|
|
58
61
|
'getProviderPublicKey(address,uint256)': FunctionFragment;
|
|
62
|
+
'getProviders(uint32)': FunctionFragment;
|
|
59
63
|
'getPublicKeyFromRitualId(uint32)': FunctionFragment;
|
|
60
64
|
'getRitualIdFromPublicKey((bytes32,bytes16))': FunctionFragment;
|
|
61
65
|
'getRitualInitiationCost(address[],uint32)': FunctionFragment;
|
|
@@ -68,6 +72,7 @@ export interface CoordinatorInterface extends utils.Interface {
|
|
|
68
72
|
'initiateRitual(address[],address,uint32,address)': FunctionFragment;
|
|
69
73
|
'isEncryptionAuthorized(uint32,bytes,bytes)': FunctionFragment;
|
|
70
74
|
'isInitiationPublic()': FunctionFragment;
|
|
75
|
+
'isParticipant(uint32,address)': FunctionFragment;
|
|
71
76
|
'isProviderPublicKeySet(address)': FunctionFragment;
|
|
72
77
|
'isRitualActive(uint32)': FunctionFragment;
|
|
73
78
|
'makeInitiationPublic()': FunctionFragment;
|
|
@@ -94,7 +99,7 @@ export interface CoordinatorInterface extends utils.Interface {
|
|
|
94
99
|
'transferRitualAuthority(uint32,address)': FunctionFragment;
|
|
95
100
|
'withdrawTokens(address,uint256)': FunctionFragment;
|
|
96
101
|
};
|
|
97
|
-
getFunction(nameOrSignatureOrTopic: 'DEFAULT_ADMIN_ROLE' | 'INITIATOR_ROLE' | 'TREASURY_ROLE' | 'acceptDefaultAdminTransfer' | 'application' | 'beginDefaultAdminTransfer' | 'cancelDefaultAdminTransfer' | 'changeDefaultAdminDelay' | 'cohortFingerprint' | 'currency' | 'defaultAdmin' | 'defaultAdminDelay' | 'defaultAdminDelayIncreaseWait' | 'feeRatePerSecond' | 'getAuthority' | 'getParticipantFromProvider' | 'getParticipants' | 'getProviderPublicKey' | 'getPublicKeyFromRitualId' | 'getRitualIdFromPublicKey' | 'getRitualInitiationCost' | 'getRitualState' | 'getRoleAdmin' | 'getThresholdForRitualSize' | 'grantRole' | 'hasRole' | 'initialize' | 'initiateRitual' | 'isEncryptionAuthorized' | 'isInitiationPublic' | 'isProviderPublicKeySet' | 'isRitualActive' | 'makeInitiationPublic' | 'maxDkgSize' | 'numberOfRituals' | 'owner' | 'pendingDefaultAdmin' | 'pendingDefaultAdminDelay' | 'pendingFees' | 'postAggregation' | 'postTranscript' | 'processPendingFee' | 'renounceRole' | 'revokeRole' | 'rituals' | 'rollbackDefaultAdminDelay' | 'setMaxDkgSize' | 'setProviderPublicKey' | 'setReimbursementPool' | 'setTimeout' | 'supportsInterface' | 'timeout' | 'totalPendingFees' | 'transferRitualAuthority' | 'withdrawTokens'): FunctionFragment;
|
|
102
|
+
getFunction(nameOrSignatureOrTopic: 'DEFAULT_ADMIN_ROLE' | 'INITIATOR_ROLE' | 'TREASURY_ROLE' | 'acceptDefaultAdminTransfer' | 'application' | 'beginDefaultAdminTransfer' | 'cancelDefaultAdminTransfer' | 'changeDefaultAdminDelay' | 'cohortFingerprint' | 'currency' | 'defaultAdmin' | 'defaultAdminDelay' | 'defaultAdminDelayIncreaseWait' | 'feeDeduction' | 'feeRatePerSecond' | 'getAuthority' | 'getParticipant' | 'getParticipantFromProvider' | 'getParticipants(uint32)' | 'getParticipants(uint32,uint256,uint256,bool)' | 'getProviderPublicKey' | 'getProviders' | 'getPublicKeyFromRitualId' | 'getRitualIdFromPublicKey' | 'getRitualInitiationCost' | 'getRitualState' | 'getRoleAdmin' | 'getThresholdForRitualSize' | 'grantRole' | 'hasRole' | 'initialize' | 'initiateRitual' | 'isEncryptionAuthorized' | 'isInitiationPublic' | 'isParticipant' | 'isProviderPublicKeySet' | 'isRitualActive' | 'makeInitiationPublic' | 'maxDkgSize' | 'numberOfRituals' | 'owner' | 'pendingDefaultAdmin' | 'pendingDefaultAdminDelay' | 'pendingFees' | 'postAggregation' | 'postTranscript' | 'processPendingFee' | 'renounceRole' | 'revokeRole' | 'rituals' | 'rollbackDefaultAdminDelay' | 'setMaxDkgSize' | 'setProviderPublicKey' | 'setReimbursementPool' | 'setTimeout' | 'supportsInterface' | 'timeout' | 'totalPendingFees' | 'transferRitualAuthority' | 'withdrawTokens'): FunctionFragment;
|
|
98
103
|
encodeFunctionData(functionFragment: 'DEFAULT_ADMIN_ROLE', values?: undefined): string;
|
|
99
104
|
encodeFunctionData(functionFragment: 'INITIATOR_ROLE', values?: undefined): string;
|
|
100
105
|
encodeFunctionData(functionFragment: 'TREASURY_ROLE', values?: undefined): string;
|
|
@@ -108,11 +113,15 @@ export interface CoordinatorInterface extends utils.Interface {
|
|
|
108
113
|
encodeFunctionData(functionFragment: 'defaultAdmin', values?: undefined): string;
|
|
109
114
|
encodeFunctionData(functionFragment: 'defaultAdminDelay', values?: undefined): string;
|
|
110
115
|
encodeFunctionData(functionFragment: 'defaultAdminDelayIncreaseWait', values?: undefined): string;
|
|
116
|
+
encodeFunctionData(functionFragment: 'feeDeduction', values: [BigNumberish, BigNumberish]): string;
|
|
111
117
|
encodeFunctionData(functionFragment: 'feeRatePerSecond', values?: undefined): string;
|
|
112
118
|
encodeFunctionData(functionFragment: 'getAuthority', values: [BigNumberish]): string;
|
|
119
|
+
encodeFunctionData(functionFragment: 'getParticipant', values: [BigNumberish, string, boolean]): string;
|
|
113
120
|
encodeFunctionData(functionFragment: 'getParticipantFromProvider', values: [BigNumberish, string]): string;
|
|
114
|
-
encodeFunctionData(functionFragment: 'getParticipants', values: [BigNumberish]): string;
|
|
121
|
+
encodeFunctionData(functionFragment: 'getParticipants(uint32)', values: [BigNumberish]): string;
|
|
122
|
+
encodeFunctionData(functionFragment: 'getParticipants(uint32,uint256,uint256,bool)', values: [BigNumberish, BigNumberish, BigNumberish, boolean]): string;
|
|
115
123
|
encodeFunctionData(functionFragment: 'getProviderPublicKey', values: [string, BigNumberish]): string;
|
|
124
|
+
encodeFunctionData(functionFragment: 'getProviders', values: [BigNumberish]): string;
|
|
116
125
|
encodeFunctionData(functionFragment: 'getPublicKeyFromRitualId', values: [BigNumberish]): string;
|
|
117
126
|
encodeFunctionData(functionFragment: 'getRitualIdFromPublicKey', values: [BLS12381.G1PointStruct]): string;
|
|
118
127
|
encodeFunctionData(functionFragment: 'getRitualInitiationCost', values: [string[], BigNumberish]): string;
|
|
@@ -125,6 +134,7 @@ export interface CoordinatorInterface extends utils.Interface {
|
|
|
125
134
|
encodeFunctionData(functionFragment: 'initiateRitual', values: [string[], string, BigNumberish, string]): string;
|
|
126
135
|
encodeFunctionData(functionFragment: 'isEncryptionAuthorized', values: [BigNumberish, BytesLike, BytesLike]): string;
|
|
127
136
|
encodeFunctionData(functionFragment: 'isInitiationPublic', values?: undefined): string;
|
|
137
|
+
encodeFunctionData(functionFragment: 'isParticipant', values: [BigNumberish, string]): string;
|
|
128
138
|
encodeFunctionData(functionFragment: 'isProviderPublicKeySet', values: [string]): string;
|
|
129
139
|
encodeFunctionData(functionFragment: 'isRitualActive', values: [BigNumberish]): string;
|
|
130
140
|
encodeFunctionData(functionFragment: 'makeInitiationPublic', values?: undefined): string;
|
|
@@ -163,11 +173,15 @@ export interface CoordinatorInterface extends utils.Interface {
|
|
|
163
173
|
decodeFunctionResult(functionFragment: 'defaultAdmin', data: BytesLike): Result;
|
|
164
174
|
decodeFunctionResult(functionFragment: 'defaultAdminDelay', data: BytesLike): Result;
|
|
165
175
|
decodeFunctionResult(functionFragment: 'defaultAdminDelayIncreaseWait', data: BytesLike): Result;
|
|
176
|
+
decodeFunctionResult(functionFragment: 'feeDeduction', data: BytesLike): Result;
|
|
166
177
|
decodeFunctionResult(functionFragment: 'feeRatePerSecond', data: BytesLike): Result;
|
|
167
178
|
decodeFunctionResult(functionFragment: 'getAuthority', data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(functionFragment: 'getParticipant', data: BytesLike): Result;
|
|
168
180
|
decodeFunctionResult(functionFragment: 'getParticipantFromProvider', data: BytesLike): Result;
|
|
169
|
-
decodeFunctionResult(functionFragment: 'getParticipants', data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: 'getParticipants(uint32)', data: BytesLike): Result;
|
|
182
|
+
decodeFunctionResult(functionFragment: 'getParticipants(uint32,uint256,uint256,bool)', data: BytesLike): Result;
|
|
170
183
|
decodeFunctionResult(functionFragment: 'getProviderPublicKey', data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: 'getProviders', data: BytesLike): Result;
|
|
171
185
|
decodeFunctionResult(functionFragment: 'getPublicKeyFromRitualId', data: BytesLike): Result;
|
|
172
186
|
decodeFunctionResult(functionFragment: 'getRitualIdFromPublicKey', data: BytesLike): Result;
|
|
173
187
|
decodeFunctionResult(functionFragment: 'getRitualInitiationCost', data: BytesLike): Result;
|
|
@@ -180,6 +194,7 @@ export interface CoordinatorInterface extends utils.Interface {
|
|
|
180
194
|
decodeFunctionResult(functionFragment: 'initiateRitual', data: BytesLike): Result;
|
|
181
195
|
decodeFunctionResult(functionFragment: 'isEncryptionAuthorized', data: BytesLike): Result;
|
|
182
196
|
decodeFunctionResult(functionFragment: 'isInitiationPublic', data: BytesLike): Result;
|
|
197
|
+
decodeFunctionResult(functionFragment: 'isParticipant', data: BytesLike): Result;
|
|
183
198
|
decodeFunctionResult(functionFragment: 'isProviderPublicKeySet', data: BytesLike): Result;
|
|
184
199
|
decodeFunctionResult(functionFragment: 'isRitualActive', data: BytesLike): Result;
|
|
185
200
|
decodeFunctionResult(functionFragment: 'makeInitiationPublic', data: BytesLike): Result;
|
|
@@ -442,16 +457,16 @@ export interface Coordinator extends BaseContract {
|
|
|
442
457
|
defaultAdmin(overrides?: CallOverrides): Promise<[string]>;
|
|
443
458
|
defaultAdminDelay(overrides?: CallOverrides): Promise<[number]>;
|
|
444
459
|
defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise<[number]>;
|
|
460
|
+
feeDeduction(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
445
461
|
feeRatePerSecond(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
446
462
|
getAuthority(ritualId: BigNumberish, overrides?: CallOverrides): Promise<[string]>;
|
|
463
|
+
getParticipant(ritualId: BigNumberish, provider: string, transcript: boolean, overrides?: CallOverrides): Promise<[Coordinator.ParticipantStructOutput]>;
|
|
447
464
|
getParticipantFromProvider(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<[Coordinator.ParticipantStructOutput]>;
|
|
448
|
-
getParticipants(ritualId: BigNumberish, overrides?: CallOverrides): Promise<[Coordinator.ParticipantStructOutput[]]>;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
dkgPublicKey: BLS12381.G1PointStructOutput;
|
|
454
|
-
}>;
|
|
465
|
+
'getParticipants(uint32)'(ritualId: BigNumberish, overrides?: CallOverrides): Promise<[Coordinator.ParticipantStructOutput[]]>;
|
|
466
|
+
'getParticipants(uint32,uint256,uint256,bool)'(ritualId: BigNumberish, startIndex: BigNumberish, maxParticipants: BigNumberish, includeTranscript: boolean, overrides?: CallOverrides): Promise<[Coordinator.ParticipantStructOutput[]]>;
|
|
467
|
+
getProviderPublicKey(provider: string, ritualId: BigNumberish, overrides?: CallOverrides): Promise<[BLS12381.G2PointStructOutput]>;
|
|
468
|
+
getProviders(ritualId: BigNumberish, overrides?: CallOverrides): Promise<[string[]]>;
|
|
469
|
+
getPublicKeyFromRitualId(ritualId: BigNumberish, overrides?: CallOverrides): Promise<[BLS12381.G1PointStructOutput]>;
|
|
455
470
|
getRitualIdFromPublicKey(dkgPublicKey: BLS12381.G1PointStruct, overrides?: CallOverrides): Promise<[number] & {
|
|
456
471
|
ritualId: number;
|
|
457
472
|
}>;
|
|
@@ -471,7 +486,8 @@ export interface Coordinator extends BaseContract {
|
|
|
471
486
|
}): Promise<ContractTransaction>;
|
|
472
487
|
isEncryptionAuthorized(ritualId: BigNumberish, evidence: BytesLike, ciphertextHeader: BytesLike, overrides?: CallOverrides): Promise<[boolean]>;
|
|
473
488
|
isInitiationPublic(overrides?: CallOverrides): Promise<[boolean]>;
|
|
474
|
-
|
|
489
|
+
isParticipant(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<[boolean]>;
|
|
490
|
+
isProviderPublicKeySet(provider: string, overrides?: CallOverrides): Promise<[boolean]>;
|
|
475
491
|
isRitualActive(ritualId: BigNumberish, overrides?: CallOverrides): Promise<[boolean]>;
|
|
476
492
|
makeInitiationPublic(overrides?: Overrides & {
|
|
477
493
|
from?: string;
|
|
@@ -536,7 +552,7 @@ export interface Coordinator extends BaseContract {
|
|
|
536
552
|
setMaxDkgSize(newSize: BigNumberish, overrides?: Overrides & {
|
|
537
553
|
from?: string;
|
|
538
554
|
}): Promise<ContractTransaction>;
|
|
539
|
-
setProviderPublicKey(
|
|
555
|
+
setProviderPublicKey(publicKey: BLS12381.G2PointStruct, overrides?: Overrides & {
|
|
540
556
|
from?: string;
|
|
541
557
|
}): Promise<ContractTransaction>;
|
|
542
558
|
setReimbursementPool(pool: string, overrides?: Overrides & {
|
|
@@ -576,11 +592,15 @@ export interface Coordinator extends BaseContract {
|
|
|
576
592
|
defaultAdmin(overrides?: CallOverrides): Promise<string>;
|
|
577
593
|
defaultAdminDelay(overrides?: CallOverrides): Promise<number>;
|
|
578
594
|
defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise<number>;
|
|
595
|
+
feeDeduction(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
579
596
|
feeRatePerSecond(overrides?: CallOverrides): Promise<BigNumber>;
|
|
580
597
|
getAuthority(ritualId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
598
|
+
getParticipant(ritualId: BigNumberish, provider: string, transcript: boolean, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput>;
|
|
581
599
|
getParticipantFromProvider(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput>;
|
|
582
|
-
getParticipants(ritualId: BigNumberish, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput[]>;
|
|
583
|
-
|
|
600
|
+
'getParticipants(uint32)'(ritualId: BigNumberish, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput[]>;
|
|
601
|
+
'getParticipants(uint32,uint256,uint256,bool)'(ritualId: BigNumberish, startIndex: BigNumberish, maxParticipants: BigNumberish, includeTranscript: boolean, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput[]>;
|
|
602
|
+
getProviderPublicKey(provider: string, ritualId: BigNumberish, overrides?: CallOverrides): Promise<BLS12381.G2PointStructOutput>;
|
|
603
|
+
getProviders(ritualId: BigNumberish, overrides?: CallOverrides): Promise<string[]>;
|
|
584
604
|
getPublicKeyFromRitualId(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BLS12381.G1PointStructOutput>;
|
|
585
605
|
getRitualIdFromPublicKey(dkgPublicKey: BLS12381.G1PointStruct, overrides?: CallOverrides): Promise<number>;
|
|
586
606
|
getRitualInitiationCost(providers: string[], duration: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -599,7 +619,8 @@ export interface Coordinator extends BaseContract {
|
|
|
599
619
|
}): Promise<ContractTransaction>;
|
|
600
620
|
isEncryptionAuthorized(ritualId: BigNumberish, evidence: BytesLike, ciphertextHeader: BytesLike, overrides?: CallOverrides): Promise<boolean>;
|
|
601
621
|
isInitiationPublic(overrides?: CallOverrides): Promise<boolean>;
|
|
602
|
-
|
|
622
|
+
isParticipant(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<boolean>;
|
|
623
|
+
isProviderPublicKeySet(provider: string, overrides?: CallOverrides): Promise<boolean>;
|
|
603
624
|
isRitualActive(ritualId: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
|
604
625
|
makeInitiationPublic(overrides?: Overrides & {
|
|
605
626
|
from?: string;
|
|
@@ -664,7 +685,7 @@ export interface Coordinator extends BaseContract {
|
|
|
664
685
|
setMaxDkgSize(newSize: BigNumberish, overrides?: Overrides & {
|
|
665
686
|
from?: string;
|
|
666
687
|
}): Promise<ContractTransaction>;
|
|
667
|
-
setProviderPublicKey(
|
|
688
|
+
setProviderPublicKey(publicKey: BLS12381.G2PointStruct, overrides?: Overrides & {
|
|
668
689
|
from?: string;
|
|
669
690
|
}): Promise<ContractTransaction>;
|
|
670
691
|
setReimbursementPool(pool: string, overrides?: Overrides & {
|
|
@@ -696,11 +717,15 @@ export interface Coordinator extends BaseContract {
|
|
|
696
717
|
defaultAdmin(overrides?: CallOverrides): Promise<string>;
|
|
697
718
|
defaultAdminDelay(overrides?: CallOverrides): Promise<number>;
|
|
698
719
|
defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise<number>;
|
|
720
|
+
feeDeduction(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
699
721
|
feeRatePerSecond(overrides?: CallOverrides): Promise<BigNumber>;
|
|
700
722
|
getAuthority(ritualId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
723
|
+
getParticipant(ritualId: BigNumberish, provider: string, transcript: boolean, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput>;
|
|
701
724
|
getParticipantFromProvider(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput>;
|
|
702
|
-
getParticipants(ritualId: BigNumberish, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput[]>;
|
|
703
|
-
|
|
725
|
+
'getParticipants(uint32)'(ritualId: BigNumberish, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput[]>;
|
|
726
|
+
'getParticipants(uint32,uint256,uint256,bool)'(ritualId: BigNumberish, startIndex: BigNumberish, maxParticipants: BigNumberish, includeTranscript: boolean, overrides?: CallOverrides): Promise<Coordinator.ParticipantStructOutput[]>;
|
|
727
|
+
getProviderPublicKey(provider: string, ritualId: BigNumberish, overrides?: CallOverrides): Promise<BLS12381.G2PointStructOutput>;
|
|
728
|
+
getProviders(ritualId: BigNumberish, overrides?: CallOverrides): Promise<string[]>;
|
|
704
729
|
getPublicKeyFromRitualId(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BLS12381.G1PointStructOutput>;
|
|
705
730
|
getRitualIdFromPublicKey(dkgPublicKey: BLS12381.G1PointStruct, overrides?: CallOverrides): Promise<number>;
|
|
706
731
|
getRitualInitiationCost(providers: string[], duration: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -713,7 +738,8 @@ export interface Coordinator extends BaseContract {
|
|
|
713
738
|
initiateRitual(providers: string[], authority: string, duration: BigNumberish, accessController: string, overrides?: CallOverrides): Promise<number>;
|
|
714
739
|
isEncryptionAuthorized(ritualId: BigNumberish, evidence: BytesLike, ciphertextHeader: BytesLike, overrides?: CallOverrides): Promise<boolean>;
|
|
715
740
|
isInitiationPublic(overrides?: CallOverrides): Promise<boolean>;
|
|
716
|
-
|
|
741
|
+
isParticipant(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<boolean>;
|
|
742
|
+
isProviderPublicKeySet(provider: string, overrides?: CallOverrides): Promise<boolean>;
|
|
717
743
|
isRitualActive(ritualId: BigNumberish, overrides?: CallOverrides): Promise<boolean>;
|
|
718
744
|
makeInitiationPublic(overrides?: CallOverrides): Promise<void>;
|
|
719
745
|
maxDkgSize(overrides?: CallOverrides): Promise<number>;
|
|
@@ -762,7 +788,7 @@ export interface Coordinator extends BaseContract {
|
|
|
762
788
|
}>;
|
|
763
789
|
rollbackDefaultAdminDelay(overrides?: CallOverrides): Promise<void>;
|
|
764
790
|
setMaxDkgSize(newSize: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
765
|
-
setProviderPublicKey(
|
|
791
|
+
setProviderPublicKey(publicKey: BLS12381.G2PointStruct, overrides?: CallOverrides): Promise<void>;
|
|
766
792
|
setReimbursementPool(pool: string, overrides?: CallOverrides): Promise<void>;
|
|
767
793
|
setTimeout(newTimeout: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
768
794
|
supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<boolean>;
|
|
@@ -831,11 +857,15 @@ export interface Coordinator extends BaseContract {
|
|
|
831
857
|
defaultAdmin(overrides?: CallOverrides): Promise<BigNumber>;
|
|
832
858
|
defaultAdminDelay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
833
859
|
defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise<BigNumber>;
|
|
860
|
+
feeDeduction(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
834
861
|
feeRatePerSecond(overrides?: CallOverrides): Promise<BigNumber>;
|
|
835
862
|
getAuthority(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
863
|
+
getParticipant(ritualId: BigNumberish, provider: string, transcript: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
836
864
|
getParticipantFromProvider(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
837
|
-
getParticipants(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
838
|
-
|
|
865
|
+
'getParticipants(uint32)'(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
866
|
+
'getParticipants(uint32,uint256,uint256,bool)'(ritualId: BigNumberish, startIndex: BigNumberish, maxParticipants: BigNumberish, includeTranscript: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
867
|
+
getProviderPublicKey(provider: string, ritualId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
868
|
+
getProviders(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
839
869
|
getPublicKeyFromRitualId(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
840
870
|
getRitualIdFromPublicKey(dkgPublicKey: BLS12381.G1PointStruct, overrides?: CallOverrides): Promise<BigNumber>;
|
|
841
871
|
getRitualInitiationCost(providers: string[], duration: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
@@ -854,7 +884,8 @@ export interface Coordinator extends BaseContract {
|
|
|
854
884
|
}): Promise<BigNumber>;
|
|
855
885
|
isEncryptionAuthorized(ritualId: BigNumberish, evidence: BytesLike, ciphertextHeader: BytesLike, overrides?: CallOverrides): Promise<BigNumber>;
|
|
856
886
|
isInitiationPublic(overrides?: CallOverrides): Promise<BigNumber>;
|
|
857
|
-
|
|
887
|
+
isParticipant(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
888
|
+
isProviderPublicKeySet(provider: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
858
889
|
isRitualActive(ritualId: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
|
|
859
890
|
makeInitiationPublic(overrides?: Overrides & {
|
|
860
891
|
from?: string;
|
|
@@ -887,7 +918,7 @@ export interface Coordinator extends BaseContract {
|
|
|
887
918
|
setMaxDkgSize(newSize: BigNumberish, overrides?: Overrides & {
|
|
888
919
|
from?: string;
|
|
889
920
|
}): Promise<BigNumber>;
|
|
890
|
-
setProviderPublicKey(
|
|
921
|
+
setProviderPublicKey(publicKey: BLS12381.G2PointStruct, overrides?: Overrides & {
|
|
891
922
|
from?: string;
|
|
892
923
|
}): Promise<BigNumber>;
|
|
893
924
|
setReimbursementPool(pool: string, overrides?: Overrides & {
|
|
@@ -928,11 +959,15 @@ export interface Coordinator extends BaseContract {
|
|
|
928
959
|
defaultAdmin(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
929
960
|
defaultAdminDelay(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
930
961
|
defaultAdminDelayIncreaseWait(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
962
|
+
feeDeduction(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
931
963
|
feeRatePerSecond(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
932
964
|
getAuthority(ritualId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
965
|
+
getParticipant(ritualId: BigNumberish, provider: string, transcript: boolean, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
933
966
|
getParticipantFromProvider(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
934
|
-
getParticipants(ritualId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
935
|
-
|
|
967
|
+
'getParticipants(uint32)'(ritualId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
968
|
+
'getParticipants(uint32,uint256,uint256,bool)'(ritualId: BigNumberish, startIndex: BigNumberish, maxParticipants: BigNumberish, includeTranscript: boolean, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
969
|
+
getProviderPublicKey(provider: string, ritualId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
970
|
+
getProviders(ritualId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
936
971
|
getPublicKeyFromRitualId(ritualId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
937
972
|
getRitualIdFromPublicKey(dkgPublicKey: BLS12381.G1PointStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
938
973
|
getRitualInitiationCost(providers: string[], duration: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
@@ -951,7 +986,8 @@ export interface Coordinator extends BaseContract {
|
|
|
951
986
|
}): Promise<PopulatedTransaction>;
|
|
952
987
|
isEncryptionAuthorized(ritualId: BigNumberish, evidence: BytesLike, ciphertextHeader: BytesLike, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
953
988
|
isInitiationPublic(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
954
|
-
|
|
989
|
+
isParticipant(ritualId: BigNumberish, provider: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
990
|
+
isProviderPublicKeySet(provider: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
955
991
|
isRitualActive(ritualId: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
956
992
|
makeInitiationPublic(overrides?: Overrides & {
|
|
957
993
|
from?: string;
|
|
@@ -984,7 +1020,7 @@ export interface Coordinator extends BaseContract {
|
|
|
984
1020
|
setMaxDkgSize(newSize: BigNumberish, overrides?: Overrides & {
|
|
985
1021
|
from?: string;
|
|
986
1022
|
}): Promise<PopulatedTransaction>;
|
|
987
|
-
setProviderPublicKey(
|
|
1023
|
+
setProviderPublicKey(publicKey: BLS12381.G2PointStruct, overrides?: Overrides & {
|
|
988
1024
|
from?: string;
|
|
989
1025
|
}): Promise<PopulatedTransaction>;
|
|
990
1026
|
setReimbursementPool(pool: string, overrides?: Overrides & {
|
|
@@ -516,6 +516,24 @@ export declare class Coordinator__factory {
|
|
|
516
516
|
readonly type: "uint48";
|
|
517
517
|
readonly internalType: "uint48";
|
|
518
518
|
}];
|
|
519
|
+
}, {
|
|
520
|
+
readonly type: "function";
|
|
521
|
+
readonly name: "feeDeduction";
|
|
522
|
+
readonly stateMutability: "pure";
|
|
523
|
+
readonly inputs: readonly [{
|
|
524
|
+
readonly name: "";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
readonly internalType: "uint256";
|
|
527
|
+
}, {
|
|
528
|
+
readonly name: "";
|
|
529
|
+
readonly type: "uint256";
|
|
530
|
+
readonly internalType: "uint256";
|
|
531
|
+
}];
|
|
532
|
+
readonly outputs: readonly [{
|
|
533
|
+
readonly name: "";
|
|
534
|
+
readonly type: "uint256";
|
|
535
|
+
readonly internalType: "uint256";
|
|
536
|
+
}];
|
|
519
537
|
}, {
|
|
520
538
|
readonly type: "function";
|
|
521
539
|
readonly name: "feeRatePerSecond";
|
|
@@ -540,6 +558,45 @@ export declare class Coordinator__factory {
|
|
|
540
558
|
readonly type: "address";
|
|
541
559
|
readonly internalType: "address";
|
|
542
560
|
}];
|
|
561
|
+
}, {
|
|
562
|
+
readonly type: "function";
|
|
563
|
+
readonly name: "getParticipant";
|
|
564
|
+
readonly stateMutability: "view";
|
|
565
|
+
readonly inputs: readonly [{
|
|
566
|
+
readonly name: "ritualId";
|
|
567
|
+
readonly type: "uint32";
|
|
568
|
+
readonly internalType: "uint32";
|
|
569
|
+
}, {
|
|
570
|
+
readonly name: "provider";
|
|
571
|
+
readonly type: "address";
|
|
572
|
+
readonly internalType: "address";
|
|
573
|
+
}, {
|
|
574
|
+
readonly name: "transcript";
|
|
575
|
+
readonly type: "bool";
|
|
576
|
+
readonly internalType: "bool";
|
|
577
|
+
}];
|
|
578
|
+
readonly outputs: readonly [{
|
|
579
|
+
readonly name: "";
|
|
580
|
+
readonly type: "tuple";
|
|
581
|
+
readonly components: readonly [{
|
|
582
|
+
readonly name: "provider";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
readonly internalType: "address";
|
|
585
|
+
}, {
|
|
586
|
+
readonly name: "aggregated";
|
|
587
|
+
readonly type: "bool";
|
|
588
|
+
readonly internalType: "bool";
|
|
589
|
+
}, {
|
|
590
|
+
readonly name: "transcript";
|
|
591
|
+
readonly type: "bytes";
|
|
592
|
+
readonly internalType: "bytes";
|
|
593
|
+
}, {
|
|
594
|
+
readonly name: "decryptionRequestStaticKey";
|
|
595
|
+
readonly type: "bytes";
|
|
596
|
+
readonly internalType: "bytes";
|
|
597
|
+
}];
|
|
598
|
+
readonly internalType: "struct Coordinator.Participant";
|
|
599
|
+
}];
|
|
543
600
|
}, {
|
|
544
601
|
readonly type: "function";
|
|
545
602
|
readonly name: "getParticipantFromProvider";
|
|
@@ -606,16 +663,59 @@ export declare class Coordinator__factory {
|
|
|
606
663
|
}];
|
|
607
664
|
readonly internalType: "struct Coordinator.Participant[]";
|
|
608
665
|
}];
|
|
666
|
+
}, {
|
|
667
|
+
readonly type: "function";
|
|
668
|
+
readonly name: "getParticipants";
|
|
669
|
+
readonly stateMutability: "view";
|
|
670
|
+
readonly inputs: readonly [{
|
|
671
|
+
readonly name: "ritualId";
|
|
672
|
+
readonly type: "uint32";
|
|
673
|
+
readonly internalType: "uint32";
|
|
674
|
+
}, {
|
|
675
|
+
readonly name: "startIndex";
|
|
676
|
+
readonly type: "uint256";
|
|
677
|
+
readonly internalType: "uint256";
|
|
678
|
+
}, {
|
|
679
|
+
readonly name: "maxParticipants";
|
|
680
|
+
readonly type: "uint256";
|
|
681
|
+
readonly internalType: "uint256";
|
|
682
|
+
}, {
|
|
683
|
+
readonly name: "includeTranscript";
|
|
684
|
+
readonly type: "bool";
|
|
685
|
+
readonly internalType: "bool";
|
|
686
|
+
}];
|
|
687
|
+
readonly outputs: readonly [{
|
|
688
|
+
readonly name: "";
|
|
689
|
+
readonly type: "tuple[]";
|
|
690
|
+
readonly components: readonly [{
|
|
691
|
+
readonly name: "provider";
|
|
692
|
+
readonly type: "address";
|
|
693
|
+
readonly internalType: "address";
|
|
694
|
+
}, {
|
|
695
|
+
readonly name: "aggregated";
|
|
696
|
+
readonly type: "bool";
|
|
697
|
+
readonly internalType: "bool";
|
|
698
|
+
}, {
|
|
699
|
+
readonly name: "transcript";
|
|
700
|
+
readonly type: "bytes";
|
|
701
|
+
readonly internalType: "bytes";
|
|
702
|
+
}, {
|
|
703
|
+
readonly name: "decryptionRequestStaticKey";
|
|
704
|
+
readonly type: "bytes";
|
|
705
|
+
readonly internalType: "bytes";
|
|
706
|
+
}];
|
|
707
|
+
readonly internalType: "struct Coordinator.Participant[]";
|
|
708
|
+
}];
|
|
609
709
|
}, {
|
|
610
710
|
readonly type: "function";
|
|
611
711
|
readonly name: "getProviderPublicKey";
|
|
612
712
|
readonly stateMutability: "view";
|
|
613
713
|
readonly inputs: readonly [{
|
|
614
|
-
readonly name: "
|
|
714
|
+
readonly name: "provider";
|
|
615
715
|
readonly type: "address";
|
|
616
716
|
readonly internalType: "address";
|
|
617
717
|
}, {
|
|
618
|
-
readonly name: "
|
|
718
|
+
readonly name: "ritualId";
|
|
619
719
|
readonly type: "uint256";
|
|
620
720
|
readonly internalType: "uint256";
|
|
621
721
|
}];
|
|
@@ -637,6 +737,20 @@ export declare class Coordinator__factory {
|
|
|
637
737
|
}];
|
|
638
738
|
readonly internalType: "struct BLS12381.G2Point";
|
|
639
739
|
}];
|
|
740
|
+
}, {
|
|
741
|
+
readonly type: "function";
|
|
742
|
+
readonly name: "getProviders";
|
|
743
|
+
readonly stateMutability: "view";
|
|
744
|
+
readonly inputs: readonly [{
|
|
745
|
+
readonly name: "ritualId";
|
|
746
|
+
readonly type: "uint32";
|
|
747
|
+
readonly internalType: "uint32";
|
|
748
|
+
}];
|
|
749
|
+
readonly outputs: readonly [{
|
|
750
|
+
readonly name: "";
|
|
751
|
+
readonly type: "address[]";
|
|
752
|
+
readonly internalType: "address[]";
|
|
753
|
+
}];
|
|
640
754
|
}, {
|
|
641
755
|
readonly type: "function";
|
|
642
756
|
readonly name: "getPublicKeyFromRitualId";
|
|
@@ -647,7 +761,7 @@ export declare class Coordinator__factory {
|
|
|
647
761
|
readonly internalType: "uint32";
|
|
648
762
|
}];
|
|
649
763
|
readonly outputs: readonly [{
|
|
650
|
-
readonly name: "
|
|
764
|
+
readonly name: "";
|
|
651
765
|
readonly type: "tuple";
|
|
652
766
|
readonly components: readonly [{
|
|
653
767
|
readonly name: "word0";
|
|
@@ -851,12 +965,30 @@ export declare class Coordinator__factory {
|
|
|
851
965
|
readonly type: "bool";
|
|
852
966
|
readonly internalType: "bool";
|
|
853
967
|
}];
|
|
968
|
+
}, {
|
|
969
|
+
readonly type: "function";
|
|
970
|
+
readonly name: "isParticipant";
|
|
971
|
+
readonly stateMutability: "view";
|
|
972
|
+
readonly inputs: readonly [{
|
|
973
|
+
readonly name: "ritualId";
|
|
974
|
+
readonly type: "uint32";
|
|
975
|
+
readonly internalType: "uint32";
|
|
976
|
+
}, {
|
|
977
|
+
readonly name: "provider";
|
|
978
|
+
readonly type: "address";
|
|
979
|
+
readonly internalType: "address";
|
|
980
|
+
}];
|
|
981
|
+
readonly outputs: readonly [{
|
|
982
|
+
readonly name: "";
|
|
983
|
+
readonly type: "bool";
|
|
984
|
+
readonly internalType: "bool";
|
|
985
|
+
}];
|
|
854
986
|
}, {
|
|
855
987
|
readonly type: "function";
|
|
856
988
|
readonly name: "isProviderPublicKeySet";
|
|
857
989
|
readonly stateMutability: "view";
|
|
858
990
|
readonly inputs: readonly [{
|
|
859
|
-
readonly name: "
|
|
991
|
+
readonly name: "provider";
|
|
860
992
|
readonly type: "address";
|
|
861
993
|
readonly internalType: "address";
|
|
862
994
|
}];
|
|
@@ -1132,7 +1264,7 @@ export declare class Coordinator__factory {
|
|
|
1132
1264
|
readonly name: "setProviderPublicKey";
|
|
1133
1265
|
readonly stateMutability: "nonpayable";
|
|
1134
1266
|
readonly inputs: readonly [{
|
|
1135
|
-
readonly name: "
|
|
1267
|
+
readonly name: "publicKey";
|
|
1136
1268
|
readonly type: "tuple";
|
|
1137
1269
|
readonly components: readonly [{
|
|
1138
1270
|
readonly name: "word0";
|