@aztec/txe 5.1.0-nightly.20260721 → 5.1.0
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/dest/HandshakeRegistry-GNFACTEE.js +3 -0
- package/dest/HandshakeRegistry-GNFACTEE.js.map +7 -0
- package/dest/SchnorrAccount-MNMW6SI2.js +3 -0
- package/dest/SchnorrAccount-MNMW6SI2.js.map +7 -0
- package/dest/{SchnorrInitializerlessAccount-TFAFXZW6.js → SchnorrInitializerlessAccount-HY442Y4D.js} +1 -1
- package/dest/{SchnorrInitializerlessAccount-TFAFXZW6.js.map → SchnorrInitializerlessAccount-HY442Y4D.js.map} +2 -2
- package/dest/bin/index.js +1 -1
- package/dest/{chunk-CJWLPJUV.js → chunk-NP3YMCNL.js} +4 -4
- package/dest/{chunk-CJWLPJUV.js.map → chunk-NP3YMCNL.js.map} +3 -3
- package/dest/{chunk-JNRBREKO.js → chunk-PUJMQKDX.js} +2 -2
- package/dest/metafile.json +107 -59
- package/dest/oracle/interfaces.d.ts +2 -2
- package/dest/oracle/interfaces.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_registry.d.ts +2 -2
- package/dest/oracle/txe_oracle_registry.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_registry.js +4 -0
- package/dest/oracle/txe_oracle_top_level_context.d.ts +2 -2
- package/dest/oracle/txe_oracle_top_level_context.d.ts.map +1 -1
- package/dest/oracle/txe_oracle_top_level_context.js +2 -3
- package/dest/oracle/txe_oracle_version.d.ts +3 -3
- package/dest/oracle/txe_oracle_version.js +3 -3
- package/dest/rpc_translator.js +1 -1
- package/dest/server.bundle.js +1 -1
- package/dest/worker.bundle.js +1 -1
- package/package.json +17 -17
- package/src/oracle/interfaces.ts +1 -1
- package/src/oracle/txe_oracle_registry.ts +4 -1
- package/src/oracle/txe_oracle_top_level_context.ts +2 -3
- package/src/oracle/txe_oracle_version.ts +3 -3
- package/src/rpc_translator.ts +1 -1
- package/dest/HandshakeRegistry-D2W3AOPD.js +0 -3
- package/dest/HandshakeRegistry-D2W3AOPD.js.map +0 -7
- package/dest/SchnorrAccount-HNL7EN7Y.js +0 -3
- package/dest/SchnorrAccount-HNL7EN7Y.js.map +0 -7
- /package/dest/{chunk-JNRBREKO.js.map → chunk-PUJMQKDX.js.map} +0 -0
package/dest/worker.bundle.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __txeCreateRequire } from 'node:module';
|
|
2
2
|
const require = __txeCreateRequire(import.meta.url);
|
|
3
|
-
import{TXEDispatcher,activeSessionCount,createLogger}from"./chunk-
|
|
3
|
+
import{TXEDispatcher,activeSessionCount,createLogger}from"./chunk-NP3YMCNL.js";import{__name}from"./chunk-BJVAAXNA.js";import{BackendType,Barretenberg,BarretenbergSync}from"@aztec/bb.js";import{parentPort,workerData}from"node:worker_threads";Barretenberg.initSingleton({backend:BackendType.Wasm,skipSrsInit:!0,threads:1});BarretenbergSync.initSingleton({backend:BackendType.Wasm});if(!parentPort)throw new Error("worker.ts must be loaded as a worker_thread");var port=parentPort,logger=createLogger("txe:worker"),dispatcherOpts={contractStoreSourceDir:workerData.contractStoreSourceDir,schnorrClassId:workerData.schnorrClassId},dispatcher=new TXEDispatcher(logger,dispatcherOpts);function serializeError(err){return err instanceof Error?{message:err.message,name:err.name,stack:err.stack}:{message:String(err)}}__name(serializeError,"serializeError");process.env.TXE_WORKER_MEMSTAT==="1"&&setInterval(()=>{let m=process.memoryUsage();port.postMessage({type:"memstat",sessions:activeSessionCount(),rss:m.rss,heapTotal:m.heapTotal,heapUsed:m.heapUsed,external:m.external,arrayBuffers:m.arrayBuffers})},2e3).unref();port.on("message",msg=>{switch(msg.type){case"foreign-call":(async()=>{try{let value=await dispatcher.resolve_foreign_call(msg.callData);port.postMessage({type:"result",requestId:msg.requestId,ok:!0,value})}catch(err){port.postMessage({type:"result",requestId:msg.requestId,ok:!1,error:serializeError(err)})}})();return;case"dispose-session":dispatcher.disposeSession(msg.sessionId).catch(err=>logger.warn("disposeSession failed",err));return}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/txe",
|
|
3
|
-
"version": "5.1.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./server": {
|
|
@@ -69,22 +69,22 @@
|
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aztec/accounts": "5.1.0
|
|
73
|
-
"@aztec/archiver": "5.1.0
|
|
74
|
-
"@aztec/aztec-node": "5.1.0
|
|
75
|
-
"@aztec/aztec.js": "5.1.0
|
|
76
|
-
"@aztec/bb-prover": "5.1.0
|
|
77
|
-
"@aztec/bb.js": "5.1.0
|
|
78
|
-
"@aztec/constants": "5.1.0
|
|
79
|
-
"@aztec/foundation": "5.1.0
|
|
80
|
-
"@aztec/key-store": "5.1.0
|
|
81
|
-
"@aztec/kv-store": "5.1.0
|
|
82
|
-
"@aztec/protocol-contracts": "5.1.0
|
|
83
|
-
"@aztec/pxe": "5.1.0
|
|
84
|
-
"@aztec/simulator": "5.1.0
|
|
85
|
-
"@aztec/standard-contracts": "5.1.0
|
|
86
|
-
"@aztec/stdlib": "5.1.0
|
|
87
|
-
"@aztec/world-state": "5.1.0
|
|
72
|
+
"@aztec/accounts": "5.1.0",
|
|
73
|
+
"@aztec/archiver": "5.1.0",
|
|
74
|
+
"@aztec/aztec-node": "5.1.0",
|
|
75
|
+
"@aztec/aztec.js": "5.1.0",
|
|
76
|
+
"@aztec/bb-prover": "5.1.0",
|
|
77
|
+
"@aztec/bb.js": "5.1.0",
|
|
78
|
+
"@aztec/constants": "5.1.0",
|
|
79
|
+
"@aztec/foundation": "5.1.0",
|
|
80
|
+
"@aztec/key-store": "5.1.0",
|
|
81
|
+
"@aztec/kv-store": "5.1.0",
|
|
82
|
+
"@aztec/protocol-contracts": "5.1.0",
|
|
83
|
+
"@aztec/pxe": "5.1.0",
|
|
84
|
+
"@aztec/simulator": "5.1.0",
|
|
85
|
+
"@aztec/standard-contracts": "5.1.0",
|
|
86
|
+
"@aztec/stdlib": "5.1.0",
|
|
87
|
+
"@aztec/world-state": "5.1.0",
|
|
88
88
|
"msgpackr": "^1.11.2",
|
|
89
89
|
"zod": "^4"
|
|
90
90
|
},
|
package/src/oracle/interfaces.ts
CHANGED
|
@@ -69,7 +69,7 @@ export interface ITxeExecutionOracle {
|
|
|
69
69
|
salt: Fr,
|
|
70
70
|
deployer: AztecAddress,
|
|
71
71
|
): Promise<Fr[]>;
|
|
72
|
-
createAccount(secret: Fr): Promise<CompleteAddress>;
|
|
72
|
+
createAccount(secret: Fr, partialAddress: Fr): Promise<CompleteAddress>;
|
|
73
73
|
addAccount(secret: Fr): Promise<CompleteAddress>;
|
|
74
74
|
addAuthWitness(address: AztecAddress, messageHash: Fr): Promise<void>;
|
|
75
75
|
sendL1ToL2Message(content: Fr, secretHash: Fr, sender: EthAddress, recipient: AztecAddress): Promise<Fr>;
|
|
@@ -304,7 +304,10 @@ export const TXE_ORACLE_REGISTRY = {
|
|
|
304
304
|
}),
|
|
305
305
|
|
|
306
306
|
aztec_txe_createAccount: makeEntry({
|
|
307
|
-
params: [
|
|
307
|
+
params: [
|
|
308
|
+
{ name: 'secret', type: FIELD },
|
|
309
|
+
{ name: 'partialAddress', type: FIELD },
|
|
310
|
+
],
|
|
308
311
|
returnType: COMPLETE_ADDRESS,
|
|
309
312
|
}),
|
|
310
313
|
|
|
@@ -336,9 +336,8 @@ export class TXEOracleTopLevelContext implements IMiscOracle, ITxeExecutionOracl
|
|
|
336
336
|
return completeAddress;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
async createAccount(secret: Fr) {
|
|
340
|
-
|
|
341
|
-
const completeAddress = await this.keyStore.addAccount(await deriveKeys(secret), secret);
|
|
339
|
+
async createAccount(secret: Fr, partialAddress: Fr) {
|
|
340
|
+
const completeAddress = await this.keyStore.addAccount(await deriveKeys(secret), partialAddress);
|
|
342
341
|
await this.accountStore.setAccount(completeAddress.address, completeAddress);
|
|
343
342
|
await this.addressStore.addCompleteAddress(completeAddress);
|
|
344
343
|
this.logger.debug(`Created account ${completeAddress.address}`);
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* The Noir counterparts are in `noir-projects/aztec-nr/aztec/src/test/helpers/txe_oracles.nr`.
|
|
7
7
|
*/
|
|
8
|
-
export const TXE_ORACLE_VERSION_MAJOR =
|
|
9
|
-
export const TXE_ORACLE_VERSION_MINOR =
|
|
8
|
+
export const TXE_ORACLE_VERSION_MAJOR = 4;
|
|
9
|
+
export const TXE_ORACLE_VERSION_MINOR = 0;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* This hash is computed from the TXE-specific entries in `TXE_ORACLE_REGISTRY` and is used to
|
|
@@ -14,4 +14,4 @@ export const TXE_ORACLE_VERSION_MINOR = 1;
|
|
|
14
14
|
* - TXE_ORACLE_VERSION_MAJOR (and reset MINOR to 0) for breaking changes, or
|
|
15
15
|
* - TXE_ORACLE_VERSION_MINOR for additive changes (new oracle method added).
|
|
16
16
|
*/
|
|
17
|
-
export const TXE_ORACLE_INTERFACE_HASH = '
|
|
17
|
+
export const TXE_ORACLE_INTERFACE_HASH = '1a6c578d0a47cd8dd7dae07fd00abe781225a73920c596d873afcc061c0e4284';
|
package/src/rpc_translator.ts
CHANGED
|
@@ -188,7 +188,7 @@ export class RPCTranslator {
|
|
|
188
188
|
return callTxeHandler({
|
|
189
189
|
oracle: 'aztec_txe_createAccount',
|
|
190
190
|
inputs,
|
|
191
|
-
handler: ([secret]) => this.handlerAsTxe().createAccount(secret),
|
|
191
|
+
handler: ([secret, partialAddress]) => this.handlerAsTxe().createAccount(secret, partialAddress),
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
|