aboutsummaryrefslogtreecommitdiffstats
path: root/src/TransactionTestsFiller/ttSignature
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2017-11-30 09:39:45 +0800
committerDimitry <dimitry@ethereum.org>2017-11-30 09:39:45 +0800
commitc200d9beebed39296c2e3cf09c2472e836ef8f30 (patch)
tree63d063eb67af4b67957ff7b7d184b0e640a392c7 /src/TransactionTestsFiller/ttSignature
parentbffedcb426663a4935782e91d28de3ece82df40f (diff)
downloaddexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar
dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.gz
dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.bz2
dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.lz
dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.xz
dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.tar.zst
dexon-tests-c200d9beebed39296c2e3cf09c2472e836ef8f30.zip
convert Frontier and Homestead ttTests to new format
Diffstat (limited to 'src/TransactionTestsFiller/ttSignature')
-rw-r--r--src/TransactionTestsFiller/ttSignature/EmptyTransactionFiller.json22
-rw-r--r--src/TransactionTestsFiller/ttSignature/RSsecp256k1Filler.json21
-rw-r--r--src/TransactionTestsFiller/ttSignature/RightVRSTestFiller.json22
-rw-r--r--src/TransactionTestsFiller/ttSignature/SenderTestFiller.json24
-rw-r--r--src/TransactionTestsFiller/ttSignature/TransactionWithTooFewRLPElementsFiller.json20
-rw-r--r--src/TransactionTestsFiller/ttSignature/TransactionWithTooManyRLPElementsFiller.json23
-rw-r--r--src/TransactionTestsFiller/ttSignature/WrongVRSTestIncorrectSizeFiller.json22
-rw-r--r--src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual26Filler.json22
-rw-r--r--src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual29Filler.json22
-rw-r--r--src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual31Filler.json22
-rw-r--r--src/TransactionTestsFiller/ttSignature/WrongVRSTestVOverflowFiller.json22
-rw-r--r--src/TransactionTestsFiller/ttSignature/invalidSignatureFiller.json21
-rw-r--r--src/TransactionTestsFiller/ttSignature/libsecp256k1testFiller.json21
13 files changed, 284 insertions, 0 deletions
diff --git a/src/TransactionTestsFiller/ttSignature/EmptyTransactionFiller.json b/src/TransactionTestsFiller/ttSignature/EmptyTransactionFiller.json
new file mode 100644
index 000000000..691590bd2
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/EmptyTransactionFiller.json
@@ -0,0 +1,22 @@
+{
+ "EmptyTransaction" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "0",
+ "gasPrice" : "0",
+ "nonce" : "0",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "0",
+ "v" : "27",
+ "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353",
+ "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/RSsecp256k1Filler.json b/src/TransactionTestsFiller/ttSignature/RSsecp256k1Filler.json
new file mode 100644
index 000000000..fc3455ebf
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/RSsecp256k1Filler.json
@@ -0,0 +1,21 @@
+{
+ "RSsecp256k1" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" : {
+ "data" : "0x",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "3",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : "10",
+ "v" : "28",
+ "r" : "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",
+ "s" : "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/RightVRSTestFiller.json b/src/TransactionTestsFiller/ttSignature/RightVRSTestFiller.json
new file mode 100644
index 000000000..aeb963178
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/RightVRSTestFiller.json
@@ -0,0 +1,22 @@
+{
+ "RightVRSTest" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "valid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "0x",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "3",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : "10",
+ "v" : "28",
+ "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
+ "s" : "0x1887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/SenderTestFiller.json b/src/TransactionTestsFiller/ttSignature/SenderTestFiller.json
new file mode 100644
index 000000000..6d3ccd054
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/SenderTestFiller.json
@@ -0,0 +1,24 @@
+{
+ "SenderTest" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "valid",
+ "sender" : "963f4a0d8a11b758de8d5b99ab4ac898d6438ea6"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "10",
+ "v" : "27",
+ "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353",
+ "s" : "secretkey 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "s" : "0x1fffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/TransactionWithTooFewRLPElementsFiller.json b/src/TransactionTestsFiller/ttSignature/TransactionWithTooFewRLPElementsFiller.json
new file mode 100644
index 000000000..bdcd43602
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/TransactionWithTooFewRLPElementsFiller.json
@@ -0,0 +1,20 @@
+{
+ "TransactionWithTooFewRLPElements" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "v" : "27",
+ "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353",
+ "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/TransactionWithTooManyRLPElementsFiller.json b/src/TransactionTestsFiller/ttSignature/TransactionWithTooManyRLPElementsFiller.json
new file mode 100644
index 000000000..098307d6f
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/TransactionWithTooManyRLPElementsFiller.json
@@ -0,0 +1,23 @@
+{
+ "TransactionWithTooManyRLPElements" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "10",
+ "v" : "27",
+ "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353",
+ "s" : "0xefffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804",
+ "extrafield" : "128472387293"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/WrongVRSTestIncorrectSizeFiller.json b/src/TransactionTestsFiller/ttSignature/WrongVRSTestIncorrectSizeFiller.json
new file mode 100644
index 000000000..170d0dc7e
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/WrongVRSTestIncorrectSizeFiller.json
@@ -0,0 +1,22 @@
+{
+ "WrongVRSTestIncorrectSize" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : "10",
+ "v" : "28",
+ "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a02c3",
+ "s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a302c3"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual26Filler.json b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual26Filler.json
new file mode 100644
index 000000000..5e618a388
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual26Filler.json
@@ -0,0 +1,22 @@
+{
+ "WrongVRSTestVEqual26" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : "10",
+ "v" : "26",
+ "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
+ "s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual29Filler.json b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual29Filler.json
new file mode 100644
index 000000000..29f943ff1
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual29Filler.json
@@ -0,0 +1,22 @@
+{
+ "WrongVRSTestVEqual29" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : "10",
+ "v" : "29",
+ "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
+ "s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual31Filler.json b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual31Filler.json
new file mode 100644
index 000000000..f5f534ce6
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual31Filler.json
@@ -0,0 +1,22 @@
+{
+ "WrongVRSTestVEqual31" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : "10",
+ "v" : "31",
+ "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
+ "s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/WrongVRSTestVOverflowFiller.json b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVOverflowFiller.json
new file mode 100644
index 000000000..aa02688df
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/WrongVRSTestVOverflowFiller.json
@@ -0,0 +1,22 @@
+{
+ "WrongVRSTestVOverflow" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" :
+ {
+ "data" : "",
+ "gasLimit" : "21000",
+ "gasPrice" : "1",
+ "nonce" : "0",
+ "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b",
+ "value" : "10",
+ "v" : "310",
+ "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a",
+ "s" : "0x8887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/invalidSignatureFiller.json b/src/TransactionTestsFiller/ttSignature/invalidSignatureFiller.json
new file mode 100644
index 000000000..cb46e6ded
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/invalidSignatureFiller.json
@@ -0,0 +1,21 @@
+{
+ "invalidSignature" : {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "invalid"
+ }
+ ],
+ "transaction" : {
+ "data" : "",
+ "gasLimit" : "1000000",
+ "gasPrice" : "0",
+ "nonce" : "0",
+ "r" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
+ "s" : "0xbadf00d70ec28c94a3b55ec771bcbc70778d6ee0b51ca7ea9514594c861b1884",
+ "v": "27",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "100000"
+ }
+ }
+}
diff --git a/src/TransactionTestsFiller/ttSignature/libsecp256k1testFiller.json b/src/TransactionTestsFiller/ttSignature/libsecp256k1testFiller.json
new file mode 100644
index 000000000..00ff4653b
--- /dev/null
+++ b/src/TransactionTestsFiller/ttSignature/libsecp256k1testFiller.json
@@ -0,0 +1,21 @@
+{
+ "libsecp256k1test": {
+ "expect" : [
+ {
+ "network" : ["ALL"],
+ "result" : "valid"
+ }
+ ],
+ "transaction": {
+ "nonce": "0",
+ "gasPrice": "0x09184e72a000",
+ "gasLimit": "0xf388",
+ "to": "",
+ "data": "0x",
+ "r": "44",
+ "s": "4",
+ "v": "27",
+ "value": "0"
+ }
+ }
+}