forked from hyperledger/besu-verkle-trie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: bug in TrieKeyAdaptor swapLastByte (hyperledger#13)
swapLastByte did not take properly into account the last byte of a UInt256. Also, the UInt256 is reversed to littleEndian as part of the routine. More tests have been included for contract code chunking. Signed-off-by: Thomas Zamojski <[email protected]> Signed-off-by: Dragan Pilipovic <[email protected]>
- Loading branch information
1 parent
8a097ea
commit 621e772
Showing
4 changed files
with
118 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[ | ||
{ | ||
"address": "0x2a97e18168654393a573599759104efdfec6d8bd", | ||
"bytecode": "0x608060405234801561000f575f80fd5b5060043610610034575f3560e01c80632e64cec1146100385780636057361d14610056575b5f80fd5b610040610072565b60405161004d919061029a565b60405180910390f35b610070600480360381019061006b91906102e1565b61019c565b005b5f8060405161008090610275565b604051809103905ff080158015610099573d5f803e3d5ffd5b5090505f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e64cec16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610107573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061012b9190610320565b90508173ffffffffffffffffffffffffffffffffffffffff16636057361d826040518263ffffffff1660e01b8152600401610166919061029a565b5f604051808303815f87803b15801561017d575f80fd5b505af115801561018f573d5f803e3d5ffd5b505050505f549250505090565b805f819055505f6040516101af90610275565b604051809103905ff0801580156101c8573d5f803e3d5ffd5b5090508073ffffffffffffffffffffffffffffffffffffffff16636057361d836040518263ffffffff1660e01b8152600401610204919061029a565b5f604051808303815f87803b15801561021b575f80fd5b505af115801561022d573d5f803e3d5ffd5b505050508060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6101e38061034c83390190565b5f819050919050565b61029481610282565b82525050565b5f6020820190506102ad5f83018461028b565b92915050565b5f80fd5b6102c081610282565b81146102ca575f80fd5b50565b5f813590506102db816102b7565b92915050565b5f602082840312156102f6576102f56102b3565b5b5f610303848285016102cd565b91505092915050565b5f8151905061031a816102b7565b92915050565b5f60208284031215610335576103346102b3565b5b5f6103428482850161030c565b9150509291505056fe608060405234801561000f575f80fd5b506101c68061001d5f395ff3fe60806040526004361061003e575f3560e01c80632711432d146100425780632e64cec11461006c5780636057361d14610096578063d64c8ca4146100be575b5f80fd5b34801561004d575f80fd5b506100566100c8565b604051610063919061011e565b60405180910390f35b348015610077575f80fd5b506100806100d1565b60405161008d919061011e565b60405180910390f35b3480156100a1575f80fd5b506100bc60048036038101906100b79190610165565b6100d9565b005b6100c66100e9565b005b5f600154905090565b5f8054905090565b805f819055508060018190555050565b5f3390508073ffffffffffffffffffffffffffffffffffffffff16ff5b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b92915050565b5f80fd5b61014481610106565b811461014e575f80fd5b50565b5f8135905061015f8161013b565b92915050565b5f6020828403121561017a57610179610137565b5b5f61018784828501610151565b9150509291505056fea2646970667358221220dc349a9524617af5742ac60346440c0d09b175e4d9c4d95e378a9652cb9acbb064736f6c63430008160033a264697066735822122079744fe4f745783dffcec2415a6b99b8b7b340bcf4a768d5563f00d2ec1f916b64736f6c63430008160033", | ||
"chunks": [ | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b80", "value":"0x00608060405234801561000f575f80fd5b5060043610610034575f3560e01c80"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b81", "value":"0x00632e64cec1146100385780636057361d14610056575b5f80fd5b6100406100"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b82", "value":"0x0172565b60405161004d919061029a565b60405180910390f35b610070600480"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b83", "value":"0x00360381019061006b91906102e1565b61019c565b005b5f8060405161008090"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b84", "value":"0x00610275565b604051809103905ff080158015610099573d5f803e3d5ffd5b50"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b85", "value":"0x0090505f60015f9054906101000a900473ffffffffffffffffffffffffffffff"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b86", "value":"0x05ffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e64"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b87", "value":"0x02cec16040518163ffffffff1660e01b8152600401602060405180830381865a"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b88", "value":"0x00fa158015610107573d5f803e3d5ffd5b505050506040513d601f19601f8201"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b89", "value":"0x00168201806040525081019061012b9190610320565b90508173ffffffffffff"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b8a", "value":"0x0effffffffffffffffffffffffffff16636057361d826040518263ffffffff16"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b8b", "value":"0x0060e01b8152600401610166919061029a565b5f604051808303815f87803b15"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b8c", "value":"0x00801561017d575f80fd5b505af115801561018f573d5f803e3d5ffd5b505050"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b8d", "value":"0x00505f549250505090565b805f819055505f6040516101af90610275565b6040"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b8e", "value":"0x0051809103905ff0801580156101c8573d5f803e3d5ffd5b5090508073ffffff"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b8f", "value":"0x11ffffffffffffffffffffffffffffffffff16636057361d836040518263ffff"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b90", "value":"0x02ffff1660e01b8152600401610204919061029a565b5f604051808303815f87"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b91", "value":"0x00803b15801561021b575f80fd5b505af115801561022d573d5f803e3d5ffd5b"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b92", "value":"0x00505050508060015f6101000a81548173ffffffffffffffffffffffffffffff"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b93", "value":"0x05ffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b94", "value":"0x001602179055505050565b6101e38061034c83390190565b5f81905091905056"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b95", "value":"0x005b61029481610282565b82525050565b5f6020820190506102ad5f83018461"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b96", "value":"0x02028b565b92915050565b5f80fd5b6102c081610282565b81146102ca575f80"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b97", "value":"0x00fd5b50565b5f813590506102db816102b7565b92915050565b5f6020828403"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b98", "value":"0x0012156102f6576102f56102b3565b5b5f610303848285016102cd565b915050"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b99", "value":"0x0092915050565b5f8151905061031a816102b7565b92915050565b5f60208284"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b9a", "value":"0x00031215610335576103346102b3565b5b5f6103428482850161030c565b9150"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b9b", "value":"0x00509291505056fe608060405234801561000f575f80fd5b506101c68061001d"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b9c", "value":"0x005f395ff3fe60806040526004361061003e575f3560e01c80632711432d1461"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b9d", "value":"0x0200425780632e64cec11461006c5780636057361d14610096578063d64c8ca4"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b9e", "value":"0x00146100be575b5f80fd5b34801561004d575f80fd5b506100566100c8565b60"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09b9f", "value":"0x014051610063919061011e565b60405180910390f35b348015610077575f80fd"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba0", "value":"0x005b506100806100d1565b60405161008d919061011e565b60405180910390f3"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba1", "value":"0x005b3480156100a1575f80fd5b506100bc60048036038101906100b791906101"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba2", "value":"0x0165565b6100d9565b005b6100c66100e9565b005b5f600154905090565b5f80"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba3", "value":"0x0054905090565b805f819055508060018190555050565b5f3390508073ffffff"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba4", "value":"0x11ffffffffffffffffffffffffffffffffff16ff5b5f819050919050565b6101"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba5", "value":"0x011881610106565b82525050565b5f6020820190506101315f83018461010f56"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba6", "value":"0x005b92915050565b5f80fd5b61014481610106565b811461014e575f80fd5b50"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba7", "value":"0x00565b5f8135905061015f8161013b565b92915050565b5f6020828403121561"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba8", "value":"0x02017a57610179610137565b5b5f61018784828501610151565b915050929150"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09ba9", "value":"0x005056fea2646970667358221220dc349a9524617af5742ac60346440c0d09b1"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09baa", "value":"0x0c75e4d9c4d95e378a9652cb9acbb064736f6c63430008160033a26469706673"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09bab", "value":"0x015822122079744fe4f745783dffcec2415a6b99b8b7b340bcf4a768d5563f00"}, | ||
{"key":"0xf0c7bf7821bc37c3074a1ea01bc6bf6d0d3f9d29c36b85be1b88a26472a09bac", "value":"0x00d2ec1f916b64736f6c63430008160033000000000000000000000000000000"} | ||
] | ||
} | ||
] |