diff options
author | winsvega <winsvega@mail.ru> | 2015-04-21 08:01:45 +0800 |
---|---|---|
committer | winsvega <winsvega@mail.ru> | 2015-04-21 08:01:45 +0800 |
commit | ebe1f586678c1a631bafef23e3a96e3cf5180b60 (patch) | |
tree | 278002722ad352743219489299068ec007db1973 /TransactionTests | |
parent | 6bfc839deae07d104b5270b692c057ba1c881a9e (diff) | |
download | dexon-tests-ebe1f586678c1a631bafef23e3a96e3cf5180b60.tar dexon-tests-ebe1f586678c1a631bafef23e3a96e3cf5180b60.tar.gz dexon-tests-ebe1f586678c1a631bafef23e3a96e3cf5180b60.tar.bz2 dexon-tests-ebe1f586678c1a631bafef23e3a96e3cf5180b60.tar.lz dexon-tests-ebe1f586678c1a631bafef23e3a96e3cf5180b60.tar.xz dexon-tests-ebe1f586678c1a631bafef23e3a96e3cf5180b60.tar.zst dexon-tests-ebe1f586678c1a631bafef23e3a96e3cf5180b60.zip |
New RLP Tests
New Transaction RS tests
Diffstat (limited to 'TransactionTests')
-rw-r--r-- | TransactionTests/ttTransactionTest.json | 21 | ||||
-rw-r--r-- | TransactionTests/ttWrongRLPTransaction.json | 22 |
2 files changed, 40 insertions, 3 deletions
diff --git a/TransactionTests/ttTransactionTest.json b/TransactionTests/ttTransactionTest.json index 62004fba9..cbd5c65b1 100644 --- a/TransactionTests/ttTransactionTest.json +++ b/TransactionTests/ttTransactionTest.json @@ -168,6 +168,12 @@ "TransactionWithNonceOverflow" : { "rlp" : "0xf880a10100000000000000000000000000000000000000000000000000000000000000000182520894095e7baea6a6c7c4c2dfeb977efac326af552d870b801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" }, + "TransactionWithRSvalue0" : { + "rlp" : "0xdf800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870b801b8080" + }, + "TransactionWithRvalue0" : { + "rlp" : "0xf83f800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870b801b80a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" + }, "TransactionWithRvalueHigh" : { "rlp" : "0xf85f800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870b801ba0fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140a08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" }, @@ -192,6 +198,21 @@ "TransactionWithRvalueTooHigh" : { "rlp" : "0xf85f800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870b801ba0fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141a0efffd310ac743f371de3b9f7f9cb56c0b28ad43601b4ab949f53faa07bd2c804" }, + "TransactionWithSvalue0" : { + "rlp" : "0xf83f800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870b801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a3664935380", + "sender" : "f9c8b2d1e51d4cd5e749fd80393caf36879bca08", + "transaction" : { + "data" : "0x", + "gasLimit" : "0x5208", + "gasPrice" : "0x01", + "nonce" : "0x", + "r" : "0x48b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353", + "s" : "0x", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "v" : "0x1b", + "value" : "0x0b" + } + }, "TransactionWithSvalueHigh" : { "rlp" : "0xf85f800182520894095e7baea6a6c7c4c2dfeb977efac326af552d870b801ba048b55bfa915ac795c431978d8a6a992b628d557da5ff759b307d495a36649353a0fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2e", "sender" : "cae01e4c9e1eb0fc7676055de1fa1f1e8cfd36ee", diff --git a/TransactionTests/ttWrongRLPTransaction.json b/TransactionTests/ttWrongRLPTransaction.json index 6caf47984..23f85bd2b 100644 --- a/TransactionTests/ttWrongRLPTransaction.json +++ b/TransactionTests/ttWrongRLPTransaction.json @@ -1,10 +1,26 @@ { - "RLPLengthWithFirstZeros" : { + "aMalicousRLP" : { + "rlp" : "0xb8" + }, + + "RLPListLengthWithFirstZeros" : { "rlp" : "0xf9005f030182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" }, - "RLPIncorrectByteEncoding" : { - "rlp" : "0xf86081030182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" + "RLPArrayLengthWithFirstZeros" : { + "rlp" : "0xf8a20301830186a094b94f5374fce5edbc8e2a8697c15331677e6ebf0b0ab90040ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" + }, + + "RLPIncorrectByteEncoding00" : { + "rlp" : "0xf86081000182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" + }, + + "RLPIncorrectByteEncoding01" : { + "rlp" : "0xf86081010182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" + }, + + "RLPIncorrectByteEncoding127" : { + "rlp" : "0xf860817f0182520894b94f5374fce5edbc8e2a8697c15331677e6ebf0b0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa08887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" }, "RLPNonceWithFirstZeros" : { |