aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-07-22 23:00:17 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-07-23 00:01:09 +0800
commit68d46a73b22dc6d308d74370c72ca1832a59201b (patch)
tree1ce6ef867dd47fa800cc914d8b3208801be63c22
parentbd07ab22cdc811bd553ef199a8585a0eb1862b28 (diff)
downloadtangerine-tests-68d46a73b22dc6d308d74370c72ca1832a59201b.tar
tangerine-tests-68d46a73b22dc6d308d74370c72ca1832a59201b.tar.gz
tangerine-tests-68d46a73b22dc6d308d74370c72ca1832a59201b.tar.bz2
tangerine-tests-68d46a73b22dc6d308d74370c72ca1832a59201b.tar.lz
tangerine-tests-68d46a73b22dc6d308d74370c72ca1832a59201b.tar.xz
tangerine-tests-68d46a73b22dc6d308d74370c72ca1832a59201b.tar.zst
tangerine-tests-68d46a73b22dc6d308d74370c72ca1832a59201b.zip
Add tx and state tests with invalid EC sig (point at infinity)
-rw-r--r--StateTests/stPreCompiledContracts.json73
-rw-r--r--TransactionTests/ttTransactionTest.json5
2 files changed, 76 insertions, 2 deletions
diff --git a/StateTests/stPreCompiledContracts.json b/StateTests/stPreCompiledContracts.json
index 7af011873..1db3db63f 100644
--- a/StateTests/stPreCompiledContracts.json
+++ b/StateTests/stPreCompiledContracts.json
@@ -3569,6 +3569,77 @@
"value" : "0x0186a0"
}
},
+ "CallEcrecoverPointAtInfinity" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x989680",
+ "currentNumber" : "0x00",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "0000000000000000000000000000000000000001" : {
+ "balance" : "0x00",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0132b3a0",
+ "code" : "0x7f3030303030303030303030303030303030303030303030303030303030303030600052601b6020527f54934de9c6d574e3c3483b14fe14aa7d804f8aaf2c6e925b2dbcf4f5ea418bb66040527ff66053ef25bc2fc9583d5ecaaf454a5746c3b2ee74ee6c2ef5998355baf6e113606052602060806080600060006001620493e0f160025560a060020a608051066000556000543214600155",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x00" : "0x00",
+ "0x02" : "0x01"
+ }
+ },
+ "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "0x13570",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0xde0b6b3a76143f0",
+ "code" : "0x",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "postStateRoot" : "01db8d537ef9c4105f8bdcf498f91d27afab98ebd33970cae678a29d613bfe97",
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x01312d00",
+ "code" : "0x7f3030303030303030303030303030303030303030303030303030303030303030600052601b6020527f54934de9c6d574e3c3483b14fe14aa7d804f8aaf2c6e925b2dbcf4f5ea418bb66040527ff66053ef25bc2fc9583d5ecaaf454a5746c3b2ee74ee6c2ef5998355baf6e113606052602060806080600060006001620493e0f160025560a060020a608051066000556000543214600155",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "",
+ "gasLimit" : "0x37ba90",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "0x0186a0"
+ }
+ },
"CallEcrecoverR_prefixed0" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
@@ -5781,4 +5852,4 @@
"value" : "0x0186a0"
}
}
-} \ No newline at end of file
+}
diff --git a/TransactionTests/ttTransactionTest.json b/TransactionTests/ttTransactionTest.json
index b564fa8fa..00169d293 100644
--- a/TransactionTests/ttTransactionTest.json
+++ b/TransactionTests/ttTransactionTest.json
@@ -425,5 +425,8 @@
"v" : "0x1c",
"value" : "0x00"
}
+ },
+ "ECSigPointAtInfinity" : {
+ "rlp" : "0xf84c01028332dcd58004801ba024843272ee176277535489859cbd275686023fe64aabd158b6fcdf2ae6a1ab6ba02f252a5016a48e5ec8d17aefaf4324d29b9e123fa623dc5a60539b3ad3610c95"
}
-} \ No newline at end of file
+}