@provablehq/sdk 0.7.2 → 0.7.3
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/README.md +3 -3
- package/package.json +2 -2
- package/dist/mainnet/account.d.ts +0 -137
- package/dist/mainnet/browser.d.ts +0 -26
- package/dist/mainnet/browser.js +0 -934
- package/dist/mainnet/browser.js.map +0 -1
- package/dist/mainnet/constants.d.ts +0 -34
- package/dist/mainnet/function-key-provider.d.ts +0 -349
- package/dist/mainnet/managed-worker.d.ts +0 -3
- package/dist/mainnet/models/blockJSON.d.ts +0 -21
- package/dist/mainnet/models/confirmed_transaction.d.ts +0 -6
- package/dist/mainnet/models/deploy.d.ts +0 -5
- package/dist/mainnet/models/executionJSON.d.ts +0 -5
- package/dist/mainnet/models/functionObject.d.ts +0 -7
- package/dist/mainnet/models/input/inputJSON.d.ts +0 -13
- package/dist/mainnet/models/input/inputObject.d.ts +0 -15
- package/dist/mainnet/models/output/outputJSON.d.ts +0 -6
- package/dist/mainnet/models/output/outputObject.d.ts +0 -17
- package/dist/mainnet/models/plaintext/array.d.ts +0 -3
- package/dist/mainnet/models/plaintext/literal.d.ts +0 -1
- package/dist/mainnet/models/plaintext/plaintext.d.ts +0 -4
- package/dist/mainnet/models/plaintext/struct.d.ts +0 -5
- package/dist/mainnet/models/transaction/transactionJSON.d.ts +0 -6
- package/dist/mainnet/models/transaction/transactionSummary.d.ts +0 -11
- package/dist/mainnet/models/transition/transitionJSON.d.ts +0 -13
- package/dist/mainnet/models/transition/transitionObject.d.ts +0 -15
- package/dist/mainnet/network-client.d.ts +0 -359
- package/dist/mainnet/node-polyfill.d.ts +0 -5
- package/dist/mainnet/node-polyfill.js +0 -304
- package/dist/mainnet/node-polyfill.js.map +0 -1
- package/dist/mainnet/node.d.ts +0 -2
- package/dist/mainnet/node.js +0 -13
- package/dist/mainnet/node.js.map +0 -1
- package/dist/mainnet/offline-key-provider.d.ts +0 -348
- package/dist/mainnet/polyfill/crypto.d.ts +0 -1
- package/dist/mainnet/polyfill/fetch.d.ts +0 -1
- package/dist/mainnet/polyfill/shared.d.ts +0 -1
- package/dist/mainnet/polyfill/worker.d.ts +0 -1
- package/dist/mainnet/polyfill/xmlhttprequest.d.ts +0 -1
- package/dist/mainnet/program-manager-DAqdrsXx.js +0 -2356
- package/dist/mainnet/program-manager-DAqdrsXx.js.map +0 -1
- package/dist/mainnet/program-manager.d.ts +0 -640
- package/dist/mainnet/record-provider.d.ts +0 -236
- package/dist/mainnet/utils.d.ts +0 -4
- package/dist/mainnet/wasm.d.ts +0 -1
- package/dist/mainnet/worker.d.ts +0 -9
- package/dist/mainnet/worker.js +0 -78
- package/dist/mainnet/worker.js.map +0 -1
- package/dist/testnet/account.d.ts +0 -137
- package/dist/testnet/browser.d.ts +0 -26
- package/dist/testnet/browser.js +0 -934
- package/dist/testnet/browser.js.map +0 -1
- package/dist/testnet/constants.d.ts +0 -34
- package/dist/testnet/function-key-provider.d.ts +0 -349
- package/dist/testnet/managed-worker.d.ts +0 -3
- package/dist/testnet/models/blockJSON.d.ts +0 -21
- package/dist/testnet/models/confirmed_transaction.d.ts +0 -6
- package/dist/testnet/models/deploy.d.ts +0 -5
- package/dist/testnet/models/executionJSON.d.ts +0 -5
- package/dist/testnet/models/functionObject.d.ts +0 -7
- package/dist/testnet/models/input/inputJSON.d.ts +0 -13
- package/dist/testnet/models/input/inputObject.d.ts +0 -15
- package/dist/testnet/models/output/outputJSON.d.ts +0 -6
- package/dist/testnet/models/output/outputObject.d.ts +0 -17
- package/dist/testnet/models/plaintext/array.d.ts +0 -3
- package/dist/testnet/models/plaintext/literal.d.ts +0 -1
- package/dist/testnet/models/plaintext/plaintext.d.ts +0 -4
- package/dist/testnet/models/plaintext/struct.d.ts +0 -5
- package/dist/testnet/models/transaction/transactionJSON.d.ts +0 -6
- package/dist/testnet/models/transaction/transactionSummary.d.ts +0 -11
- package/dist/testnet/models/transition/transitionJSON.d.ts +0 -13
- package/dist/testnet/models/transition/transitionObject.d.ts +0 -15
- package/dist/testnet/network-client.d.ts +0 -359
- package/dist/testnet/node-polyfill.d.ts +0 -5
- package/dist/testnet/node-polyfill.js +0 -304
- package/dist/testnet/node-polyfill.js.map +0 -1
- package/dist/testnet/node.d.ts +0 -2
- package/dist/testnet/node.js +0 -13
- package/dist/testnet/node.js.map +0 -1
- package/dist/testnet/offline-key-provider.d.ts +0 -348
- package/dist/testnet/polyfill/crypto.d.ts +0 -1
- package/dist/testnet/polyfill/fetch.d.ts +0 -1
- package/dist/testnet/polyfill/shared.d.ts +0 -1
- package/dist/testnet/polyfill/worker.d.ts +0 -1
- package/dist/testnet/polyfill/xmlhttprequest.d.ts +0 -1
- package/dist/testnet/program-manager-DWPt87ls.js +0 -2356
- package/dist/testnet/program-manager-DWPt87ls.js.map +0 -1
- package/dist/testnet/program-manager.d.ts +0 -640
- package/dist/testnet/record-provider.d.ts +0 -236
- package/dist/testnet/utils.d.ts +0 -4
- package/dist/testnet/wasm.d.ts +0 -1
- package/dist/testnet/worker.d.ts +0 -9
- package/dist/testnet/worker.js +0 -78
- package/dist/testnet/worker.js.map +0 -1
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
import { CachedKeyPair, FunctionKeyPair, FunctionKeyProvider, KeySearchParams } from "./function-key-provider";
|
|
2
|
-
import { ProvingKey, VerifyingKey } from "./wasm";
|
|
3
|
-
/**
|
|
4
|
-
* Search parameters for the offline key provider. This class implements the KeySearchParams interface and includes
|
|
5
|
-
* a convenience method for creating a new instance of this class for each function of the credits.aleo program.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* // If storing a key for a custom program function
|
|
9
|
-
* offlineSearchParams = new OfflineSearchParams("myprogram.aleo/myfunction");
|
|
10
|
-
*
|
|
11
|
-
* // If storing a key for a credits.aleo program function
|
|
12
|
-
* bondPublicKeyParams = OfflineSearchParams.bondPublicKeyParams();
|
|
13
|
-
*/
|
|
14
|
-
declare class OfflineSearchParams implements KeySearchParams {
|
|
15
|
-
cacheKey: string | undefined;
|
|
16
|
-
verifyCreditsKeys: boolean | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Create a new OfflineSearchParams instance.
|
|
19
|
-
*
|
|
20
|
-
* @param {string} cacheKey - Key used to store the local function proving & verifying keys. This should be stored
|
|
21
|
-
* under the naming convention "programName/functionName" (i.e. "myprogram.aleo/myfunction")
|
|
22
|
-
* @param {boolean} verifyCreditsKeys - Whether to verify the keys against the credits.aleo program,
|
|
23
|
-
* defaults to false, but should be set to true if using keys from the credits.aleo program
|
|
24
|
-
*/
|
|
25
|
-
constructor(cacheKey: string, verifyCreditsKeys?: boolean);
|
|
26
|
-
/**
|
|
27
|
-
* Create a new OfflineSearchParams instance for the bond_public function of the credits.aleo program.
|
|
28
|
-
*/
|
|
29
|
-
static bondPublicKeyParams(): OfflineSearchParams;
|
|
30
|
-
/**
|
|
31
|
-
* Create a new OfflineSearchParams instance for the bond_validator function of the credits.aleo program.
|
|
32
|
-
*/
|
|
33
|
-
static bondValidatorKeyParams(): OfflineSearchParams;
|
|
34
|
-
/**
|
|
35
|
-
* Create a new OfflineSearchParams instance for the claim_unbond_public function of the
|
|
36
|
-
*/
|
|
37
|
-
static claimUnbondPublicKeyParams(): OfflineSearchParams;
|
|
38
|
-
/**
|
|
39
|
-
* Create a new OfflineSearchParams instance for the fee_private function of the credits.aleo program.
|
|
40
|
-
*/
|
|
41
|
-
static feePrivateKeyParams(): OfflineSearchParams;
|
|
42
|
-
/**
|
|
43
|
-
* Create a new OfflineSearchParams instance for the fee_public function of the credits.aleo program.
|
|
44
|
-
*/
|
|
45
|
-
static feePublicKeyParams(): OfflineSearchParams;
|
|
46
|
-
/**
|
|
47
|
-
* Create a new OfflineSearchParams instance for the inclusion prover function.
|
|
48
|
-
*/
|
|
49
|
-
static inclusionKeyParams(): OfflineSearchParams;
|
|
50
|
-
/**
|
|
51
|
-
* Create a new OfflineSearchParams instance for the join function of the credits.aleo program.
|
|
52
|
-
*/
|
|
53
|
-
static joinKeyParams(): OfflineSearchParams;
|
|
54
|
-
/**
|
|
55
|
-
* Create a new OfflineSearchParams instance for the set_validator_state function of the credits.aleo program.
|
|
56
|
-
*/
|
|
57
|
-
static setValidatorStateKeyParams(): OfflineSearchParams;
|
|
58
|
-
/**
|
|
59
|
-
* Create a new OfflineSearchParams instance for the split function of the credits.aleo program.
|
|
60
|
-
*/
|
|
61
|
-
static splitKeyParams(): OfflineSearchParams;
|
|
62
|
-
/**
|
|
63
|
-
* Create a new OfflineSearchParams instance for the transfer_private function of the credits.aleo program.
|
|
64
|
-
*/
|
|
65
|
-
static transferPrivateKeyParams(): OfflineSearchParams;
|
|
66
|
-
/**
|
|
67
|
-
* Create a new OfflineSearchParams instance for the transfer_private_to_public function of the credits.aleo program.
|
|
68
|
-
*/
|
|
69
|
-
static transferPrivateToPublicKeyParams(): OfflineSearchParams;
|
|
70
|
-
/**
|
|
71
|
-
* Create a new OfflineSearchParams instance for the transfer_public function of the credits.aleo program.
|
|
72
|
-
*/
|
|
73
|
-
static transferPublicKeyParams(): OfflineSearchParams;
|
|
74
|
-
/**
|
|
75
|
-
* Create a new OfflineSearchParams instance for the transfer_public_as_signer function of the credits.aleo program.
|
|
76
|
-
*/
|
|
77
|
-
static transferPublicAsSignerKeyParams(): OfflineSearchParams;
|
|
78
|
-
/**
|
|
79
|
-
* Create a new OfflineSearchParams instance for the transfer_public_to_private function of the credits.aleo program.
|
|
80
|
-
*/
|
|
81
|
-
static transferPublicToPrivateKeyParams(): OfflineSearchParams;
|
|
82
|
-
/**
|
|
83
|
-
* Create a new OfflineSearchParams instance for the unbond_public function of the credits.aleo program.
|
|
84
|
-
*/
|
|
85
|
-
static unbondPublicKeyParams(): OfflineSearchParams;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* A key provider meant for building transactions offline on devices such as hardware wallets. This key provider is not
|
|
89
|
-
* able to contact the internet for key material and instead relies on the user to insert Aleo function proving &
|
|
90
|
-
* verifying keys from local storage prior to usage.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* // Create an offline program manager
|
|
94
|
-
* const programManager = new ProgramManager();
|
|
95
|
-
*
|
|
96
|
-
* // Create a temporary account for the execution of the program
|
|
97
|
-
* const account = new Account();
|
|
98
|
-
* programManager.setAccount(account);
|
|
99
|
-
*
|
|
100
|
-
* // Create the proving keys from the key bytes on the offline machine
|
|
101
|
-
* console.log("Creating proving keys from local key files");
|
|
102
|
-
* const program = "program hello_hello.aleo; function hello: input r0 as u32.public; input r1 as u32.private; add r0 r1 into r2; output r2 as u32.private;";
|
|
103
|
-
* const myFunctionProver = await getLocalKey("/path/to/my/function/hello_hello.prover");
|
|
104
|
-
* const myFunctionVerifier = await getLocalKey("/path/to/my/function/hello_hello.verifier");
|
|
105
|
-
* const feePublicProvingKeyBytes = await getLocalKey("/path/to/credits.aleo/feePublic.prover");
|
|
106
|
-
*
|
|
107
|
-
* myFunctionProvingKey = ProvingKey.fromBytes(myFunctionProver);
|
|
108
|
-
* myFunctionVerifyingKey = VerifyingKey.fromBytes(myFunctionVerifier);
|
|
109
|
-
* const feePublicProvingKey = ProvingKey.fromBytes(feePublicKeyBytes);
|
|
110
|
-
*
|
|
111
|
-
* // Create an offline key provider
|
|
112
|
-
* console.log("Creating offline key provider");
|
|
113
|
-
* const offlineKeyProvider = new OfflineKeyProvider();
|
|
114
|
-
*
|
|
115
|
-
* // Cache the keys
|
|
116
|
-
* // Cache the proving and verifying keys for the custom hello function
|
|
117
|
-
* OfflineKeyProvider.cacheKeys("hello_hello.aleo/hello", myFunctionProvingKey, myFunctionVerifyingKey);
|
|
118
|
-
*
|
|
119
|
-
* // Cache the proving key for the fee_public function (the verifying key is automatically cached)
|
|
120
|
-
* OfflineKeyProvider.insertFeePublicKey(feePublicProvingKey);
|
|
121
|
-
*
|
|
122
|
-
* // Create an offline query using the latest state root in order to create the inclusion proof
|
|
123
|
-
* const offlineQuery = new OfflineQuery("latestStateRoot");
|
|
124
|
-
*
|
|
125
|
-
* // Insert the key provider into the program manager
|
|
126
|
-
* programManager.setKeyProvider(offlineKeyProvider);
|
|
127
|
-
*
|
|
128
|
-
* // Create the offline search params
|
|
129
|
-
* const offlineSearchParams = new OfflineSearchParams("hello_hello.aleo/hello");
|
|
130
|
-
*
|
|
131
|
-
* // Create the offline transaction
|
|
132
|
-
* const offlineExecuteTx = <Transaction>await this.buildExecutionTransaction("hello_hello.aleo", "hello", 1, false, ["5u32", "5u32"], undefined, offlineSearchParams, undefined, undefined, undefined, undefined, offlineQuery, program);
|
|
133
|
-
*
|
|
134
|
-
* // Broadcast the transaction later on a machine with internet access
|
|
135
|
-
* const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
136
|
-
* const txId = await networkClient.broadcastTransaction(offlineExecuteTx);
|
|
137
|
-
*/
|
|
138
|
-
declare class OfflineKeyProvider implements FunctionKeyProvider {
|
|
139
|
-
cache: Map<string, CachedKeyPair>;
|
|
140
|
-
constructor();
|
|
141
|
-
/**
|
|
142
|
-
* Get bond_public function keys from the credits.aleo program. The keys must be cached prior to calling this
|
|
143
|
-
* method for it to work.
|
|
144
|
-
*
|
|
145
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the bond_public function
|
|
146
|
-
*/
|
|
147
|
-
bondPublicKeys(): Promise<FunctionKeyPair>;
|
|
148
|
-
/**
|
|
149
|
-
* Get bond_validator function keys from the credits.aleo program. The keys must be cached prior to calling this
|
|
150
|
-
* method for it to work.
|
|
151
|
-
*
|
|
152
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the bond_public function
|
|
153
|
-
*/
|
|
154
|
-
bondValidatorKeys(): Promise<FunctionKeyPair>;
|
|
155
|
-
/**
|
|
156
|
-
* Cache a set of keys. This will overwrite any existing keys with the same keyId. The user can check if a keyId
|
|
157
|
-
* exists in the cache using the containsKeys method prior to calling this method if overwriting is not desired.
|
|
158
|
-
*
|
|
159
|
-
* @param {string} keyId access key for the cache
|
|
160
|
-
* @param {FunctionKeyPair} keys keys to cache
|
|
161
|
-
*/
|
|
162
|
-
cacheKeys(keyId: string, keys: FunctionKeyPair): void;
|
|
163
|
-
/**
|
|
164
|
-
* Get unbond_public function keys from the credits.aleo program. The keys must be cached prior to calling this
|
|
165
|
-
* method for it to work.
|
|
166
|
-
*
|
|
167
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the unbond_public function
|
|
168
|
-
*/
|
|
169
|
-
claimUnbondPublicKeys(): Promise<FunctionKeyPair>;
|
|
170
|
-
/**
|
|
171
|
-
* Get arbitrary function key from the offline key provider cache.
|
|
172
|
-
*
|
|
173
|
-
* @param {KeySearchParams | undefined} params - Optional search parameters for the key provider
|
|
174
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the specified program
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* /// First cache the keys from local offline resources
|
|
178
|
-
* const offlineKeyProvider = new OfflineKeyProvider();
|
|
179
|
-
* const myFunctionVerifyingKey = VerifyingKey.fromString("verifier...");
|
|
180
|
-
* const myFunctionProvingKeyBytes = await readBinaryFile('./resources/myfunction.prover');
|
|
181
|
-
* const myFunctionProvingKey = ProvingKey.fromBytes(myFunctionProvingKeyBytes);
|
|
182
|
-
*
|
|
183
|
-
* /// Cache the keys for future use with a memorable locator
|
|
184
|
-
* offlineKeyProvider.cacheKeys("myprogram.aleo/myfunction", [myFunctionProvingKey, myFunctionVerifyingKey]);
|
|
185
|
-
*
|
|
186
|
-
* /// When they're needed, retrieve the keys from the cache
|
|
187
|
-
*
|
|
188
|
-
* /// First create a search parameter object with the same locator used to cache the keys
|
|
189
|
-
* const keyParams = new OfflineSearchParams("myprogram.aleo/myfunction");
|
|
190
|
-
*
|
|
191
|
-
* /// Then retrieve the keys
|
|
192
|
-
* const [myFunctionProver, myFunctionVerifier] = await offlineKeyProvider.functionKeys(keyParams);
|
|
193
|
-
*/
|
|
194
|
-
functionKeys(params?: KeySearchParams): Promise<FunctionKeyPair>;
|
|
195
|
-
/**
|
|
196
|
-
* Determines if the keys for a given credits function match the expected keys.
|
|
197
|
-
*
|
|
198
|
-
* @returns {boolean} Whether the keys match the expected keys
|
|
199
|
-
*/
|
|
200
|
-
verifyCreditsKeys(locator: string, provingKey: ProvingKey, verifyingKey: VerifyingKey): boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Get fee_private function keys from the credits.aleo program. The keys must be cached prior to calling this
|
|
203
|
-
* method for it to work.
|
|
204
|
-
*
|
|
205
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the join function
|
|
206
|
-
*/
|
|
207
|
-
feePrivateKeys(): Promise<FunctionKeyPair>;
|
|
208
|
-
/**
|
|
209
|
-
* Get fee_public function keys from the credits.aleo program. The keys must be cached prior to calling this
|
|
210
|
-
* method for it to work.
|
|
211
|
-
*
|
|
212
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the join function
|
|
213
|
-
*/
|
|
214
|
-
feePublicKeys(): Promise<FunctionKeyPair>;
|
|
215
|
-
/**
|
|
216
|
-
* Get join function keys from the credits.aleo program. The keys must be cached prior to calling this
|
|
217
|
-
* method for it to work.
|
|
218
|
-
*
|
|
219
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the join function
|
|
220
|
-
*/
|
|
221
|
-
joinKeys(): Promise<FunctionKeyPair>;
|
|
222
|
-
/**
|
|
223
|
-
* Get split function keys from the credits.aleo program. The keys must be cached prior to calling this
|
|
224
|
-
* method for it to work.
|
|
225
|
-
*
|
|
226
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the join function
|
|
227
|
-
*/
|
|
228
|
-
splitKeys(): Promise<FunctionKeyPair>;
|
|
229
|
-
/**
|
|
230
|
-
* Get keys for a variant of the transfer function from the credits.aleo program.
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
* @param {string} visibility Visibility of the transfer function (private, public, privateToPublic, publicToPrivate)
|
|
234
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the specified transfer function
|
|
235
|
-
*
|
|
236
|
-
* @example
|
|
237
|
-
* // Create a new OfflineKeyProvider
|
|
238
|
-
* const offlineKeyProvider = new OfflineKeyProvider();
|
|
239
|
-
*
|
|
240
|
-
* // Cache the keys for future use with the official locator
|
|
241
|
-
* const transferPublicProvingKeyBytes = await readBinaryFile('./resources/transfer_public.prover.a74565e');
|
|
242
|
-
* const transferPublicProvingKey = ProvingKey.fromBytes(transferPublicProvingKeyBytes);
|
|
243
|
-
*
|
|
244
|
-
* // Cache the transfer_public keys for future use with the OfflinKeyProvider's convenience method for
|
|
245
|
-
* // transfer_public (the verifying key will be cached automatically)
|
|
246
|
-
* offlineKeyProvider.insertTransferPublicKeys(transferPublicProvingKey);
|
|
247
|
-
*
|
|
248
|
-
* /// When they're needed, retrieve the keys from the cache
|
|
249
|
-
* const [transferPublicProvingKey, transferPublicVerifyingKey] = await keyProvider.transferKeys("public");
|
|
250
|
-
*/
|
|
251
|
-
transferKeys(visibility: string): Promise<FunctionKeyPair>;
|
|
252
|
-
/**
|
|
253
|
-
* Get unbond_public function keys from the credits.aleo program
|
|
254
|
-
*
|
|
255
|
-
* @returns {Promise<FunctionKeyPair>} Proving and verifying keys for the join function
|
|
256
|
-
*/
|
|
257
|
-
unBondPublicKeys(): Promise<FunctionKeyPair>;
|
|
258
|
-
/**
|
|
259
|
-
* Insert the proving and verifying keys for the bond_public function into the cache. Only the proving key needs
|
|
260
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
261
|
-
* that the keys match the expected checksum for bond_public before inserting them into the cache.
|
|
262
|
-
*
|
|
263
|
-
* @param provingKey
|
|
264
|
-
*/
|
|
265
|
-
insertBondPublicKeys(provingKey: ProvingKey): void;
|
|
266
|
-
/**
|
|
267
|
-
* Insert the proving and verifying keys for the claim_unbond_public function into the cache. Only the proving key needs
|
|
268
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
269
|
-
* that the keys match the expected checksum for claim_unbond_public before inserting them into the cache.
|
|
270
|
-
*
|
|
271
|
-
* @param provingKey
|
|
272
|
-
*/
|
|
273
|
-
insertClaimUnbondPublicKeys(provingKey: ProvingKey): void;
|
|
274
|
-
/**
|
|
275
|
-
* Insert the proving and verifying keys for the fee_private function into the cache. Only the proving key needs
|
|
276
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
277
|
-
* that the keys match the expected checksum for fee_private before inserting them into the cache.
|
|
278
|
-
*
|
|
279
|
-
* @param provingKey
|
|
280
|
-
*/
|
|
281
|
-
insertFeePrivateKeys(provingKey: ProvingKey): void;
|
|
282
|
-
/**
|
|
283
|
-
* Insert the proving and verifying keys for the fee_public function into the cache. Only the proving key needs
|
|
284
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
285
|
-
* that the keys match the expected checksum for fee_public before inserting them into the cache.
|
|
286
|
-
*
|
|
287
|
-
* @param provingKey
|
|
288
|
-
*/
|
|
289
|
-
insertFeePublicKeys(provingKey: ProvingKey): void;
|
|
290
|
-
/**
|
|
291
|
-
* Insert the proving and verifying keys for the join function into the cache. Only the proving key needs
|
|
292
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
293
|
-
* that the keys match the expected checksum for join before inserting them into the cache.
|
|
294
|
-
*
|
|
295
|
-
* @param provingKey
|
|
296
|
-
*/
|
|
297
|
-
insertJoinKeys(provingKey: ProvingKey): void;
|
|
298
|
-
/**
|
|
299
|
-
* Insert the proving and verifying keys for the set_validator_state function into the cache. Only the proving key needs
|
|
300
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
301
|
-
* that the keys match the expected checksum for set_validator_state before inserting them into the cache.
|
|
302
|
-
*
|
|
303
|
-
* @param provingKey
|
|
304
|
-
*/
|
|
305
|
-
insertSetValidatorStateKeys(provingKey: ProvingKey): void;
|
|
306
|
-
/**
|
|
307
|
-
* Insert the proving and verifying keys for the split function into the cache. Only the proving key needs
|
|
308
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
309
|
-
* that the keys match the expected checksum for split before inserting them into the cache.
|
|
310
|
-
*
|
|
311
|
-
* @param provingKey
|
|
312
|
-
*/
|
|
313
|
-
insertSplitKeys(provingKey: ProvingKey): void;
|
|
314
|
-
/**
|
|
315
|
-
* Insert the proving and verifying keys for the transfer_private function into the cache. Only the proving key needs
|
|
316
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
317
|
-
* that the keys match the expected checksum for transfer_private before inserting them into the cache.
|
|
318
|
-
*
|
|
319
|
-
* @param provingKey
|
|
320
|
-
*/
|
|
321
|
-
insertTransferPrivateKeys(provingKey: ProvingKey): void;
|
|
322
|
-
/**
|
|
323
|
-
* Insert the proving and verifying keys for the transfer_private_to_public function into the cache. Only the proving key needs
|
|
324
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
325
|
-
* that the keys match the expected checksum for transfer_private_to_public before inserting them into the cache.
|
|
326
|
-
*
|
|
327
|
-
* @param provingKey
|
|
328
|
-
*/
|
|
329
|
-
insertTransferPrivateToPublicKeys(provingKey: ProvingKey): void;
|
|
330
|
-
/**
|
|
331
|
-
* Insert the proving and verifying keys for the transfer_public function into the cache. Only the proving key needs
|
|
332
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
333
|
-
* that the keys match the expected checksum for transfer_public before inserting them into the cache.
|
|
334
|
-
*
|
|
335
|
-
* @param provingKey
|
|
336
|
-
*/
|
|
337
|
-
insertTransferPublicKeys(provingKey: ProvingKey): void;
|
|
338
|
-
/**
|
|
339
|
-
* Insert the proving and verifying keys for the transfer_public_to_private function into the cache. Only the proving key needs
|
|
340
|
-
* to be inserted, the verifying key is automatically inserted by the SDK. This function will automatically check
|
|
341
|
-
* that the keys match the expected checksum for transfer_public_to_private before inserting them into the cache.
|
|
342
|
-
*
|
|
343
|
-
* @param provingKey
|
|
344
|
-
*/
|
|
345
|
-
insertTransferPublicToPrivateKeys(provingKey: ProvingKey): void;
|
|
346
|
-
insertUnbondPublicKeys(provingKey: ProvingKey): void;
|
|
347
|
-
}
|
|
348
|
-
export { OfflineKeyProvider, OfflineSearchParams };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "core-js/proposals/json-parse-with-source.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|