From c200d9beebed39296c2e3cf09c2472e836ef8f30 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 30 Nov 2017 04:39:45 +0300 Subject: convert Frontier and Homestead ttTests to new format --- .../ttSignature/EmptyTransactionFiller.json | 22 ++++++++++++++++++++ .../ttSignature/RSsecp256k1Filler.json | 21 +++++++++++++++++++ .../ttSignature/RightVRSTestFiller.json | 22 ++++++++++++++++++++ .../ttSignature/SenderTestFiller.json | 24 ++++++++++++++++++++++ .../TransactionWithTooFewRLPElementsFiller.json | 20 ++++++++++++++++++ .../TransactionWithTooManyRLPElementsFiller.json | 23 +++++++++++++++++++++ .../WrongVRSTestIncorrectSizeFiller.json | 22 ++++++++++++++++++++ .../ttSignature/WrongVRSTestVEqual26Filler.json | 22 ++++++++++++++++++++ .../ttSignature/WrongVRSTestVEqual29Filler.json | 22 ++++++++++++++++++++ .../ttSignature/WrongVRSTestVEqual31Filler.json | 22 ++++++++++++++++++++ .../ttSignature/WrongVRSTestVOverflowFiller.json | 22 ++++++++++++++++++++ .../ttSignature/invalidSignatureFiller.json | 21 +++++++++++++++++++ .../ttSignature/libsecp256k1testFiller.json | 21 +++++++++++++++++++ 13 files changed, 284 insertions(+) create mode 100644 src/TransactionTestsFiller/ttSignature/EmptyTransactionFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/RSsecp256k1Filler.json create mode 100644 src/TransactionTestsFiller/ttSignature/RightVRSTestFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/SenderTestFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/TransactionWithTooFewRLPElementsFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/TransactionWithTooManyRLPElementsFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/WrongVRSTestIncorrectSizeFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual26Filler.json create mode 100644 src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual29Filler.json create mode 100644 src/TransactionTestsFiller/ttSignature/WrongVRSTestVEqual31Filler.json create mode 100644 src/TransactionTestsFiller/ttSignature/WrongVRSTestVOverflowFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/invalidSignatureFiller.json create mode 100644 src/TransactionTestsFiller/ttSignature/libsecp256k1testFiller.json (limited to 'src/TransactionTestsFiller/ttSignature') 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" + } + } +} -- cgit v1.2.3