Skip to content

Commit

Permalink
Merge pull request #713 from ethereum/deip2537
Browse files Browse the repository at this point in the history
stEIP2537 test vectors
  • Loading branch information
winsvega authored Jul 10, 2020
2 parents a5ef541 + 5e75126 commit feb0442
Show file tree
Hide file tree
Showing 2,806 changed files with 188,002 additions and 0 deletions.
64 changes: 64 additions & 0 deletions GeneralStateTests/stEIP2537/extras_fp2_to_g2_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp2_to_g2_0" : {
"_info" : {
"comment" : "A test for extras_fp2_to_g2_0",
"filling-rpc-server" : "evm version 1.9.15-unstable-365a7ec8-20200629",
"filling-tool-version" : "retesteth-0.0.6-profiling-berlin+commit.caf8b516.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2020.6.22+commit.9189ad7a.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stEIP2537/extras_fp2_to_g2_0Filler.json",
"sourceHash" : "f1cea3055b20a60809bf774745fdf06f45ab7b68830d49b8fca4d1f874700155"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"Berlin" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0xbee04e8d811e9cf133568b04683ac071c92f157123c69f3975ceb78e4de77843",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd429900000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002256031a4cc1bd58dc0e2ebb13b49b5ded8a28170c5ea0fd"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
64 changes: 64 additions & 0 deletions GeneralStateTests/stEIP2537/extras_fp2_to_g2_1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp2_to_g2_1" : {
"_info" : {
"comment" : "A test for extras_fp2_to_g2_1",
"filling-rpc-server" : "evm version 1.9.15-unstable-365a7ec8-20200629",
"filling-tool-version" : "retesteth-0.0.6-profiling-berlin+commit.caf8b516.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2020.6.22+commit.9189ad7a.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stEIP2537/extras_fp2_to_g2_1Filler.json",
"sourceHash" : "93f97bbbf5ccfdfa282a5abac2e449c50bf4ef9ac971de2769795430d0337fed"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"Berlin" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0x7aa881e4f5f8854c1f0e4d4594a1c8a4bc555cd0ff6cfa347d194e890a2d2a17",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd42990000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000241031a4cc1bd58dc0e2ebb256b49b5ded8a28170c5ea0fd"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
64 changes: 64 additions & 0 deletions GeneralStateTests/stEIP2537/extras_fp2_to_g2_2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp2_to_g2_2" : {
"_info" : {
"comment" : "A test for extras_fp2_to_g2_2",
"filling-rpc-server" : "evm version 1.9.15-unstable-365a7ec8-20200629",
"filling-tool-version" : "retesteth-0.0.6-profiling-berlin+commit.caf8b516.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2020.6.22+commit.9189ad7a.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stEIP2537/extras_fp2_to_g2_2Filler.json",
"sourceHash" : "51bd9b1b857315ea7216262f471e678f065b10b8e07bbe9b0ebe6f39baf41605"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"Berlin" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0x56fa99a1e2424873c1b5380b4b29cf07c67528b9ae87bd263cecace946282e2b",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd42990000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000241031a4cc1bd58dc0e2ebb13b49b5ded8a282560c5ea0fd"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
64 changes: 64 additions & 0 deletions GeneralStateTests/stEIP2537/extras_fp_to_g1_0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"extras_fp_to_g1_0" : {
"_info" : {
"comment" : "A test for extras_fp_to_g1_0",
"filling-rpc-server" : "evm version 1.9.15-unstable-365a7ec8-20200629",
"filling-tool-version" : "retesteth-0.0.6-profiling-berlin+commit.caf8b516.Linux.g++",
"lllcversion" : "Version: 0.5.14-develop.2020.6.22+commit.9189ad7a.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stEIP2537/extras_fp_to_g1_0Filler.json",
"sourceHash" : "d0202b280935263d4b316d93874dd62b69cd28a8dce6e3c7c014043d7dbb269d"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x020000",
"currentGasLimit" : "0xff112233445566",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"Berlin" : [
{
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"hash" : "0xa557fcb7ee3a31968c3d2bfcfbd19416f637ce7e87baebbfed37270544c9271c",
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
"balance" : "0x00",
"code" : "0x60806040526004361061001e5760003560e01c806312bd429914610023575b600080fd5b6100fc6004803603604081101561003957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561007657600080fd5b82018360208201111561008857600080fd5b803590602001918460018302840111640100000000831117156100aa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610182565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561014657808201518184015260208101905061012b565b50505050905090810190601f1680156101735780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101d157805182526020820191506020810190506020830392506101ae565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610231576040519150601f19603f3d011682016040523d82523d6000602084013e610236565b606091505b508092508193505050600060405180807f6572726f72000000000000000000000000000000000000000000000000000000815250600501905060405180910390209050821561028a57818051906020012090505b8060025582829250925050925092905056fea2646970667358221220db58d80e8530eed625d9b4250a6055c2eb1d7c117a7ca267e6f8a059bdd2f39e64736f6c634300060a0033",
"nonce" : "0x01",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x12bd429900000000000000000000000000000000000000000000000000000000000000110000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000215a2313a0241779006bce33a776aeedae5d05ea6ee5a9b9"
],
"gasLimit" : [
"0x6acfc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87",
"value" : [
"0x03e8"
]
}
}
}
Loading

0 comments on commit feb0442

Please sign in to comment.