Polygon zkEVM交易解析
Posted mutourend
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Polygon zkEVM交易解析相关的知识,希望对你有一定的参考价值。
1. 引言
前序博客有:
zkevm-rom为Polygon zkEVM中以zkASM语言编写的以太坊虚拟机,负责处理执行L2层交易 并 生成execution trace。
zkProverjs 根据execution trace,生成STARK证明-》SNARK证明(借助circom)。
根据zkProverC中有:
/*
Prover (available via GRPC service)
|\\
| Executor (available via GRPC service)
| |\\
| | Main State Machine
| | Byte4 State Machine
| | Binary State Machine
| | Memory State Machine
| | Mem Align State Machine
| | Arithmetic State Machine
| | Storage State Machine------\\
| | |--> Poseidon G State Machine
| | Padding PG State Machine---/
| | Padding KK SM -> Padding KK Bit -> Nine To One SM -> Keccak-f SM -> Norm Gate 9 SM
| \\
| State DB (available via GRPC service)
| |\\
| | SMT
| \\
| Database
|\\
| Stark
|\\
| Circom
*/
以zkProverjs和zkevm-testvectors/inputs-executor/e2e 中的交易为例,只启用pil的main和global模块,相应日志为:
zkevm-proverjs lanyu$ npm run test:all-inputs
Debugger attached.
> @0xpolygonhermez/zkevm-proverjs@0.0.5 test:all-inputs
> mocha --timeout 0 --max-old-space-size=8000 tools/run-test/run-inputs-mocha.test.js
Debugger attached.
Debugger attached.
Run executor inputs from config file
NOTICE: Ignore constant definition N on config.pil:1 because it was pre-defined
NOTE: namespace Rom was ignored
NOTE: namespace Byte4 was ignored
NOTE: namespace MemAlign was ignored
NOTE: namespace Arith was ignored
NOTE: namespace Binary was ignored
NOTE: namespace PoseidonG was ignored
NOTE: namespace PaddingPG was ignored
NOTE: namespace Storage was ignored
NOTE: namespace NormGate9 was ignored
NOTE: namespace KeccakF was ignored
NOTE: namespace Nine2One was ignored
NOTE: namespace PaddingKKBit was ignored
NOTE: namespace PaddingKK was ignored
NOTE: namespace Mem was ignored
NOTE: main.pil:215 was ignored
NOTE: main.pil:330 was ignored
NOTE: main.pil:341 was ignored
NOTE: main.pil:364 was ignored
NOTE: main.pil:452 was ignored
NOTE: main.pil:474 was ignored
NOTE: main.pil:489 was ignored
NOTE: main.pil:498 was ignored
NOTE: main.pil:516 was ignored
NOTE: main.pil:531 was ignored
NOTE: main.pil:540 was ignored
NOTE: main.pil:563 was ignored
NOTE: main.pil:583 was ignored
NOTE: main.pil:607 was ignored
NOTE: main.pil:631 was ignored
NOTE: main.pil:647 was ignored
NOTE: main.pil:669 was ignored
ZYD eval_getTxs offset:0,len:1, tx:0xf9
ZYD eval_getTxs offset:1,len:2, tx:0x05a8
ZYD eval_getTxs offset:3,len:1, tx:0x02
ZYD eval_getTxs offset:4,len:1, tx:0x80
ZYD eval_getTxs offset:5,len:1, tx:0x83
ZYD eval_getTxs offset:6,len:3, tx:0x1e8480
ZYD eval_getTxs offset:9,len:1, tx:0x94
ZYD eval_getTxs offset:10,len:20, tx:0x9d98deabc42dd696deb9e40b4f1cab7ddbf55988
ZYD eval_getTxs offset:30,len:1, tx:0x80
ZYD eval_getTxs offset:31,len:1, tx:0xb9
ZYD eval_getTxs offset:32,len:2, tx:0x0584
ZYD eval_getTxs offset:34,len:32, tx:0x5d5d326f00000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:66,len:32, tx:0x0000014000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:98,len:32, tx:0x00000000573768af52d1354a7b83fb784ecbacecf8fead6ad49f25af8909a35b
ZYD eval_getTxs offset:130,len:32, tx:0x0a7bba0500000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:162,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:194,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:226,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:258,len:32, tx:0x00000001000000000000000000000000c949254d682d8c9ad5682521675b8f43
ZYD eval_getTxs offset:290,len:32, tx:0xb102aec40000000000000000000000000000000000000000000000008ac72304
ZYD eval_getTxs offset:322,len:32, tx:0x89e8000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:354,len:32, tx:0x0000056000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:386,len:32, tx:0x0000002000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:418,len:32, tx:0x00000000ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e5
ZYD eval_getTxs offset:450,len:32, tx:0x97ba5fb5b4c11951957c6f8f642c4af61cd6b24640fec6dc7fc607ee8206a99e
ZYD eval_getTxs offset:482,len:32, tx:0x92410d3021ddb9a356815c3fac1026b6dec5df3124afbadb485c9ba5a3e3398a
ZYD eval_getTxs offset:514,len:32, tx:0x04b7ba85e58769b32a1beaf1ea27375a44095a0d1fb664ce2dd358e7fcbfb78c
ZYD eval_getTxs offset:546,len:32, tx:0x26a193440eb01ebfc9ed27500cd4dfc979272d1f0913cc9f66540d7e80058111
ZYD eval_getTxs offset:578,len:32, tx:0x09e1cf2d887c22bd8750d34016ac3c66b5ff102dacdd73f6b014e710b51e8022
ZYD eval_getTxs offset:610,len:32, tx:0xaf9a1968ffd70157e48063fc33c97a050f7f640233bf646cc98d9524c6b92bcf
ZYD eval_getTxs offset:642,len:32, tx:0x3ab56f839867cc5f7f196b93bae1e27e6320742445d290f2263827498b54fec5
ZYD eval_getTxs offset:674,len:32, tx:0x39f756afcefad4e508c098b9a7e1d8feb19955fb02ba9675585078710969d344
ZYD eval_getTxs offset:706,len:32, tx:0x0f5054e0f9dc3e7fe016e050eff260334f18a5d4fe391d82092319f5964f2e2e
ZYD eval_getTxs offset:738,len:32, tx:0xb7c1c3a5f8b13a49e282f609c317a833fb8d976d11517c571d1221a265d25af7
ZYD eval_getTxs offset:770,len:32, tx:0x78ecf8923490c6ceeb450aecdc82e28293031d10c7d73bf85e57bf041a97360a
ZYD eval_getTxs offset:802,len:32, tx:0xa2c5d99cc1df82d9c4b87413eae2ef048f94b4d3554cea73d92b0f7af96e0271
ZYD eval_getTxs offset:834,len:32, tx:0xc691e2bb5c67add7c6caf302256adedf7ab114da0acfe870d449a3a489f781d6
ZYD eval_getTxs offset:866,len:32, tx:0x59e8beccda7bce9f4e8618b6bd2f4132ce798cdc7a60e7e1460a7299e3c6342a
ZYD eval_getTxs offset:898,len:32, tx:0x579626d22733e50f526ec2fa19a22b31e8ed50f23cd1fdf94c9154ed3a7609a2
ZYD eval_getTxs offset:930,len:32, tx:0xf1ff981fe1d3b5c807b281e4683cc6d6315cf95b9ade8641defcb32372f1c126
ZYD eval_getTxs offset:962,len:32, tx:0xe398ef7a5a2dce0a8a7f68bb74560f8f71837c2c2ebbcbf7fffb42ae1896f13f
ZYD eval_getTxs offset:994,len:32, tx:0x7c7479a0b46a28b6f55540f89444f63de0378e3d121be09e06cc9ded1c20e658
ZYD eval_getTxs offset:1026,len:32, tx:0x76d36aa0c65e9645644786b620e2dd2ad648ddfcbf4a7e5b1a3a4ecfe7f64667
ZYD eval_getTxs offset:1058,len:32, tx:0xa3f0b7e2f4418588ed35a2458cffeb39b93d26f18d2ab13bdce6aee58e7b9935
ZYD eval_getTxs offset:1090,len:32, tx:0x9ec2dfd95a9c16dc00d6ef18b7933a6f8dc65ccb55667138776f7dea101070dc
ZYD eval_getTxs offset:1122,len:32, tx:0x8796e3774df84f40ae0c8229d0d6069e5c8f39a7c299677a09d367fc7b05e3bc
ZYD eval_getTxs offset:1154,len:32, tx:0x380ee652cdc72595f74c7b1043d0e1ffbab734648c838dfb0527d971b602bc21
ZYD eval_getTxs offset:1186,len:32, tx:0x6c9619ef0abf5ac974a1ed57f4050aa510dd9c74f508277b39d7973bb2dfccc5
ZYD eval_getTxs offset:1218,len:32, tx:0xeeb0618db8cd74046ff337f0a7bf2c8e03e10f642c1886798d71806ab1e888d9
ZYD eval_getTxs offset:1250,len:32, tx:0xe5ee87d0838c5655cb21c6cb83313b5a631175dff4963772cce9108188b34ac8
ZYD eval_getTxs offset:1282,len:32, tx:0x7c81c41e662ee4dd2dd7b2bc707961b1e646c4047669dcb6584f0d8d770daf5d
ZYD eval_getTxs offset:1314,len:32, tx:0x7e7deb2e388ab20e2573d171a88108e79d820e98f26c0b84aa8b2f4aa4968dbb
ZYD eval_getTxs offset:1346,len:32, tx:0x818ea32293237c50ba75ee485f4c22adf2f741400bdf8d6a9cc7df7ecae57622
ZYD eval_getTxs offset:1378,len:32, tx:0x1665d7358448818bb4ae4562849e949e17ac16e0be16688e156b5cf15e098c62
ZYD eval_getTxs offset:1410,len:32, tx:0x7c0056a900000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:1442,len:4, tx:0x00000000
ZYD eval_getTxs offset:1446,len:1, tx:0x82
ZYD eval_getTxs offset:1447,len:2, tx:0x03e8
ZYD eval_getTxs offset:1449,len:2, tx:0x8080
ZYD eval_getTxs offset:1451,len:32, tx:0xbcc9ef42f563df8d4e91fc02edb72d6b08ea162f5116f8ae1a38c3b0760251d7
ZYD eval_getTxs offset:1483,len:32, tx:0x10481d9fb06a52fa41e57462a5e6e5979d06107f81886879aed959a5a5cb2dbf
ZYD eval_getTxs offset:1515,len:1, tx:0x1b
ZYD eval_getTxs offset:1516,len:1, tx:0xf8
ZYD eval_getTxs offset:1517,len:1, tx:0xaf
ZYD eval_getTxs offset:1518,len:1, tx:0x03
ZYD eval_getTxs offset:1519,len:1, tx:0x80
ZYD eval_getTxs offset:1520,len:1, tx:0x83
ZYD eval_getTxs offset:1521,len:3, tx:0x1e8480
ZYD eval_getTxs offset:1524,len:1, tx:0x94
ZYD eval_getTxs offset:1525,len:20, tx:0x9d98deabc42dd696deb9e40b4f1cab7ddbf55988
ZYD eval_getTxs offset:1545,len:1, tx:0x88
ZYD eval_getTxs offset:1546,len:8, tx:0x0de0b6b3a7640000
ZYD eval_getTxs offset:1554,len:1, tx:0xb8
ZYD eval_getTxs offset:1555,len:1, tx:0x84
ZYD eval_getTxs offset:1556,len:32, tx:0xb33f805900000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:1588,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:1620,len:32, tx:0x00000000000000000000000000000000c949254d682d8c9ad5682521675b8f43
ZYD eval_getTxs offset:1652,len:32, tx:0xb102aec40000000000000000000000000000000000000000000000000de0b6b3
ZYD eval_getTxs offset:1684,len:4, tx:0xa7640000
ZYD eval_getTxs offset:1688,len:1, tx:0x82
ZYD eval_getTxs offset:1689,len:2, tx:0x03e8
ZYD eval_getTxs offset:1691,len:2, tx:0x8080
ZYD eval_getTxs offset:1693,len:32, tx:0xadbd0c3e3f0bb110c87dcd27d9a48cffd080c99c174227b7748ad557f55bcd5e
ZYD eval_getTxs offset:1725,len:32, tx:0x5e39a5c4d6754972544e920dbf66cbde0149a8b81fd6d025e1f86a4569667c43
ZYD eval_getTxs offset:1757,len:1, tx:0x1c
Input: /Users/lanyu/zyd/0xPolygonHermez/zkevm-testvectors/inputs-executor/e2e/e2e_1.json
Finish executor JS ==> 36.72591406697035 s
Current memory heap: 3615.78 MB out of 3688886272
Tests finished in 0.61 minutes
✔ Should run all the inputs (36738ms)
1 passing (41s)
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
pil约束系统配置为:
const pilConfig =
defines: N: 2 ** 21 ,
// namespaces: ['Main', 'Global']
namespaces: ['Main', 'Global', 'Rom', 'Mem', 'Binary','Arith','MemAlign', 'Byte4', 'Storage', 'PoseidonG','PaddingPG', 'PaddingKK' ,'KeccakF', 'PaddingKKBit', 'NormGate9', 'Nine2One']
;
对pil中的commit多项式赋值,获取execution trace:
const pil = await compile(F, "pil/main.pil", null, pilConfig);
cmPols = newCommitPolsArray(pil);
//调试模式,获取execution trace
const config =
debug: true,
debugInfo: //为e2e_1.json文件
inputName: path.basename(inputPath)
await smMain.execute(cmPols.Main, input, rom, config);
pil约束系统源码为:
启用pil所有模块,日志为:
$ npm run test:all-inputs
Debugger attached.
> @0xpolygonhermez/zkevm-proverjs@0.0.5 test:all-inputs
> mocha --timeout 0 --max-old-space-size=8000 tools/run-test/run-inputs-mocha.test.js
Debugger attached.
Debugger attached.
Run executor inputs from config file
NOTICE: Ignore constant definition N on config.pil:1 because it was pre-defined
ZYD eval_getTxs offset:0,len:1, tx:0xf9
ZYD eval_getTxs offset:1,len:2, tx:0x05a8
ZYD eval_getTxs offset:3,len:1, tx:0x02
ZYD eval_getTxs offset:4,len:1, tx:0x80
ZYD eval_getTxs offset:5,len:1, tx:0x83
ZYD eval_getTxs offset:6,len:3, tx:0x1e8480
ZYD eval_getTxs offset:9,len:1, tx:0x94
ZYD eval_getTxs offset:10,len:20, tx:0x9d98deabc42dd696deb9e40b4f1cab7ddbf55988
ZYD eval_getTxs offset:30,len:1, tx:0x80
ZYD eval_getTxs offset:31,len:1, tx:0xb9
ZYD eval_getTxs offset:32,len:2, tx:0x0584
ZYD eval_getTxs offset:34,len:32, tx:0x5d5d326f00000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:66,len:32, tx:0x0000014000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:98,len:32, tx:0x00000000573768af52d1354a7b83fb784ecbacecf8fead6ad49f25af8909a35b
ZYD eval_getTxs offset:130,len:32, tx:0x0a7bba0500000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:162,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:194,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:226,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:258,len:32, tx:0x00000001000000000000000000000000c949254d682d8c9ad5682521675b8f43
ZYD eval_getTxs offset:290,len:32, tx:0xb102aec40000000000000000000000000000000000000000000000008ac72304
ZYD eval_getTxs offset:322,len:32, tx:0x89e8000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:354,len:32, tx:0x0000056000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:386,len:32, tx:0x0000002000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:418,len:32, tx:0x00000000ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e5
ZYD eval_getTxs offset:450,len:32, tx:0x97ba5fb5b4c11951957c6f8f642c4af61cd6b24640fec6dc7fc607ee8206a99e
ZYD eval_getTxs offset:482,len:32, tx:0x92410d3021ddb9a356815c3fac1026b6dec5df3124afbadb485c9ba5a3e3398a
ZYD eval_getTxs offset:514,len:32, tx:0x04b7ba85e58769b32a1beaf1ea27375a44095a0d1fb664ce2dd358e7fcbfb78c
ZYD eval_getTxs offset:546,len:32, tx:0x26a193440eb01ebfc9ed27500cd4dfc979272d1f0913cc9f66540d7e80058111
ZYD eval_getTxs offset:578,len:32, tx:0x09e1cf2d887c22bd8750d34016ac3c66b5ff102dacdd73f6b014e710b51e8022
ZYD eval_getTxs offset:610,len:32, tx:0xaf9a1968ffd70157e48063fc33c97a050f7f640233bf646cc98d9524c6b92bcf
ZYD eval_getTxs offset:642,len:32, tx:0x3ab56f839867cc5f7f196b93bae1e27e6320742445d290f2263827498b54fec5
ZYD eval_getTxs offset:674,len:32, tx:0x39f756afcefad4e508c098b9a7e1d8feb19955fb02ba9675585078710969d344
ZYD eval_getTxs offset:706,len:32, tx:0x0f5054e0f9dc3e7fe016e050eff260334f18a5d4fe391d82092319f5964f2e2e
ZYD eval_getTxs offset:738,len:32, tx:0xb7c1c3a5f8b13a49e282f609c317a833fb8d976d11517c571d1221a265d25af7
ZYD eval_getTxs offset:770,len:32, tx:0x78ecf8923490c6ceeb450aecdc82e28293031d10c7d73bf85e57bf041a97360a
ZYD eval_getTxs offset:802,len:32, tx:0xa2c5d99cc1df82d9c4b87413eae2ef048f94b4d3554cea73d92b0f7af96e0271
ZYD eval_getTxs offset:834,len:32, tx:0xc691e2bb5c67add7c6caf302256adedf7ab114da0acfe870d449a3a489f781d6
ZYD eval_getTxs offset:866,len:32, tx:0x59e8beccda7bce9f4e8618b6bd2f4132ce798cdc7a60e7e1460a7299e3c6342a
ZYD eval_getTxs offset:898,len:32, tx:0x579626d22733e50f526ec2fa19a22b31e8ed50f23cd1fdf94c9154ed3a7609a2
ZYD eval_getTxs offset:930,len:32, tx:0xf1ff981fe1d3b5c807b281e4683cc6d6315cf95b9ade8641defcb32372f1c126
ZYD eval_getTxs offset:962,len:32, tx:0xe398ef7a5a2dce0a8a7f68bb74560f8f71837c2c2ebbcbf7fffb42ae1896f13f
ZYD eval_getTxs offset:994,len:32, tx:0x7c7479a0b46a28b6f55540f89444f63de0378e3d121be09e06cc9ded1c20e658
ZYD eval_getTxs offset:1026,len:32, tx:0x76d36aa0c65e9645644786b620e2dd2ad648ddfcbf4a7e5b1a3a4ecfe7f64667
ZYD eval_getTxs offset:1058,len:32, tx:0xa3f0b7e2f4418588ed35a2458cffeb39b93d26f18d2ab13bdce6aee58e7b9935
ZYD eval_getTxs offset:1090,len:32, tx:0x9ec2dfd95a9c16dc00d6ef18b7933a6f8dc65ccb55667138776f7dea101070dc
ZYD eval_getTxs offset:1122,len:32, tx:0x8796e3774df84f40ae0c8229d0d6069e5c8f39a7c299677a09d367fc7b05e3bc
ZYD eval_getTxs offset:1154,len:32, tx:0x380ee652cdc72595f74c7b1043d0e1ffbab734648c838dfb0527d971b602bc21
ZYD eval_getTxs offset:1186,len:32, tx:0x6c9619ef0abf5ac974a1ed57f4050aa510dd9c74f508277b39d7973bb2dfccc5
ZYD eval_getTxs offset:1218,len:32, tx:0xeeb0618db8cd74046ff337f0a7bf2c8e03e10f642c1886798d71806ab1e888d9
ZYD eval_getTxs offset:1250,len:32, tx:0xe5ee87d0838c5655cb21c6cb83313b5a631175dff4963772cce9108188b34ac8
ZYD eval_getTxs offset:1282,len:32, tx:0x7c81c41e662ee4dd2dd7b2bc707961b1e646c4047669dcb6584f0d8d770daf5d
ZYD eval_getTxs offset:1314,len:32, tx:0x7e7deb2e388ab20e2573d171a88108e79d820e98f26c0b84aa8b2f4aa4968dbb
ZYD eval_getTxs offset:1346,len:32, tx:0x818ea32293237c50ba75ee485f4c22adf2f741400bdf8d6a9cc7df7ecae57622
ZYD eval_getTxs offset:1378,len:32, tx:0x1665d7358448818bb4ae4562849e949e17ac16e0be16688e156b5cf15e098c62
ZYD eval_getTxs offset:1410,len:32, tx:0x7c0056a900000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:1442,len:4, tx:0x00000000
ZYD eval_getTxs offset:1446,len:1, tx:0x82
ZYD eval_getTxs offset:1447,len:2, tx:0x03e8
ZYD eval_getTxs offset:1449,len:2, tx:0x8080
ZYD eval_getTxs offset:1451,len:32, tx:0xbcc9ef42f563df8d4e91fc02edb72d6b08ea162f5116f8ae1a38c3b0760251d7
ZYD eval_getTxs offset:1483,len:32, tx:0x10481d9fb06a52fa41e57462a5e6e5979d06107f81886879aed959a5a5cb2dbf
ZYD eval_getTxs offset:1515,len:1, tx:0x1b
ZYD eval_getTxs offset:1516,len:1, tx:0xf8
ZYD eval_getTxs offset:1517,len:1, tx:0xaf
ZYD eval_getTxs offset:1518,len:1, tx:0x03
ZYD eval_getTxs offset:1519,len:1, tx:0x80
ZYD eval_getTxs offset:1520,len:1, tx:0x83
ZYD eval_getTxs offset:1521,len:3, tx:0x1e8480
ZYD eval_getTxs offset:1524,len:1, tx:0x94
ZYD eval_getTxs offset:1525,len:20, tx:0x9d98deabc42dd696deb9e40b4f1cab7ddbf55988
ZYD eval_getTxs offset:1545,len:1, tx:0x88
ZYD eval_getTxs offset:1546,len:8, tx:0x0de0b6b3a7640000
ZYD eval_getTxs offset:1554,len:1, tx:0xb8
ZYD eval_getTxs offset:1555,len:1, tx:0x84
ZYD eval_getTxs offset:1556,len:32, tx:0xb33f805900000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:1588,len:32, tx:0x0000000000000000000000000000000000000000000000000000000000000000
ZYD eval_getTxs offset:1620,len:32, tx:0x00000000000000000000000000000000c949254d682d8c9ad5682521675b8f43
ZYD eval_getTxs offset:1652,len:32, tx:0xb102aec40000000000000000000000000000000000000000000000000de0b6b3
ZYD eval_getTxs offset:1684,len:4, tx:0xa7640000
ZYD eval_getTxs offset:1688,len:1, tx:0x82
ZYD eval_getTxs offset:1689,len:2, tx:0x03e8
ZYD eval_getTxs offset:1691,len:2, tx:0x8080
ZYD eval_getTxs offset:1693,len:32, tx:0xadbd0c3e3f0bb110c87dcd27d9a48cffd080c99c174227b7748ad557f55bcd5e
ZYD eval_getTxs offset:1725,len:32, tx:0x5e39a5c4d6754972544e920dbf66cbde0149a8b81fd6d025e1f86a4569667c43
ZYD eval_getTxs offset:1757,len:1, tx:0x1c
Input: /Users/lanyu/zyd/0xPolygonHermez/zkevm-testvectors/inputs-executor/e2e/e2e_1.json
Finish executor JS ==> 64.61507636499405 s
Current memory heap: 11175.91 MB out of 11797532672
Tests finished in 1.08 minutes
✔ Should run all the inputs (64656ms)
1 passing (5m)
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
Waiting for the debugger to disconnect...
相应e2e_1.json内容为:
"oldStateRoot": "0xc691b749c25cf18b445043ebd060e600b35e7d38c4b88fe0c4d01bb2c672ff3b",
"db":
"0xc691b749c25cf18b445043ebd060e600b35e7d38c4b88fe0c4d01bb2c672ff3b": [
"d7ee2bc30cb308e5",
"46c429b8976b141a",
"0e2db997c9c91a3b",
"f16a71a0842d8430",
"a822fdf2c8c439f7",
"9ee407c3d639909e",
"d48da68e06c66794",
"bb74e357bbd317df",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xf16a71a0842d84300e2db997c9c91a3b46c429b8976b141ad7ee2bc30cb308e5": [
"8fbdff6c36b8298a",
"c5e77de7faba934d",
"c00045d843c5b90d",
"bbb18b60efc833d0",
"b650183deef0d040",
"3bd4fba2826b8a0f",
"a86d6d7b923989e5",
"5850c75e87360144",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xbbb18b60efc833d0c00045d843c5b90dc5e77de7faba934d8fbdff6c36b8298a": [
"58fe40a01930f30e",
"dd46cdebf84c6ec2",
"76b768621c75ad3e",
"0741db2f4c5561d0",
"9e36a979f23a7ee2",
"b8bff02d1fdd841e",
"8e9bba89dfefc17c",
"42e126a4f63a84ef",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x0741db2f4c5561d076b768621c75ad3edd46cdebf84c6ec258fe40a01930f30e": [
"b00385a87786fb9a",
"f61c8af06f1dee7c",
"bf93bbdac239db50",
"1c47810d92e6b511",
"793dadddbee2b05f",
"0895f5fc9d966126",
"727b3ba54a3a404d",
"2c40b54b3a983222",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x1c47810d92e6b511bf93bbdac239db50f61c8af06f1dee7cb00385a87786fb9a": [
"0786a38c592e4606",
"997e6a32824b690f",
"a8b93345512a3729",
"22c60eb6bbce30e8",
"af731097ae915274",
"3911ab4123e96ca8",
"dc2e550370d809f6",
"b5f40607a5a6fcdf",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x22c60eb6bbce30e8a8b93345512a3729997e6a32824b690f0786a38c592e4606": [
"1dcb49524aaff3b5",
"39bd19e82d1d7472",
"130592b281f7a3e7",
"57e1dc066eeb0752",
"095ce83ceba389c4",
"11a656adae593594",
"c67aa5a77e5ca8c2",
"a17228c086b56069",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xa17228c086b56069c67aa5a77e5ca8c211a656adae593594095ce83ceba389c4": [
"0000000097ba5fb5",
"00000000405849e5",
"00000000b30a40b2",
"000000002b36e491",
"000000003f17f196",
"000000004284a544",
"0000000076f7d3cd",
"00000000ad3228b6"
],
"0xb5f40607a5a6fcdfdc2e550370d809f63911ab4123e96ca8af731097ae915274": [
"3dd5b8eeee379792",
"75e9bb259bbbc9f1",
"6a99325b5856fb54",
"297dc91be9048641",
"dd1d4e636df9357e",
"105314ba6a3f23c9",
"9ffe614cf2318c6f",
"bf9b4f8cbba06931",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xbf9b4f8cbba069319ffe614cf2318c6f105314ba6a3f23c9dd1d4e636df9357e": [
"00000000e398ef7a",
"0000000072f1c126",
"00000000defcb323",
"000000009ade8641",
"00000000315cf95b",
"00000000683cc6d6",
"0000000007b281e4",
"00000000e1d3b5c8"
],
"0x2c40b54b3a983222727b3ba54a3a404d0895f5fc9d966126793dadddbee2b05f": [
"e75b4ab15d381c46",
"a156eacdfe65bf53",
"984d18bd4f650af8",
"c9bf22407e0332ba",
"b809afcda272bb2e",
"e64a2f2ef81e2588",
"49aba39ab0d21e1c",
"419437b226725fb9",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xc9bf22407e0332ba984d18bd4f650af8a156eacdfe65bf53e75b4ab15d381c46": [
"85e399cf1e343c2e",
"2f9627c671c1878c",
"3f1fb270bb5fc78b",
"75721e26135fd82f",
"4d3d812cead6de6b",
"66841f22072caf54",
"dded370668983d05",
"671bc22855b1a3b3",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x75721e26135fd82f3f1fb270bb5fc78b2f9627c671c1878c85e399cf1e343c2e": [
"1e4b9fd63752f51e",
"081bcbcea775a2fe",
"5c93cc9e305ab33a",
"1dedb334e6f11bd6",
"7741a64c90b29226",
"47e9f0b777e83998",
"258ed067fb2d83d3",
"a7f03125ca429a8b",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xa7f03125ca429a8b258ed067fb2d83d347e9f0b777e839987741a64c90b29226": [
"0000000092410d30",
"000000008206a99e",
"000000007fc607ee",
"0000000040fec6dc",
"000000001cd6b246",
"00000000642c4af6",
"00000000957c6f8f",
"00000000b4c11951"
],
"0x671bc22855b1a3b3dded370668983d0566841f22072caf544d3d812cead6de6b": [
"29faa00f489c118c",
"3f8073a55ac483ff",
"127282e1c221e94e",
"76c270d18b5502d2",
"1086859aac964ee8",
"f4d9fdbeeb2dd552",
"238f424d170a4ca0",
"be5ac749e7377593",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xbe5ac749e7377593238f424d170a4ca0f4d9fdbeeb2dd5521086859aac964ee8": [
"00000000b7c1c3a5",
"00000000964f2e2e",
"00000000092319f5",
"00000000fe391d82",
"000000004f18a5d4",
"00000000eff26033",
"00000000e016e050",
"00000000f9dc3e7f"
],
"0x419437b226725fb949aba39ab0d21e1ce64a2f2ef81e2588b809afcda272bb2e": [
"3d3f0b39ca24c04e",
"689890248e461474",
"5963f3a23d7dcbf9",
"0b429f74d7f6a737",
"ec3e734e0b75173e",
"848f862c48136f27",
"fb3a5f95630341db",
"c0197a505f2fd6d1",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xc0197a505f2fd6d1fb3a5f95630341db848f862c48136f27ec3e734e0b75173e": [
"00000000dbf55988",
"000000004f1cab7d",
"00000000deb9e40b",
"00000000c42dd696",
"000000009d98deab",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x42e126a4f63a84ef8e9bba89dfefc17cb8bff02d1fdd841e9e36a979f23a7ee2": [
"d07c0672897b6ebc",
"f1ee03d3a6e7e554",
"5d1be542cb0a88a3",
"3fdca0ee9b6da700",
"11947fea02991d5c",
"6580ad1ac66f1142",
"ad1462f1643b34be",
"a1b138c12916499d",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x3fdca0ee9b6da7005d1be542cb0a88a3f1ee03d3a6e7e554d07c0672897b6ebc": [
"5050e94eb465df05",
"5f4f89ea9647435c",
"2be1728f44e667fd",
"2af305e8083faca3",
"192c5c5da5a44b30",
"14ed867bc2fe8732",
"5536a9a8cce7a2ba",
"c2d55b3c29685516",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xc2d55b3c296855165536a9a8cce7a2ba14ed867bc2fe8732192c5c5da5a44b30": [
"000000000f5054e0",
"000000000969d344",
"0000000058507871",
"0000000002ba9675",
"00000000b19955fb",
"00000000a7e1d8fe",
"0000000008c098b9",
"00000000cefad4e5"
],
"0xa1b138c12916499dad1462f1643b34be6580ad1ac66f114211947fea02991d5c": [
"a9f751fb94996ad8",
"d11fe7a30238ba9f",
"9432f5479e723ed9",
"6b68d531c84199e4",
"a615c84c11f89824",
"69d4637193bba9c0",
"5c106f8599cb972d",
"fbca3b5e8ed3a264",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x6b68d531c84199e49432f5479e723ed9d11fe7a30238ba9fa9f751fb94996ad8": [
"54493777edf9a992",
"1f9bd95cc6b1d7a6",
"3451e70c3a4108b6",
"96ad5f22493f37eb",
"4ec9c9b46462bb35",
"cd670ece98b2c349",
"bfbc9f4523ed13f6",
"51cf6a6b21a5dfec",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x96ad5f22493f37eb3451e70c3a4108b61f9bd95cc6b1d7a654493777edf9a992": [
"3d7a46607951811b",
"2bbbff3d46278d72",
"398bf3314f7651ac",
"6b591b6774ecd162",
"34dd259830342825",
"0d6d665d6bee8bc6",
"f59b200db6cd374e",
"e3d4c7352e600835",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xe3d4c7352e600835f59b200db6cd374e0d6d665d6bee8bc634dd259830342825": [
"000000003ab56f83",
"00000000c6b92bcf",
"00000000c98d9524",
"0000000033bf646c",
"000000000f7f6402",
"0000000033c97a05",
"00000000e48063fc",
"00000000ffd70157"
],
"0x51cf6a6b21a5dfecbfbc9f4523ed13f6cd670ece98b2c3494ec9c9b46462bb35": [
"16bae66ae754f98d",
"1fb0dde4ad10d017",
"3eb99750545fd75b",
"3e3ebabc60b8c2aa",
"94830184c5b5290d",
"9b2547f102cbb2c0",
"8e1db1247f9d9a64",
"8534f6a905f296a9",
"0000000000000001",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0x8534f6a905f296a98e1db1247f9d9a649b2547f102cbb2c094830184c5b5290d": [
"000000006c9619ef",
"00000000b602bc21",
"000000000527d971",
"000000008c838dfb",
"00000000bab73464",
"0000000043d0e1ff",
"00000000f74c7b10",
"00000000cdc72595"
],
"0xfbca3b5e8ed3a2645c106f8599cb972d69d4637193bba9c0a615c84c11f89824": [
"196b1e67c037010b",
"bf6e82f285c785ba",
"02d2ea39a6e08b36",
"b8e7f4add673e592",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000",
"0000000000000000"
],
"0xb8e7f4add673e59202d2ea39a6e08b36bf6e82f285c785ba196b1e67c037010b": [
"5281917c28310ffb",
"fe9fb1de6d56b3d9",
"0cc7a1c9ff474648",
"0eb10a589ac88b24",
"d1ab3fa0ff029aea",
"7260440069d00740",
"4024c25eac6e9064",
"2ebe85d5556d244f",
"0000000000000000",
"0000000000000000"以上是关于Polygon zkEVM交易解析的主要内容,如果未能解决你的问题,请参考以下文章