├── cmd ├── evm │ └── testdata │ │ ├── 1 │ │ ├── env.json │ │ ├── alloc.json │ │ └── txs.json │ │ ├── 2 │ │ ├── readme.md │ │ ├── env.json │ │ ├── alloc.json │ │ └── txs.json │ │ ├── 3 │ │ ├── readme.md │ │ ├── env.json │ │ ├── alloc.json │ │ └── txs.json │ │ ├── 4 │ │ ├── readme.md │ │ ├── env.json │ │ ├── alloc.json │ │ └── txs.json │ │ ├── 5 │ │ ├── alloc.json │ │ ├── txs.json │ │ ├── readme.md │ │ └── env.json │ │ ├── 7 │ │ ├── txs.json │ │ ├── env.json │ │ ├── readme.md │ │ └── alloc.json │ │ ├── 8 │ │ ├── env.json │ │ └── alloc.json │ │ ├── 9 │ │ ├── env.json │ │ ├── alloc.json │ │ └── txs.json │ │ ├── 10 │ │ ├── env.json │ │ └── alloc.json │ │ ├── 11 │ │ ├── env.json │ │ ├── txs.json │ │ ├── readme.md │ │ └── alloc.json │ │ ├── 12 │ │ ├── alloc.json │ │ ├── env.json │ │ └── txs.json │ │ ├── 13 │ │ ├── readme.md │ │ ├── signed_txs.rlp │ │ ├── exp.json │ │ ├── env.json │ │ ├── alloc.json │ │ └── txs.json │ │ ├── 14 │ │ ├── txs.json │ │ ├── alloc.json │ │ ├── env.json │ │ ├── env.uncles.json │ │ ├── exp.json │ │ ├── exp2.json │ │ └── exp_berlin.json │ │ ├── 15 │ │ ├── exp.json │ │ ├── exp2.json │ │ ├── signed_txs.rlp │ │ ├── signed_txs.rlp.json │ │ ├── blockheader.rlp │ │ └── exp3.json │ │ ├── 16 │ │ ├── signed_txs.rlp │ │ ├── exp.json │ │ └── unsigned_txs.json │ │ ├── 17 │ │ ├── exp.json │ │ └── signed_txs.rlp │ │ ├── 18 │ │ ├── invalid.rlp │ │ └── README.md │ │ ├── 19 │ │ ├── txs.json │ │ ├── alloc.json │ │ ├── env.json │ │ ├── readme.md │ │ ├── exp_london.json │ │ ├── exp_arrowglacier.json │ │ └── exp_grayglacier.json │ │ ├── 20 │ │ ├── ommers.json │ │ └── txs.rlp │ │ ├── 21 │ │ ├── ommers.json │ │ ├── txs.rlp │ │ ├── clique.json │ │ ├── header.json │ │ └── exp.json │ │ ├── 22 │ │ ├── txs.rlp │ │ └── header.json │ │ ├── 23 │ │ ├── readme.md │ │ ├── env.json │ │ ├── alloc.json │ │ └── txs.json │ │ └── 24 │ │ ├── env.json │ │ ├── env-missingrandom.json │ │ ├── alloc.json │ │ └── txs.json ├── geth │ └── testdata │ │ ├── empty.js │ │ ├── password.txt │ │ ├── passwords.txt │ │ ├── wrong-passwords.txt │ │ ├── key.prv │ │ ├── blockchain.blocks │ │ ├── vcheck │ │ ├── signifykey.pub │ │ ├── minisign.pub │ │ ├── signify-sigs │ │ │ └── data.json.sig │ │ ├── signifykey.sec │ │ ├── minisign.sec │ │ ├── sigs │ │ │ ├── vulnerabilities.json.minisig.2 │ │ │ ├── vulnerabilities.json.minisig.3 │ │ │ └── vulnerabilities.json.minisig.1 │ │ └── minisig-sigs │ │ │ ├── vulnerabilities.json.minisig.2 │ │ │ ├── vulnerabilities.json.minisig.3 │ │ │ └── vulnerabilities.json.minisig.1 │ │ ├── guswallet.json │ │ └── clique.json ├── clef │ ├── requirements.txt │ ├── sign_flow.png │ ├── docs │ │ ├── clef_architecture_pt1.png │ │ ├── clef_architecture_pt2.png │ │ ├── clef_architecture_pt3.png │ │ ├── clef_architecture_pt4.png │ │ └── qubes │ │ │ ├── clef_qubes_http.png │ │ │ ├── qrexec-example.png │ │ │ ├── clef_qubes_qrexec.png │ │ │ ├── qubes_newaccount-1.png │ │ │ ├── qubes_newaccount-2.png │ │ │ ├── qubes.Clefsign │ │ │ └── qubes-client.py │ └── testdata │ │ ├── sign_normal_exp_ok.json │ │ ├── sign_bad_checksum_exp_fail.json │ │ ├── sign_1559_missing_field_exp_fail.json │ │ ├── sign_1559_missing_maxfeepergas_exp_fail.json │ │ └── sign_1559_tx.json └── devp2p │ └── internal │ └── ethtest │ └── testdata │ ├── chain.rlp │ ├── halfchain.rlp │ └── genesis.json ├── accounts └── keystore │ └── testdata │ ├── keystore │ ├── empty │ ├── garbage │ ├── no-address │ ├── aaa │ ├── zero │ ├── zzz │ ├── .hiddenfile │ ├── foo │ │ └── fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e │ ├── UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8 │ └── README │ ├── dupes │ ├── 1 │ ├── 2 │ └── foo │ ├── very-light-scrypt.json │ └── v1 │ └── cb61d5a9c4896fb9658090b597ef0e7be6f7b67e │ └── cb61d5a9c4896fb9658090b597ef0e7be6f7b67e ├── crypto ├── secp256k1 │ ├── libsecp256k1 │ │ ├── obj │ │ │ └── .gitignore │ │ ├── autogen.sh │ │ ├── TODO │ │ ├── src │ │ │ ├── dummy.go │ │ │ ├── modules │ │ │ │ ├── dummy.go │ │ │ │ ├── ecdh │ │ │ │ │ ├── dummy.go │ │ │ │ │ └── Makefile.am.include │ │ │ │ └── recovery │ │ │ │ │ ├── dummy.go │ │ │ │ │ └── Makefile.am.include │ │ │ ├── java │ │ │ │ ├── org_bitcoin_Secp256k1Context.c │ │ │ │ └── org_bitcoin_Secp256k1Context.h │ │ │ ├── scalar_low.h │ │ │ ├── ecmult_const.h │ │ │ ├── num_gmp.h │ │ │ ├── num_impl.h │ │ │ ├── scalar_8x32.h │ │ │ ├── scalar_4x64.h │ │ │ └── basic-config.h │ │ ├── dummy.go │ │ ├── contrib │ │ │ └── dummy.go │ │ ├── include │ │ │ └── dummy.go │ │ ├── libsecp256k1.pc.in │ │ └── .gitignore │ ├── .gitignore │ ├── scalar_mult_nocgo.go │ ├── panic_cb.go │ └── dummy.go ├── bls12381 │ └── bls12_381_test.go ├── ecies │ └── .gitignore ├── blake2b │ ├── blake2b_ref.go │ ├── blake2b_amd64.go │ └── register.go └── bn256 │ ├── cloudflare │ ├── gfp_decl.go │ └── lattice_test.go │ ├── bn256_slow.go │ └── bn256_fast.go ├── console └── testdata │ ├── exec.js │ └── preload.js ├── tests ├── fuzzers │ ├── txfetcher │ │ └── corpus │ │ │ ├── da39a3ee5e6b4b0d3255bfef95601890afd80709 │ │ │ ├── b858cb282617fb0956d960215c8e84d1ccf909c6-2 │ │ │ ├── bc9d570aacf3acd39600feda8e72a293a4667da4-1 │ │ │ ├── 717928e0e2d478c680c6409b173552ca98469ba5-6 │ │ │ ├── 3c73b63bafa9f535c882ec17189adaf02b58f432-6 │ │ │ ├── cd1d73b4e101bc7b979e3f6f135cb12d4594d348-5 │ │ │ ├── f94d60a6c556ce485ab60088291760b8be25776c-6 │ │ │ ├── dd441bd24581332c9ce19e008260a69287aa3cbc-6 │ │ │ ├── a8f7c254eb64a40fd2a77b79979c7bbdac6a760c-4 │ │ │ ├── ebdc17efe343e412634dca57cecd5a0e1ce1c1c7-5 │ │ │ ├── eb70814d6355a4498b8f301ba8dbc34f895a9947-5 │ │ │ ├── f7a3cd00fa0e57742e7dbbb8283dcaea067eaf7b-5 │ │ │ ├── 1e14c7ea1faef92890988061b5abe96db7190f98-7 │ │ │ ├── 84f8c275f3ffbaf8c32c21782af13de10e7de28b-3 │ │ │ ├── 21e76b9fca21d94d97f860c1c82f40697a83471b-8 │ │ │ ├── be7eed35b245b5d5d2adcdb4c67f07794eb86b24-3 │ │ │ ├── 7312a0f31ae5d773ed4fd74abc7521eb14754683-8 │ │ │ ├── 4a0a12f5b033c8c160cc3b5133692ea1e92c6cdf-7 │ │ │ ├── aa7444d8e326158046862590a0db993c07aef372-7 │ │ │ ├── 0151ee1d0db4c74d3bcdfa4f7396a4c8538748c9-2 │ │ │ ├── 020dd7b492a6eb34ff0b7d8ee46189422c37e4a7-6 │ │ │ ├── 021d1144e359233c496e22c3250609b11b213e9f-4 │ │ │ ├── 0d28327b1fb52c1ba02a6eb96675c31633921bb2-2 │ │ │ ├── 0fcd827b57ded58e91f7ba2ac2b7ea4d25ebedca-7 │ │ │ ├── 163785ab002746452619f31e8dfcb4549e6f8b6e-6 │ │ │ ├── 1b9a02e9a48fea1d2fc3fb77946ada278e152079-4 │ │ │ ├── 1e7d05f00e99cbf3ff0ef1cd7ea8dd07ad6dff23-6 │ │ │ ├── 1ec95e347fd522e6385b5091aa81aa2485be4891-4 │ │ │ ├── 1fbfa5d214060d2a0905846a589fd6f78d411451-4 │ │ │ ├── 1fd84ee194e791783a7f18f0a6deab8efe05fc04-2 │ │ │ ├── 220a87fed0c92474923054094eb7aff14289cf5e-4 │ │ │ ├── 2441d249faf9a859e38c49f6e305b394280c6ea5-1 │ │ │ ├── 2da1f0635e11283b1927974f418aadd8837ad31e-7 │ │ │ ├── 2e1853fbf8efe40098b1583224fe3b5f335e7037-6 │ │ │ ├── 2f25490dc49c103d653843ed47324b310ee7105e-7 │ │ │ ├── 316024ca3aaf09c1de5258733ff5fe3d799648d3-4 │ │ │ ├── 32a089e2c439a91f4c1b67a13d52429bcded0dd9-7 │ │ │ ├── 33ec1dc0bfeb93d16edee3c07125fec6ac1aa17d-2 │ │ │ ├── 37a0d207700b52caa005ec8aeb344dcb13150ed2-5 │ │ │ ├── 382f59c66d0ddb6747d3177263279789ca15c2db-5 │ │ │ ├── 3a3b717fcfe7ffb000b906e5a76f32248a576bf7-6 │ │ │ ├── 3c37f6d58b8029971935f127f53e6aaeba558445-6 │ │ │ ├── 3d11500c4f66b20c73bbdfb1a7bddd7bbf92b29c-5 │ │ │ ├── 3d8b5bf36c80d6f65802280039f85421f32b5055-6 │ │ │ ├── 3f99c546a3962256176d566c19e3fffb62072078-1 │ │ │ ├── 408ec46539af27acd82b3d01e863597030882458-8 │ │ │ ├── 436154e5bb6487673f6642e6d2a582c01b083c08-8 │ │ │ ├── 45f565cd14b8de1ba2e925047ce776c2682b4b8d-3 │ │ │ ├── 550f15ef65230cc4dcfab7fea67de212d9212ff8-8 │ │ │ ├── 5552213d659fef900a194c52718ffeffdc72d043-3 │ │ │ ├── 5570ef82893a9b9b9158572d43a7de7537121d2d-1 │ │ │ ├── 5e10f734f8af4116fbd164d96eec67aa53e6228c-5 │ │ │ ├── 608200b402488b3989ec8ec5f4190ccb537b8ea4-4 │ │ │ ├── 61e89c3fbdf9eff74bd250ea73cc2e61f8ca0d97-5 │ │ │ ├── 62817a48c78fbf2c12fcdc5ca58e2ca60c43543a-7 │ │ │ ├── 6782da8f1a432a77306d60d2ac2470c35b98004f-3 │ │ │ ├── 68fb55290cb9d6da5b259017c34bcecf96c944aa-5 │ │ │ ├── 6a5059bc86872526241d21ab5dae9f0afd3b9ae1-3 │ │ │ ├── 71d22f25419543e437f249ca437823b87ac926b1-6 │ │ │ ├── 76e413a50dc8861e3756e556f796f1737bec2675-4 │ │ │ ├── 7a113cd3c178934cdb64353af86d51462d7080a4-5 │ │ │ ├── 85dfe7ddee0e52aa19115c0ebb9ed28a14e488c6-5 │ │ │ ├── 87bba5b1e3da38fed8cb5a9bc5c8baa819e83d05-5 │ │ │ ├── 8ff3bd49f93079e5e1c7f8f2461ba7ee612900c3-5 │ │ │ ├── 9034aaf45143996a2b14465c352ab0c6fa26b221-2 │ │ │ ├── 92cefdc6251d04896349a464b29be03d6bb04c3d-2 │ │ │ ├── 9613e580ccb69df7c9074f0e2f6886ac6b34ca55-5 │ │ │ ├── 98afc8970a680fdc4aee0b5d48784f650c566b75-6 │ │ │ ├── 9dfc92f4ca2ece0167096fca6751ff314765f08b-8 │ │ │ ├── 9ff520eb8b8319a5fdafbe4d1cbb02a75058d93b-7 │ │ │ ├── a2684adccf16e036b051c12f283734fa803746e8-6 │ │ │ ├── a37305974cf477ecfe65fa92f37b1f51dea25910-4 │ │ │ ├── a7eb43926bd14b1f62a66a33107776e487434d32-7 │ │ │ ├── a9a8f287d6af24e47d8db468e8f967aa44fb5a1f-7 │ │ │ ├── b2942d4413a66939cda7db93020dee79eb17788c-9 │ │ │ ├── b4614117cdfd147d38f4e8a4d85f5a2bb99a6a4f-5 │ │ │ ├── b631ef3291fa405cd6517d11f4d1b9b6d02912d4-2 │ │ │ ├── b7a91e338cc11f50ebdb2c414610efc4d5be3137-4 │ │ │ ├── c1690698607eb0f4c4244e9f9629968be4beb6bc-8 │ │ │ ├── c1f435e4f53a9a17578d9e8c4789860f962a1379-6 │ │ │ ├── c298a75334c3acf04bd129a8867447a25c8bacf8-7 │ │ │ ├── c42287c7d225e530e822f23bbbba6819a9e48f38-6 │ │ │ ├── c4cdbb891f3ee76476b7375d5ed51691fed95421-10 │ │ │ ├── cc9572d72dfa2937074b1766dcbcff9cc58d1137-4 │ │ │ ├── d0acdc8fca32bbd58d368eeac3bd9eaa46f59d27-5 │ │ │ ├── d0e43b715fd00953f7bdd6dfad95811985e81396-4 │ │ │ ├── d925fbd22c8bc0de34d6a9d1258ce3d2928d0927-8 │ │ │ ├── d9ba78cb7425724185d5fa300cd5c03aec2683bb-7 │ │ │ ├── dcdb7758b87648b5d766b1b341a65834420cf621-7 │ │ │ ├── def879fe0fd637a745c00c8f1da340518db8688c-2 │ │ │ ├── df6c30a9781b93bd6d2f5e97e5592d5945210003-7 │ │ │ ├── dfc1c3a2e3ccdaf6f88c515fd00e8ad08421e431-6 │ │ │ ├── e1dcc4e7ead6dfd1139ece7bf57d776cb9dac72d-7 │ │ │ ├── e39c2de2c8937d2cbd4339b13d6a0ce94d94f8d2-8 │ │ │ ├── e72f76b9579c792e545d02fe405d9186f0d6c39b-6 │ │ │ ├── ec0a25eba8966b8f628d821b3cfbdf2dfd4bbb4c-3 │ │ │ ├── eebe3b76aeba6deed965d17d2b024f7eae1a43f1-5 │ │ │ ├── ef8741a9faf030794d98ff113f556c68a24719a5-6 │ │ │ ├── efb7410d02418befeba25a43d676cc6124129125-4 │ │ │ ├── f6f97d781a5a749903790e07db8619866cb7c3a1-6 │ │ │ ├── f9e627b2cb82ffa1ea5e0c6d7f2802f3000b18a8-6 │ │ │ ├── fb3775aa24e5667e658920c05ba4b7b19ff256fb-5 │ │ │ ├── fd6386548e119a50db96b2fa406e54924c45a2d5-6 │ │ │ ├── c010b0cd70c7edbc5bd332fc9e2e91c6a1cbcdc4-5 │ │ │ ├── a0b57a12e25ac5adcedb2a5c45915f0f62aee869-4 │ │ │ ├── 9ebcbbfdaf0e98c87652e57226a4d8a35170c67d-4 │ │ │ ├── 3a010483a4ad8d7215447ce27e0fac3791235c99-4 │ │ │ ├── ae4593626d8796e079a358c2395a4f6c9ddd6a44-6 │ │ │ ├── 109bc9b8fd4fef63493e104c703c79bc4a5e8d34-6 │ │ │ ├── 7ea9f71020f3eb783f743f744eba8d8ca4b2582f-3 │ │ │ ├── 30494b85bb60ad7f099fa49d427007a761620d8f-5 │ │ │ ├── 1adfa6b9ddf5766220c8ff7ede2926ca241bb947-3 │ │ │ ├── 23ddcd66aa92fe3d78b7f5b6e7cddb1b55c5f5df-3 │ │ │ ├── 8a9ebedfbfec584d8b22761e6121dc1ca0248548-4 │ │ │ └── 78480977d5c07386b06e9b37f5c82f5ed86c2f09-3 │ ├── trie │ │ └── corpus │ │ │ └── data │ ├── rlp │ │ └── corpus │ │ │ ├── r.bin │ │ │ ├── transaction.rlp │ │ │ └── block_with_uncle.rlp │ ├── rangeproof │ │ └── corpus │ │ │ ├── random.dat │ │ │ ├── 1c14030f26872e57bf1481084f151d71eed8161c-1 │ │ │ ├── 27e54254422543060a13ea8a4bc913d768e4adb6-2 │ │ │ ├── 6bfc2cbe2d7a43361e240118439785445a0fdfb7-5 │ │ │ ├── a67e63bc0c0004bd009944a6061297cb7d4ac238-1 │ │ │ ├── ae892bbae0a843950bc8316496e595b1a194c009-4 │ │ │ ├── ee05d0d813f6261b3dba16506f9ea03d9c5e993d-2 │ │ │ └── f50a6d57a46d30184aa294af5b252ab9701af7c9-2 │ ├── bls12381 │ │ └── testdata │ │ │ ├── fuzz_g1_add_seed_corpus.zip │ │ │ ├── fuzz_g1_mul_seed_corpus.zip │ │ │ ├── fuzz_g2_add_seed_corpus.zip │ │ │ ├── fuzz_g2_mul_seed_corpus.zip │ │ │ ├── fuzz_map_g1_seed_corpus.zip │ │ │ ├── fuzz_map_g2_seed_corpus.zip │ │ │ ├── fuzz_pairing_seed_corpus.zip │ │ │ ├── fuzz_g1_multiexp_seed_corpus.zip │ │ │ └── fuzz_g2_multiexp_seed_corpus.zip │ ├── keystore │ │ └── corpus │ │ │ └── 0176eaf52ed014ec5c91cf4afa070dd3fd469077-1 │ └── secp256k1 │ │ └── secp_test.go └── solidity │ ├── contracts │ └── Migrations.sol │ └── migrations │ ├── 2_opCodes_migration.js │ └── 1_initial_migration.js ├── common └── mclock │ └── mclock.s ├── .dockerignore ├── metrics ├── init_test.go ├── FORK.md ├── doc.go ├── runtime_no_cgo.go ├── runtime_no_gccpufraction.go ├── runtime_cgo.go ├── runtime_gccpufraction.go ├── validate.sh ├── writer_test.go ├── opentsdb_test.go ├── graphite_test.go ├── json_test.go ├── resetting_sample.go ├── json.go ├── influxdb │ └── README.md ├── debug_test.go ├── cputime_nop.go └── cpu_disabled.go ├── signer └── core │ └── testdata │ ├── fuzzing │ ├── f658340af009dd4a35abe645a00a7b732bc30921 │ ├── 582fa92154b784daa1faa293b695fa388fe34bf1 │ ├── 37ec7b55c7ba014cced204c5f9989d2d0eb9ff6d │ └── 2850f6ccf2d7f5f846dfb73119b60e09e712783f │ ├── README.md │ ├── expfail_toolargeuint.json │ ├── expfail_toolargeuint2.json │ ├── expfail_unconvertiblefloat.json │ └── expfail_unconvertiblefloat2.json ├── .gitattributes ├── core ├── rawdb │ ├── testdata │ │ └── stored_receipts.bin │ └── database_test.go ├── .gitignore ├── types │ ├── gen_log_rlp.go │ └── gen_account_rlp.go ├── vm │ ├── testdata │ │ └── precompiles │ │ │ └── fail-blsMapG1.json │ └── runtime │ │ └── doc.go └── bloombits │ └── doc.go ├── docs └── audits │ ├── 2018-09-14_Clef-audit_NCC.pdf │ ├── 2017-04-25_Geth-audit_Truesec.pdf │ ├── 2020-01-24_DiscV5_audit_Cure53.pdf │ └── 2019-10-15_Discv5_audit_LeastAuthority.pdf ├── rlp ├── rlpgen │ └── testdata │ │ ├── uints.in.txt │ │ ├── bigint.in.txt │ │ ├── rawvalue.in.txt │ │ ├── optional.in.txt │ │ ├── nil.in.txt │ │ └── bigint.out.txt └── safe.go ├── rpc ├── testdata │ ├── reqresp-noparam.js │ ├── reqresp-paramsnull.js │ ├── reqresp-noargsrets.js │ ├── invalid-syntax.json │ ├── reqresp-namedparam.js │ ├── invalid-nonobj.js │ ├── reqresp-nomethod.js │ ├── revcall.js │ ├── revcall2.js │ ├── invalid-idonly.js │ ├── invalid-badid.js │ ├── reqresp-batch.js │ ├── subscription.js │ └── reqresp-echo.js └── constants_unix_nocgo.go ├── log ├── CONTRIBUTORS ├── README_ETHEREUM.md ├── LICENSE ├── handler_go14.go └── handler_go13.go ├── .gitmodules ├── .github ├── ISSUE_TEMPLATE │ ├── feature.md │ ├── question.md │ └── bug.md ├── no-response.yml └── stale.yml ├── p2p ├── discover │ └── v5wire │ │ └── testdata │ │ ├── v5.1-ping-message.txt │ │ └── v5.1-whoareyou.txt ├── dnsdisc │ └── doc.go └── simulations │ └── examples │ └── ping-pong.sh ├── swarm └── README.md ├── infra ├── Dockerfile.node └── Dockerfile.updater ├── internal ├── guide │ └── guide.go ├── debug │ └── loudpanic_fallback.go └── jsre │ └── deps │ └── deps.go ├── Dockerfile.alltools ├── .gitignore ├── Dockerfile ├── mobile ├── geth_ios.go ├── geth_android.go └── geth_other.go ├── eth ├── downloader │ └── events.go └── protocols │ ├── snap │ └── tracker.go │ └── eth │ └── tracker.go └── les └── downloader └── events.go /cmd/evm/testdata/5/alloc.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /cmd/geth/testdata/empty.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/14/txs.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/19/txs.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/20/ommers.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/21/ommers.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/21/txs.rlp: -------------------------------------------------------------------------------- 1 | "c0" 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/22/txs.rlp: -------------------------------------------------------------------------------- 1 | "c0" 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/5/txs.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /cmd/evm/testdata/7/txs.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /cmd/geth/testdata/password.txt: -------------------------------------------------------------------------------- 1 | foobar -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmd/clef/requirements.txt: -------------------------------------------------------------------------------- 1 | tinyrpc==1.1.4 2 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/obj/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmd/geth/testdata/passwords.txt: -------------------------------------------------------------------------------- 1 | foobar 2 | foobar 3 | foobar 4 | -------------------------------------------------------------------------------- /cmd/geth/testdata/wrong-passwords.txt: -------------------------------------------------------------------------------- 1 | wrong 2 | wrong 3 | wrong 4 | -------------------------------------------------------------------------------- /console/testdata/exec.js: -------------------------------------------------------------------------------- 1 | var execed = "some-executed-string"; 2 | -------------------------------------------------------------------------------- /console/testdata/preload.js: -------------------------------------------------------------------------------- 1 | var preloaded = "some-preloaded-string"; 2 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/da39a3ee5e6b4b0d3255bfef95601890afd80709: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/b858cb282617fb0956d960215c8e84d1ccf909c6-2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/bc9d570aacf3acd39600feda8e72a293a4667da4-1: -------------------------------------------------------------------------------- 1 | � -------------------------------------------------------------------------------- /cmd/evm/testdata/2/readme.md: -------------------------------------------------------------------------------- 1 | These files examplify a selfdestruct to the `0`-address. -------------------------------------------------------------------------------- /common/mclock/mclock.s: -------------------------------------------------------------------------------- 1 | // This file exists in order to be able to use go:linkname. 2 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | **/*_test.go 2 | 3 | build/_workspace 4 | build/_bin 5 | tests/testdata 6 | -------------------------------------------------------------------------------- /cmd/geth/testdata/key.prv: -------------------------------------------------------------------------------- 1 | 48aa455c373ec5ce7fefb0e54f44a215decdc85b9047bc4d09801e038909bdbe -------------------------------------------------------------------------------- /metrics/init_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | func init() { 4 | Enabled = true 5 | } 6 | -------------------------------------------------------------------------------- /signer/core/testdata/fuzzing/f658340af009dd4a35abe645a00a7b732bc30921: -------------------------------------------------------------------------------- 1 | {"types":{"0":[{}]}} -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/717928e0e2d478c680c6409b173552ca98469ba5-6: -------------------------------------------------------------------------------- 1 | LvhaJcdaFofenogkjQfJB -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | autoreconf -if --warnings=all 4 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/3c73b63bafa9f535c882ec17189adaf02b58f432-6: -------------------------------------------------------------------------------- 1 | LvhaJQHOe3EhRcdaFofeoogkjQfJB -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/cd1d73b4e101bc7b979e3f6f135cb12d4594d348-5: -------------------------------------------------------------------------------- 1 | 822452601031714757585602556 -------------------------------------------------------------------------------- /cmd/clef/sign_flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/sign_flow.png -------------------------------------------------------------------------------- /metrics/FORK.md: -------------------------------------------------------------------------------- 1 | This repo has been forked from https://github.com/rcrowley/go-metrics at commit e181e09 2 | -------------------------------------------------------------------------------- /signer/core/testdata/fuzzing/582fa92154b784daa1faa293b695fa388fe34bf1: -------------------------------------------------------------------------------- 1 | {"domain":{"version":"0","chainId":""}} -------------------------------------------------------------------------------- /cmd/evm/testdata/23/readme.md: -------------------------------------------------------------------------------- 1 | These files examplify how to sign a transaction using the pre-EIP155 scheme. 2 | -------------------------------------------------------------------------------- /tests/fuzzers/trie/corpus/data: -------------------------------------------------------------------------------- 1 | asdlfkjasf23oiejfasdfadkfqlkjfasdlkfjalwk4jfalsdkfjawlefkjsadlfkjasldkfjwalefkjasdlfkjM -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/f94d60a6c556ce485ab60088291760b8be25776c-6: -------------------------------------------------------------------------------- 1 | HZB4cQZde3JMNRcVFMO8dDFo 2 | f9OeosiDdQQl -------------------------------------------------------------------------------- /metrics/doc.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | const epsilon = 0.0000000000000001 4 | const epsilonPercentile = .00000000001 5 | -------------------------------------------------------------------------------- /tests/fuzzers/rlp/corpus/r.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rlp/corpus/r.bin -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | *.sol linguist-language=Solidity 4 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/dd441bd24581332c9ce19e008260a69287aa3cbc-6: -------------------------------------------------------------------------------- 1 | Dtf1nWk78c 2 | /fWklyEQQ/+hgNzVtxxmDgS5TDETgeXVlXsjLZ -------------------------------------------------------------------------------- /cmd/geth/testdata/blockchain.blocks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/geth/testdata/blockchain.blocks -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/a8f7c254eb64a40fd2a77b79979c7bbdac6a760c-4: -------------------------------------------------------------------------------- 1 | lxtIX 2 | qyU3X9ps8ZfjLZ45l6cGhaJQYZHOde3JEMhNRcVFMO8dJDaFe -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/ebdc17efe343e412634dca57cecd5a0e1ce1c1c7-5: -------------------------------------------------------------------------------- 1 | hxveD/JAI21beLKph2 2 | fQtuUE9txblTuq3N7gHRZB4ZMFYyDxj7+ -------------------------------------------------------------------------------- /cmd/clef/docs/clef_architecture_pt1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/clef_architecture_pt1.png -------------------------------------------------------------------------------- /cmd/clef/docs/clef_architecture_pt2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/clef_architecture_pt2.png -------------------------------------------------------------------------------- /cmd/clef/docs/clef_architecture_pt3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/clef_architecture_pt3.png -------------------------------------------------------------------------------- /cmd/clef/docs/clef_architecture_pt4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/clef_architecture_pt4.png -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/clef_qubes_http.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/qubes/clef_qubes_http.png -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qrexec-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/qubes/qrexec-example.png -------------------------------------------------------------------------------- /core/rawdb/testdata/stored_receipts.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/core/rawdb/testdata/stored_receipts.bin -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/eb70814d6355a4498b8f301ba8dbc34f895a9947-5: -------------------------------------------------------------------------------- 1 | hxveD/JAI21beLKph2 2 | fQtuUE9txblTuq3N7gHRZB4ZMFYyDxj7+5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/f7a3cd00fa0e57742e7dbbb8283dcaea067eaf7b-5: -------------------------------------------------------------------------------- 1 | Xyt0Xl/DoCzjA0CQQDU 2 | y2ptGsuSmgUtWj3NM9xuwYPm+Z/F84K6+ARYi -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/clef_qubes_qrexec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/qubes/clef_qubes_qrexec.png -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/signifykey.pub: -------------------------------------------------------------------------------- 1 | untrusted comment: signify public key 2 | RWSKLNhZb0KdATtRT7mZC/bybI3t3+Hv/O2i3ye04Dq9fnT9slpZ1a2/ 3 | -------------------------------------------------------------------------------- /docs/audits/2018-09-14_Clef-audit_NCC.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/docs/audits/2018-09-14_Clef-audit_NCC.pdf -------------------------------------------------------------------------------- /tests/fuzzers/rlp/corpus/transaction.rlp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rlp/corpus/transaction.rlp -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/garbage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/accounts/keystore/testdata/keystore/garbage -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qubes_newaccount-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/qubes/qubes_newaccount-1.png -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qubes_newaccount-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/clef/docs/qubes/qubes_newaccount-2.png -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/random.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/random.dat -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/1e14c7ea1faef92890988061b5abe96db7190f98-7: -------------------------------------------------------------------------------- 1 | 0000000000000000000000000000000000000000000000000000000000000000000000000 -------------------------------------------------------------------------------- /cmd/devp2p/internal/ethtest/testdata/chain.rlp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/devp2p/internal/ethtest/testdata/chain.rlp -------------------------------------------------------------------------------- /cmd/evm/testdata/3/readme.md: -------------------------------------------------------------------------------- 1 | These files examplify a transition where a transaction (excuted on block 5) requests 2 | the blockhash for block `1`. 3 | -------------------------------------------------------------------------------- /cmd/evm/testdata/5/readme.md: -------------------------------------------------------------------------------- 1 | These files examplify a transition where there are no transcations, two ommers, at block `N-1` (delta 1) and `N-2` (delta 2). -------------------------------------------------------------------------------- /docs/audits/2017-04-25_Geth-audit_Truesec.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/docs/audits/2017-04-25_Geth-audit_Truesec.pdf -------------------------------------------------------------------------------- /docs/audits/2020-01-24_DiscV5_audit_Cure53.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/docs/audits/2020-01-24_DiscV5_audit_Cure53.pdf -------------------------------------------------------------------------------- /tests/fuzzers/rlp/corpus/block_with_uncle.rlp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rlp/corpus/block_with_uncle.rlp -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/84f8c275f3ffbaf8c32c21782af13de10e7de28b-3: -------------------------------------------------------------------------------- 1 | KKtDlbjVeLKwZatTXtdZrhu+Jk7hx0xxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLQcmPcQETT YQ -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/minisign.pub: -------------------------------------------------------------------------------- 1 | untrusted comment: minisign public key 284E00B52C269624 2 | RWQkliYstQBOKOdtClfgC3IypIPX6TAmoEi7beZ4gyR3wsaezvqOMWsp 3 | -------------------------------------------------------------------------------- /cmd/devp2p/internal/ethtest/testdata/halfchain.rlp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/cmd/devp2p/internal/ethtest/testdata/halfchain.rlp -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/21e76b9fca21d94d97f860c1c82f40697a83471b-8: -------------------------------------------------------------------------------- 1 | DtQvfQ+MULKZTXk78c 2 | /fWkpxlQQ/+hgNzVtx9vWgJsafG7b0dA4AFjwVbFLmQcj2PprIMmPNQrooX 3 | L -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/be7eed35b245b5d5d2adcdb4c67f07794eb86b24-3: -------------------------------------------------------------------------------- 1 | 4LZmbRc6+MUVeLKXtdZr+Jk7hhgN4H 2 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLQcmPcQ SN_ -------------------------------------------------------------------------------- /docs/audits/2019-10-15_Discv5_audit_LeastAuthority.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/docs/audits/2019-10-15_Discv5_audit_LeastAuthority.pdf -------------------------------------------------------------------------------- /metrics/runtime_no_cgo.go: -------------------------------------------------------------------------------- 1 | //go:build !cgo || appengine || js 2 | // +build !cgo appengine js 3 | 4 | package metrics 5 | 6 | func numCgoCall() int64 { 7 | return 0 8 | } 9 | -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_g1_add_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_g1_add_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_g1_mul_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_g1_mul_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_g2_add_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_g2_add_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_g2_mul_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_g2_mul_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_map_g1_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_map_g1_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_map_g2_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_map_g2_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/7312a0f31ae5d773ed4fd74abc7521eb14754683-8: -------------------------------------------------------------------------------- 1 | DtQvfQ+MULKZTXk78c 2 | /fWkpxlyEQQ/+hgNzVtx9vWgJsafG7b0dA4AFjwVbFLmQcj2PprIMmPNQg1AkS5TDEmSJwFVlXsjLZ -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_pairing_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_pairing_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_g1_multiexp_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_g1_multiexp_seed_corpus.zip -------------------------------------------------------------------------------- /tests/fuzzers/bls12381/testdata/fuzz_g2_multiexp_seed_corpus.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/bls12381/testdata/fuzz_g2_multiexp_seed_corpus.zip -------------------------------------------------------------------------------- /rlp/rlpgen/testdata/uints.in.txt: -------------------------------------------------------------------------------- 1 | // -*- mode: go -*- 2 | 3 | package test 4 | 5 | type Test struct{ 6 | A uint8 7 | B uint16 8 | C uint32 9 | D uint64 10 | } 11 | -------------------------------------------------------------------------------- /rlp/rlpgen/testdata/bigint.in.txt: -------------------------------------------------------------------------------- 1 | // -*- mode: go -*- 2 | 3 | package test 4 | 5 | import "math/big" 6 | 7 | type Test struct { 8 | Int *big.Int 9 | IntNoPtr big.Int 10 | } 11 | -------------------------------------------------------------------------------- /rpc/testdata/reqresp-noparam.js: -------------------------------------------------------------------------------- 1 | // This test checks that calls with no parameters work. 2 | 3 | --> {"jsonrpc":"2.0","method":"test_noArgsRets","id":3} 4 | <-- {"jsonrpc":"2.0","id":3,"result":null} 5 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/4a0a12f5b033c8c160cc3b5133692ea1e92c6cdf-7: -------------------------------------------------------------------------------- 1 | DtQvfQ+MULKZTXk78c 2 | /fWkpxlyEQQ/+hgNzVtx9vWgJsafG7b0dA4AFjwVbFLmQcj2PprIMmPNQg1Ak/7KCxmDgS5TDEmSJwFX 3 | txLjbt4xTgeXVlXsjLZ -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/aa7444d8e326158046862590a0db993c07aef372-7: -------------------------------------------------------------------------------- 1 | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000@0000000000000 -------------------------------------------------------------------------------- /cmd/evm/testdata/18/invalid.rlp: -------------------------------------------------------------------------------- 1 | "0xf852328001825208870b9331677e6ebf0a801ca098ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4aa03887321be575c8095f789dd4c743dfe42c1820f9231f98a962b210e3ac2452a3" -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/signify-sigs/data.json.sig: -------------------------------------------------------------------------------- 1 | untrusted comment: verify with ./signifykey.pub 2 | RWSKLNhZb0KdAbhRUhW2LQZXdnwttu2SYhM9EuC4mMgOJB85h7/YIPupf8/ldTs4N8e9Y/fhgdY40q5LQpt5IFC62fq0v8U1/w8= 3 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/TODO: -------------------------------------------------------------------------------- 1 | * Unit tests for fieldelem/groupelem, including ones intended to 2 | trigger fieldelem's boundary cases. 3 | * Complete constant-time operations for signing/keygen 4 | -------------------------------------------------------------------------------- /tests/fuzzers/keystore/corpus/0176eaf52ed014ec5c91cf4afa070dd3fd469077-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/keystore/corpus/0176eaf52ed014ec5c91cf4afa070dd3fd469077-1 -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/1c14030f26872e57bf1481084f151d71eed8161c-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/1c14030f26872e57bf1481084f151d71eed8161c-1 -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/27e54254422543060a13ea8a4bc913d768e4adb6-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/27e54254422543060a13ea8a4bc913d768e4adb6-2 -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/6bfc2cbe2d7a43361e240118439785445a0fdfb7-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/6bfc2cbe2d7a43361e240118439785445a0fdfb7-5 -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/a67e63bc0c0004bd009944a6061297cb7d4ac238-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/a67e63bc0c0004bd009944a6061297cb7d4ac238-1 -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/ae892bbae0a843950bc8316496e595b1a194c009-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/ae892bbae0a843950bc8316496e595b1a194c009-4 -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/ee05d0d813f6261b3dba16506f9ea03d9c5e993d-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/ee05d0d813f6261b3dba16506f9ea03d9c5e993d-2 -------------------------------------------------------------------------------- /tests/fuzzers/rangeproof/corpus/f50a6d57a46d30184aa294af5b252ab9701af7c9-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/rangeproof/corpus/f50a6d57a46d30184aa294af5b252ab9701af7c9-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/0151ee1d0db4c74d3bcdfa4f7396a4c8538748c9-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/0151ee1d0db4c74d3bcdfa4f7396a4c8538748c9-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/020dd7b492a6eb34ff0b7d8ee46189422c37e4a7-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/020dd7b492a6eb34ff0b7d8ee46189422c37e4a7-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/021d1144e359233c496e22c3250609b11b213e9f-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/021d1144e359233c496e22c3250609b11b213e9f-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/0d28327b1fb52c1ba02a6eb96675c31633921bb2-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/0d28327b1fb52c1ba02a6eb96675c31633921bb2-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/0fcd827b57ded58e91f7ba2ac2b7ea4d25ebedca-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/0fcd827b57ded58e91f7ba2ac2b7ea4d25ebedca-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/163785ab002746452619f31e8dfcb4549e6f8b6e-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/163785ab002746452619f31e8dfcb4549e6f8b6e-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/1b9a02e9a48fea1d2fc3fb77946ada278e152079-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/1b9a02e9a48fea1d2fc3fb77946ada278e152079-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/1e7d05f00e99cbf3ff0ef1cd7ea8dd07ad6dff23-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/1e7d05f00e99cbf3ff0ef1cd7ea8dd07ad6dff23-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/1ec95e347fd522e6385b5091aa81aa2485be4891-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/1ec95e347fd522e6385b5091aa81aa2485be4891-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/1fbfa5d214060d2a0905846a589fd6f78d411451-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/1fbfa5d214060d2a0905846a589fd6f78d411451-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/1fd84ee194e791783a7f18f0a6deab8efe05fc04-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/1fd84ee194e791783a7f18f0a6deab8efe05fc04-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/220a87fed0c92474923054094eb7aff14289cf5e-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/220a87fed0c92474923054094eb7aff14289cf5e-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/2441d249faf9a859e38c49f6e305b394280c6ea5-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/2441d249faf9a859e38c49f6e305b394280c6ea5-1 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/2da1f0635e11283b1927974f418aadd8837ad31e-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/2da1f0635e11283b1927974f418aadd8837ad31e-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/2e1853fbf8efe40098b1583224fe3b5f335e7037-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/2e1853fbf8efe40098b1583224fe3b5f335e7037-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/2f25490dc49c103d653843ed47324b310ee7105e-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/2f25490dc49c103d653843ed47324b310ee7105e-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/316024ca3aaf09c1de5258733ff5fe3d799648d3-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/316024ca3aaf09c1de5258733ff5fe3d799648d3-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/32a089e2c439a91f4c1b67a13d52429bcded0dd9-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/32a089e2c439a91f4c1b67a13d52429bcded0dd9-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/33ec1dc0bfeb93d16edee3c07125fec6ac1aa17d-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/33ec1dc0bfeb93d16edee3c07125fec6ac1aa17d-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/37a0d207700b52caa005ec8aeb344dcb13150ed2-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/37a0d207700b52caa005ec8aeb344dcb13150ed2-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/382f59c66d0ddb6747d3177263279789ca15c2db-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/382f59c66d0ddb6747d3177263279789ca15c2db-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/3a3b717fcfe7ffb000b906e5a76f32248a576bf7-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/3a3b717fcfe7ffb000b906e5a76f32248a576bf7-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/3c37f6d58b8029971935f127f53e6aaeba558445-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/3c37f6d58b8029971935f127f53e6aaeba558445-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/3d11500c4f66b20c73bbdfb1a7bddd7bbf92b29c-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/3d11500c4f66b20c73bbdfb1a7bddd7bbf92b29c-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/3d8b5bf36c80d6f65802280039f85421f32b5055-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/3d8b5bf36c80d6f65802280039f85421f32b5055-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/3f99c546a3962256176d566c19e3fffb62072078-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/3f99c546a3962256176d566c19e3fffb62072078-1 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/408ec46539af27acd82b3d01e863597030882458-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/408ec46539af27acd82b3d01e863597030882458-8 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/436154e5bb6487673f6642e6d2a582c01b083c08-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/436154e5bb6487673f6642e6d2a582c01b083c08-8 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/45f565cd14b8de1ba2e925047ce776c2682b4b8d-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/45f565cd14b8de1ba2e925047ce776c2682b4b8d-3 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/550f15ef65230cc4dcfab7fea67de212d9212ff8-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/550f15ef65230cc4dcfab7fea67de212d9212ff8-8 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/5552213d659fef900a194c52718ffeffdc72d043-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/5552213d659fef900a194c52718ffeffdc72d043-3 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/5570ef82893a9b9b9158572d43a7de7537121d2d-1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/5570ef82893a9b9b9158572d43a7de7537121d2d-1 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/5e10f734f8af4116fbd164d96eec67aa53e6228c-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/5e10f734f8af4116fbd164d96eec67aa53e6228c-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/608200b402488b3989ec8ec5f4190ccb537b8ea4-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/608200b402488b3989ec8ec5f4190ccb537b8ea4-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/61e89c3fbdf9eff74bd250ea73cc2e61f8ca0d97-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/61e89c3fbdf9eff74bd250ea73cc2e61f8ca0d97-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/62817a48c78fbf2c12fcdc5ca58e2ca60c43543a-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/62817a48c78fbf2c12fcdc5ca58e2ca60c43543a-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/6782da8f1a432a77306d60d2ac2470c35b98004f-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/6782da8f1a432a77306d60d2ac2470c35b98004f-3 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/68fb55290cb9d6da5b259017c34bcecf96c944aa-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/68fb55290cb9d6da5b259017c34bcecf96c944aa-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/6a5059bc86872526241d21ab5dae9f0afd3b9ae1-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/6a5059bc86872526241d21ab5dae9f0afd3b9ae1-3 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/71d22f25419543e437f249ca437823b87ac926b1-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/71d22f25419543e437f249ca437823b87ac926b1-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/76e413a50dc8861e3756e556f796f1737bec2675-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/76e413a50dc8861e3756e556f796f1737bec2675-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/7a113cd3c178934cdb64353af86d51462d7080a4-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/7a113cd3c178934cdb64353af86d51462d7080a4-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/85dfe7ddee0e52aa19115c0ebb9ed28a14e488c6-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/85dfe7ddee0e52aa19115c0ebb9ed28a14e488c6-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/87bba5b1e3da38fed8cb5a9bc5c8baa819e83d05-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/87bba5b1e3da38fed8cb5a9bc5c8baa819e83d05-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/8ff3bd49f93079e5e1c7f8f2461ba7ee612900c3-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/8ff3bd49f93079e5e1c7f8f2461ba7ee612900c3-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/9034aaf45143996a2b14465c352ab0c6fa26b221-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/9034aaf45143996a2b14465c352ab0c6fa26b221-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/92cefdc6251d04896349a464b29be03d6bb04c3d-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/92cefdc6251d04896349a464b29be03d6bb04c3d-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/9613e580ccb69df7c9074f0e2f6886ac6b34ca55-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/9613e580ccb69df7c9074f0e2f6886ac6b34ca55-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/98afc8970a680fdc4aee0b5d48784f650c566b75-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/98afc8970a680fdc4aee0b5d48784f650c566b75-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/9dfc92f4ca2ece0167096fca6751ff314765f08b-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/9dfc92f4ca2ece0167096fca6751ff314765f08b-8 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/9ff520eb8b8319a5fdafbe4d1cbb02a75058d93b-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/9ff520eb8b8319a5fdafbe4d1cbb02a75058d93b-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/a2684adccf16e036b051c12f283734fa803746e8-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/a2684adccf16e036b051c12f283734fa803746e8-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/a37305974cf477ecfe65fa92f37b1f51dea25910-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/a37305974cf477ecfe65fa92f37b1f51dea25910-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/a7eb43926bd14b1f62a66a33107776e487434d32-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/a7eb43926bd14b1f62a66a33107776e487434d32-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/a9a8f287d6af24e47d8db468e8f967aa44fb5a1f-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/a9a8f287d6af24e47d8db468e8f967aa44fb5a1f-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/b2942d4413a66939cda7db93020dee79eb17788c-9: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/b2942d4413a66939cda7db93020dee79eb17788c-9 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/b4614117cdfd147d38f4e8a4d85f5a2bb99a6a4f-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/b4614117cdfd147d38f4e8a4d85f5a2bb99a6a4f-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/b631ef3291fa405cd6517d11f4d1b9b6d02912d4-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/b631ef3291fa405cd6517d11f4d1b9b6d02912d4-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/b7a91e338cc11f50ebdb2c414610efc4d5be3137-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/b7a91e338cc11f50ebdb2c414610efc4d5be3137-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/c1690698607eb0f4c4244e9f9629968be4beb6bc-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/c1690698607eb0f4c4244e9f9629968be4beb6bc-8 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/c1f435e4f53a9a17578d9e8c4789860f962a1379-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/c1f435e4f53a9a17578d9e8c4789860f962a1379-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/c298a75334c3acf04bd129a8867447a25c8bacf8-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/c298a75334c3acf04bd129a8867447a25c8bacf8-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/c42287c7d225e530e822f23bbbba6819a9e48f38-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/c42287c7d225e530e822f23bbbba6819a9e48f38-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/c4cdbb891f3ee76476b7375d5ed51691fed95421-10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/c4cdbb891f3ee76476b7375d5ed51691fed95421-10 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/cc9572d72dfa2937074b1766dcbcff9cc58d1137-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/cc9572d72dfa2937074b1766dcbcff9cc58d1137-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/d0acdc8fca32bbd58d368eeac3bd9eaa46f59d27-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/d0acdc8fca32bbd58d368eeac3bd9eaa46f59d27-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/d0e43b715fd00953f7bdd6dfad95811985e81396-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/d0e43b715fd00953f7bdd6dfad95811985e81396-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/d925fbd22c8bc0de34d6a9d1258ce3d2928d0927-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/d925fbd22c8bc0de34d6a9d1258ce3d2928d0927-8 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/d9ba78cb7425724185d5fa300cd5c03aec2683bb-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/d9ba78cb7425724185d5fa300cd5c03aec2683bb-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/dcdb7758b87648b5d766b1b341a65834420cf621-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/dcdb7758b87648b5d766b1b341a65834420cf621-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/def879fe0fd637a745c00c8f1da340518db8688c-2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/def879fe0fd637a745c00c8f1da340518db8688c-2 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/df6c30a9781b93bd6d2f5e97e5592d5945210003-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/df6c30a9781b93bd6d2f5e97e5592d5945210003-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/dfc1c3a2e3ccdaf6f88c515fd00e8ad08421e431-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/dfc1c3a2e3ccdaf6f88c515fd00e8ad08421e431-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/e1dcc4e7ead6dfd1139ece7bf57d776cb9dac72d-7: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/e1dcc4e7ead6dfd1139ece7bf57d776cb9dac72d-7 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/e39c2de2c8937d2cbd4339b13d6a0ce94d94f8d2-8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/e39c2de2c8937d2cbd4339b13d6a0ce94d94f8d2-8 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/e72f76b9579c792e545d02fe405d9186f0d6c39b-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/e72f76b9579c792e545d02fe405d9186f0d6c39b-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/ec0a25eba8966b8f628d821b3cfbdf2dfd4bbb4c-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/ec0a25eba8966b8f628d821b3cfbdf2dfd4bbb4c-3 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/eebe3b76aeba6deed965d17d2b024f7eae1a43f1-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/eebe3b76aeba6deed965d17d2b024f7eae1a43f1-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/ef8741a9faf030794d98ff113f556c68a24719a5-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/ef8741a9faf030794d98ff113f556c68a24719a5-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/efb7410d02418befeba25a43d676cc6124129125-4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/efb7410d02418befeba25a43d676cc6124129125-4 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/f6f97d781a5a749903790e07db8619866cb7c3a1-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/f6f97d781a5a749903790e07db8619866cb7c3a1-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/f9e627b2cb82ffa1ea5e0c6d7f2802f3000b18a8-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/f9e627b2cb82ffa1ea5e0c6d7f2802f3000b18a8-6 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/fb3775aa24e5667e658920c05ba4b7b19ff256fb-5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/fb3775aa24e5667e658920c05ba4b7b19ff256fb-5 -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/fd6386548e119a50db96b2fa406e54924c45a2d5-6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Code0x2/mevgeth-plusplus/HEAD/tests/fuzzers/txfetcher/corpus/fd6386548e119a50db96b2fa406e54924c45a2d5-6 -------------------------------------------------------------------------------- /rpc/testdata/reqresp-paramsnull.js: -------------------------------------------------------------------------------- 1 | // This test checks that calls with "params":null work. 2 | 3 | --> {"jsonrpc":"2.0","method":"test_noArgsRets","params":null,"id":3} 4 | <-- {"jsonrpc":"2.0","id":3,"result":null} 5 | -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/signifykey.sec: -------------------------------------------------------------------------------- 1 | untrusted comment: signify secret key 2 | RWRCSwAAACpLQDLawSQCtI7eAVIvaiHzjTsTyJsfV5aKLNhZb0KdAWeICXJGa93/bHAcsY6jUh9I8RdEcDWEoGxmaXZC+IdVBPxDpkix9fBRGEUdKWHi3dOfqME0YRzErWI5AVg3cRw= 3 | -------------------------------------------------------------------------------- /metrics/runtime_no_gccpufraction.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.5 2 | // +build !go1.5 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 9 | return 0 10 | } 11 | -------------------------------------------------------------------------------- /rpc/testdata/reqresp-noargsrets.js: -------------------------------------------------------------------------------- 1 | // This test calls the test_noArgsRets method. 2 | 3 | --> {"jsonrpc": "2.0", "id": "foo", "method": "test_noArgsRets", "params": []} 4 | <-- {"jsonrpc":"2.0","id":"foo","result":null} 5 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/c010b0cd70c7edbc5bd332fc9e2e91c6a1cbcdc4-5: -------------------------------------------------------------------------------- 1 | 2 | Xc7jpTLryzTQIvVdfQbRc6+MUVeLKwZatTXtdZrhu+Jk7hx0nTPy8Jcb 3 | uJqFk541aEw+mMogY/xEcfbWd6IOkp+4xqjlFLBEDytgbIECQQDvH/E6nhgN4H 4 | qzzVtxx7vWrjrIgPbJpvfb -------------------------------------------------------------------------------- /metrics/runtime_cgo.go: -------------------------------------------------------------------------------- 1 | //go:build cgo && !appengine && !js 2 | // +build cgo,!appengine,!js 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func numCgoCall() int64 { 9 | return runtime.NumCgoCall() 10 | } 11 | -------------------------------------------------------------------------------- /cmd/evm/testdata/13/readme.md: -------------------------------------------------------------------------------- 1 | ## Input transactions in RLP form 2 | 3 | This testdata folder is used to examplify how transaction input can be provided in rlp form. 4 | Please see the README in `evm` folder for how this is performed. -------------------------------------------------------------------------------- /log/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Contributors to log15: 2 | 3 | - Aaron L 4 | - Alan Shreve 5 | - Chris Hines 6 | - Ciaran Downey 7 | - Dmitry Chestnykh 8 | - Evan Shaw 9 | - Péter Szilágyi 10 | - Trevor Gattis 11 | - Vincent Vanackere 12 | -------------------------------------------------------------------------------- /metrics/runtime_gccpufraction.go: -------------------------------------------------------------------------------- 1 | //go:build go1.5 2 | // +build go1.5 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 9 | return memStats.GCCPUFraction 10 | } 11 | -------------------------------------------------------------------------------- /cmd/evm/testdata/1/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", 3 | "currentDifficulty": "0x20000", 4 | "currentGasLimit": "0x750a163df65e8a", 5 | "currentNumber": "1", 6 | "currentTimestamp": "1000" 7 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/8/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty": "0x20000", 4 | "currentGasLimit": "0x1000000000", 5 | "currentNumber": "0x1000000", 6 | "currentTimestamp": "0x04" 7 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/2/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentGasLimit" : "0x3b9aca00", 5 | "currentNumber" : "0x01", 6 | "currentTimestamp" : "0x03e8" 7 | } -------------------------------------------------------------------------------- /rpc/testdata/invalid-syntax.json: -------------------------------------------------------------------------------- 1 | // This test checks that an error is written for invalid JSON requests. 2 | 3 | --> 'f 4 | <-- {"jsonrpc":"2.0","id":null,"error":{"code":-32700,"message":"invalid character '\\'' looking for beginning of value"}} 5 | 6 | -------------------------------------------------------------------------------- /cmd/evm/testdata/23/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentGasLimit" : "0x3b9aca00", 5 | "currentNumber" : "0x05", 6 | "currentTimestamp" : "0x03e8" 7 | } 8 | -------------------------------------------------------------------------------- /crypto/bls12381/bls12_381_test.go: -------------------------------------------------------------------------------- 1 | package bls12381 2 | 3 | import ( 4 | "crypto/rand" 5 | "math/big" 6 | ) 7 | 8 | var fuz = 10 9 | 10 | func randScalar(max *big.Int) *big.Int { 11 | a, _ := rand.Int(rand.Reader, max) 12 | return a 13 | } 14 | -------------------------------------------------------------------------------- /log/README_ETHEREUM.md: -------------------------------------------------------------------------------- 1 | This package is a fork of https://github.com/inconshreveable/log15, with some 2 | minor modifications required by the go-ethereum codebase: 3 | 4 | * Support for log level `trace` 5 | * Modified behavior to exit on `critical` failure 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "tests"] 2 | path = tests/testdata 3 | url = https://github.com/ethereum/tests 4 | shallow = true 5 | [submodule "evm-benchmarks"] 6 | path = tests/evm-benchmarks 7 | url = https://github.com/ipsilon/evm-benchmarks 8 | shallow = true 9 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/dummy.go: -------------------------------------------------------------------------------- 1 | // +build dummy 2 | 3 | // Package c contains only a C file. 4 | // 5 | // This Go file is part of a workaround for `go mod vendor`. 6 | // Please see the file crypto/secp256k1/dummy.go for more information. 7 | package src 8 | -------------------------------------------------------------------------------- /cmd/evm/testdata/4/readme.md: -------------------------------------------------------------------------------- 1 | These files examplify a transition where a transaction (excuted on block 5) requests 2 | the blockhash for block `4`, but where the hash for that block is missing. 3 | It's expected that executing these should cause `exit` with errorcode `4`. 4 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/dummy.go: -------------------------------------------------------------------------------- 1 | // +build dummy 2 | 3 | // Package c contains only a C file. 4 | // 5 | // This Go file is part of a workaround for `go mod vendor`. 6 | // Please see the file crypto/secp256k1/dummy.go for more information. 7 | package libsecp256k1 8 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/contrib/dummy.go: -------------------------------------------------------------------------------- 1 | // +build dummy 2 | 3 | // Package c contains only a C file. 4 | // 5 | // This Go file is part of a workaround for `go mod vendor`. 6 | // Please see the file crypto/secp256k1/dummy.go for more information. 7 | package contrib 8 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/include/dummy.go: -------------------------------------------------------------------------------- 1 | // +build dummy 2 | 3 | // Package c contains only a C file. 4 | // 5 | // This Go file is part of a workaround for `go mod vendor`. 6 | // Please see the file crypto/secp256k1/dummy.go for more information. 7 | package include 8 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/modules/dummy.go: -------------------------------------------------------------------------------- 1 | // +build dummy 2 | 3 | // Package c contains only a C file. 4 | // 5 | // This Go file is part of a workaround for `go mod vendor`. 6 | // Please see the file crypto/secp256k1/dummy.go for more information. 7 | package module 8 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/modules/ecdh/dummy.go: -------------------------------------------------------------------------------- 1 | // +build dummy 2 | 3 | // Package c contains only a C file. 4 | // 5 | // This Go file is part of a workaround for `go mod vendor`. 6 | // Please see the file crypto/secp256k1/dummy.go for more information. 7 | package ecdh 8 | -------------------------------------------------------------------------------- /cmd/evm/testdata/12/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 3 | "balance" : "84000000", 4 | "code" : "0x", 5 | "nonce" : "0x00", 6 | "storage" : { 7 | "0x00" : "0x00" 8 | } 9 | } 10 | } 11 | 12 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/modules/recovery/dummy.go: -------------------------------------------------------------------------------- 1 | // +build dummy 2 | 3 | // Package c contains only a C file. 4 | // 5 | // This Go file is part of a workaround for `go mod vendor`. 6 | // Please see the file crypto/secp256k1/dummy.go for more information. 7 | package recovery 8 | -------------------------------------------------------------------------------- /rlp/rlpgen/testdata/rawvalue.in.txt: -------------------------------------------------------------------------------- 1 | // -*- mode: go -*- 2 | 3 | package test 4 | 5 | import "github.com/ethereum/go-ethereum/rlp" 6 | 7 | type Test struct { 8 | RawValue rlp.RawValue 9 | PointerToRawValue *rlp.RawValue 10 | SliceOfRawValue []rlp.RawValue 11 | } 12 | -------------------------------------------------------------------------------- /rpc/testdata/reqresp-namedparam.js: -------------------------------------------------------------------------------- 1 | // This test checks that an error response is sent for calls 2 | // with named parameters. 3 | 4 | --> {"jsonrpc":"2.0","method":"test_echo","params":{"int":23},"id":3} 5 | <-- {"jsonrpc":"2.0","id":3,"error":{"code":-32602,"message":"non-array args"}} 6 | -------------------------------------------------------------------------------- /cmd/evm/testdata/9/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty": "0x20000", 4 | "currentGasTarget": "0x1000000000", 5 | "currentBaseFee": "0x3B9ACA00", 6 | "currentNumber": "0x1000000", 7 | "currentTimestamp": "0x04" 8 | } 9 | -------------------------------------------------------------------------------- /rpc/testdata/invalid-nonobj.js: -------------------------------------------------------------------------------- 1 | // This test checks behavior for invalid requests. 2 | 3 | --> 1 4 | <-- {"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"invalid request"}} 5 | 6 | --> null 7 | <-- {"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"invalid request"}} 8 | -------------------------------------------------------------------------------- /rpc/testdata/reqresp-nomethod.js: -------------------------------------------------------------------------------- 1 | // This test calls a method that doesn't exist. 2 | 3 | --> {"jsonrpc": "2.0", "id": 2, "method": "invalid_method", "params": [2, 3]} 4 | <-- {"jsonrpc":"2.0","id":2,"error":{"code":-32601,"message":"the method invalid_method does not exist/is not available"}} 5 | -------------------------------------------------------------------------------- /cmd/evm/testdata/21/clique.json: -------------------------------------------------------------------------------- 1 | { 2 | "secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", 3 | "voted": "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 4 | "authorize": false, 5 | "vanity": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 6 | } 7 | -------------------------------------------------------------------------------- /cmd/evm/testdata/7/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", 3 | "currentDifficulty": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffff020000", 4 | "currentGasLimit": "0x750a163df65e8a", 5 | "currentNumber": "5", 6 | "currentTimestamp": "1000" 7 | } -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/minisign.sec: -------------------------------------------------------------------------------- 1 | untrusted comment: minisign encrypted secret key 2 | RWRTY0Iyz8kmPMKrqk6DCtlO9a33akKiaOQG1aLolqDxs52qvPoAAAACAAAAAAAAAEAAAAAArEiggdvyn6+WzTprirLtgiYQoU+ihz/HyGgjhuF+Pz2ddMduyCO+xjCHeq+vgVVW039fbsI8hW6LRGJZLBKV5/jdxCXAVVQE7qTQ6xpEdO0z8Z731/pV1hlspQXG2PNd16NMtwd9dWw= 3 | -------------------------------------------------------------------------------- /cmd/evm/testdata/8/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x000000000000000000000000000000000000aaaa": { 3 | "balance": "0x03", 4 | "code": "0x5854505854", 5 | "nonce": "0x1" 6 | }, 7 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { 8 | "balance": "0x100000", 9 | "nonce": "0x00" 10 | } 11 | } -------------------------------------------------------------------------------- /signer/core/testdata/README.md: -------------------------------------------------------------------------------- 1 | ### EIP 712 tests 2 | 3 | These tests are json files which are converted into eip-712 typed data. 4 | All files are expected to be proper json, and tests will fail if they are not. 5 | Files that begin with `expfail' are expected to not pass the hashstruct construction. 6 | -------------------------------------------------------------------------------- /cmd/evm/testdata/18/README.md: -------------------------------------------------------------------------------- 1 | # Invalid rlp 2 | 3 | This folder contains a sample of invalid RLP, and it's expected 4 | that the t9n handles this properly: 5 | 6 | ``` 7 | $ go run . t9n --input.txs=./testdata/18/invalid.rlp --state.fork=London 8 | ERROR(11): rlp: value size exceeds available input length 9 | ``` -------------------------------------------------------------------------------- /cmd/evm/testdata/7/readme.md: -------------------------------------------------------------------------------- 1 | This is a test for HomesteadToDao, checking if the 2 | DAO-transition works 3 | 4 | Example: 5 | ``` 6 | ./statet8n --input.alloc=./testdata/7/alloc.json --input.txs=./testdata/7/txs.json --input.env=./testdata/7/env.json --output.alloc=stdout --state.fork=HomesteadToDaoAt5 7 | ``` -------------------------------------------------------------------------------- /metrics/validate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # check there are no formatting issues 6 | GOFMT_LINES=`gofmt -l . | wc -l | xargs` 7 | test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues" 8 | 9 | # run the tests for the root package 10 | go test -race . 11 | -------------------------------------------------------------------------------- /rpc/testdata/revcall.js: -------------------------------------------------------------------------------- 1 | // This test checks reverse calls. 2 | 3 | --> {"jsonrpc":"2.0","id":2,"method":"test_callMeBack","params":["foo",[1]]} 4 | <-- {"jsonrpc":"2.0","id":1,"method":"foo","params":[1]} 5 | --> {"jsonrpc":"2.0","id":1,"result":"my result"} 6 | <-- {"jsonrpc":"2.0","id":2,"result":"my result"} 7 | -------------------------------------------------------------------------------- /cmd/evm/testdata/9/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x000000000000000000000000000000000000aaaa": { 3 | "balance": "0x03", 4 | "code": "0x58585454", 5 | "nonce": "0x1" 6 | }, 7 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b": { 8 | "balance": "0x100000000000000", 9 | "nonce": "0x00" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /rpc/testdata/revcall2.js: -------------------------------------------------------------------------------- 1 | // This test checks reverse calls. 2 | 3 | --> {"jsonrpc":"2.0","id":2,"method":"test_callMeBackLater","params":["foo",[1]]} 4 | <-- {"jsonrpc":"2.0","id":2,"result":null} 5 | <-- {"jsonrpc":"2.0","id":1,"method":"foo","params":[1]} 6 | --> {"jsonrpc":"2.0","id":1,"result":"my result"} 7 | 8 | -------------------------------------------------------------------------------- /cmd/evm/testdata/24/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", 3 | "currentDifficulty": null, 4 | "currentRandom": "0xdeadc0de", 5 | "currentGasLimit": "0x750a163df65e8a", 6 | "currentBaseFee": "0x500", 7 | "currentNumber": "1", 8 | "currentTimestamp": "1000" 9 | } 10 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/a0b57a12e25ac5adcedb2a5c45915f0f62aee869-4: -------------------------------------------------------------------------------- 1 | hxveD/aydfsgS5TeuNi8DoUBEmiSJaXY 2 | fFx7XvjwjN50NEb6Iuyt7y4MQJAI21beLKph2 3 | fQtuUE9txblTuq3N7gHRZB4ZMFYyDyCK2gt0Xlp/DoCzjA0QQ 4 | y2ptGsuSmgUtWj3NM9xuwYPm+Z/F84K6+AYiZ6PY13sovGKFYqVXVlxtIX 5 | qyUBnu3X9s8ZfjZ5cGhaJQYZOe3hVFaFf9Oes0UUothgiDktdQxdNLj7+5 -------------------------------------------------------------------------------- /cmd/evm/testdata/1/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { 3 | "balance": "0x5ffd4878be161d74", 4 | "code": "0x", 5 | "nonce": "0xac", 6 | "storage": {} 7 | }, 8 | "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192":{ 9 | "balance": "0xfeedbead", 10 | "nonce" : "0x00" 11 | } 12 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/24/env-missingrandom.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", 3 | "currentDifficulty": null, 4 | "currentRandom": null, 5 | "currentGasLimit": "0x750a163df65e8a", 6 | "currentBaseFee": "0x500", 7 | "currentNumber": "1", 8 | "currentTimestamp": "1000" 9 | } 10 | -------------------------------------------------------------------------------- /cmd/evm/testdata/7/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { 3 | "balance": "0x5ffd4878be161d74", 4 | "code": "0x", 5 | "nonce": "0xac", 6 | "storage": {} 7 | }, 8 | "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192":{ 9 | "balance": "0xfeedbead", 10 | "nonce" : "0x00" 11 | } 12 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/14/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { 3 | "balance": "0x5ffd4878be161d74", 4 | "code": "0x", 5 | "nonce": "0xac", 6 | "storage": {} 7 | }, 8 | "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192":{ 9 | "balance": "0xfeedbead", 10 | "nonce" : "0x00" 11 | } 12 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/19/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { 3 | "balance": "0x5ffd4878be161d74", 4 | "code": "0x", 5 | "nonce": "0xac", 6 | "storage": {} 7 | }, 8 | "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192":{ 9 | "balance": "0xfeedbead", 10 | "nonce" : "0x00" 11 | } 12 | } -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/sigs/vulnerabilities.json.minisig.2: -------------------------------------------------------------------------------- 1 | untrusted comment: Here's a comment 2 | RWQkliYstQBOKFQFQTjmCd6TPw07VZyWFSB3v4+1BM1kv8eHLE5FDy2OkPEqtdaL53xftlrHoJQie0uCcovdlSV8kpyxiLrxEQ0= 3 | trusted comment: Here's a trusted comment 4 | 3CnkIuz9MEDa7uNyGZAbKZhuirwfiqm7E1uQHrd2SiO4Y8+Akw9vs052AyKw0s5nhbYHCZE2IMQdHNjKwxEGAQ== 5 | -------------------------------------------------------------------------------- /cmd/evm/testdata/14/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", 3 | "currentGasLimit": "0x750a163df65e8a", 4 | "currentBaseFee": "0x500", 5 | "currentNumber": "12800000", 6 | "currentTimestamp": "100015", 7 | "parentTimestamp" : "99999", 8 | "parentDifficulty" : "0x2000000000000" 9 | } 10 | -------------------------------------------------------------------------------- /cmd/evm/testdata/15/exp.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "error": "transaction type not supported", 4 | "hash": "0xa98a24882ea90916c6a86da650fbc6b14238e46f0af04a131ce92be897507476" 5 | }, 6 | { 7 | "error": "transaction type not supported", 8 | "hash": "0x36bad80acce7040c45fd32764b5c2b2d2e6f778669fb41791f73f546d56e739a" 9 | } 10 | ] -------------------------------------------------------------------------------- /cmd/evm/testdata/19/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", 3 | "currentGasLimit": "0x750a163df65e8a", 4 | "currentBaseFee": "0x500", 5 | "currentNumber": "13000000", 6 | "currentTimestamp": "100015", 7 | "parentTimestamp" : "99999", 8 | "parentDifficulty" : "0x2000000000000" 9 | } 10 | -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/minisig-sigs/vulnerabilities.json.minisig.2: -------------------------------------------------------------------------------- 1 | untrusted comment: Here's a comment 2 | RWQkliYstQBOKFQFQTjmCd6TPw07VZyWFSB3v4+1BM1kv8eHLE5FDy2OkPEqtdaL53xftlrHoJQie0uCcovdlSV8kpyxiLrxEQ0= 3 | trusted comment: Here's a trusted comment 4 | 3CnkIuz9MEDa7uNyGZAbKZhuirwfiqm7E1uQHrd2SiO4Y8+Akw9vs052AyKw0s5nhbYHCZE2IMQdHNjKwxEGAQ== 5 | -------------------------------------------------------------------------------- /rpc/testdata/invalid-idonly.js: -------------------------------------------------------------------------------- 1 | // This test checks processing of messages that contain just the ID and nothing else. 2 | 3 | --> {"id":1} 4 | <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"invalid request"}} 5 | 6 | --> {"jsonrpc":"2.0","id":1} 7 | <-- {"jsonrpc":"2.0","id":1,"error":{"code":-32600,"message":"invalid request"}} 8 | -------------------------------------------------------------------------------- /cmd/evm/testdata/3/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentGasLimit" : "0x3b9aca00", 5 | "currentNumber" : "0x05", 6 | "currentTimestamp" : "0x03e8", 7 | "blockHashes" : { "1" : "0xdac58aa524e50956d0c0bae7f3f8bb9d35381365d07804dd5b48a5a297c06af4"} 8 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/4/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentGasLimit" : "0x3b9aca00", 5 | "currentNumber" : "0x05", 6 | "currentTimestamp" : "0x03e8", 7 | "blockHashes" : { "1" : "0xdac58aa524e50956d0c0bae7f3f8bb9d35381365d07804dd5b48a5a297c06af4"} 8 | } -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/sigs/vulnerabilities.json.minisig.3: -------------------------------------------------------------------------------- 1 | untrusted comment: One more (untrusted) comment 2 | RWQkliYstQBOKFQFQTjmCd6TPw07VZyWFSB3v4+1BM1kv8eHLE5FDy2OkPEqtdaL53xftlrHoJQie0uCcovdlSV8kpyxiLrxEQ0= 3 | trusted comment: Here's a trusted comment 4 | 3CnkIuz9MEDa7uNyGZAbKZhuirwfiqm7E1uQHrd2SiO4Y8+Akw9vs052AyKw0s5nhbYHCZE2IMQdHNjKwxEGAQ== 5 | -------------------------------------------------------------------------------- /rpc/testdata/invalid-badid.js: -------------------------------------------------------------------------------- 1 | // This test checks processing of messages with invalid ID. 2 | 3 | --> {"id":[],"method":"test_foo"} 4 | <-- {"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"invalid request"}} 5 | 6 | --> {"id":{},"method":"test_foo"} 7 | <-- {"jsonrpc":"2.0","id":null,"error":{"code":-32600,"message":"invalid request"}} 8 | -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/minisig-sigs/vulnerabilities.json.minisig.3: -------------------------------------------------------------------------------- 1 | untrusted comment: One more (untrusted) comment 2 | RWQkliYstQBOKFQFQTjmCd6TPw07VZyWFSB3v4+1BM1kv8eHLE5FDy2OkPEqtdaL53xftlrHoJQie0uCcovdlSV8kpyxiLrxEQ0= 3 | trusted comment: Here's a trusted comment 4 | 3CnkIuz9MEDa7uNyGZAbKZhuirwfiqm7E1uQHrd2SiO4Y8+Akw9vs052AyKw0s5nhbYHCZE2IMQdHNjKwxEGAQ== 5 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/9ebcbbfdaf0e98c87652e57226a4d8a35170c67d-4: -------------------------------------------------------------------------------- 1 | l2+DulrKBxKKtD1rGxlG4LjncdabFn9gvLZad2bSysqz/qTAUStTvqJQIDAQAB 2 | AoGAGRzwwir7XvBOAy5tM/uV6e+Zf6anZzus1s1Y1ClbjbE6HXbnWWF/wbZGOpwVbFLmQet 3 | 3Zm4vD6MXc7jpTLryzTQIvVdfQbRc6+MUVeLKwZatTXtdZrhu+Jk7hx0nTPy8Jcb 4 | uJqFk541aEw+mMogY/xEcfbWd6IOkp+4xqjlFLBEDytgbIECQQDvH/E6nk+hgN4H 5 | qzzVtxxr397vWrjr -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/sigs/vulnerabilities.json.minisig.1: -------------------------------------------------------------------------------- 1 | untrusted comment: signature from minisign secret key 2 | RWQkliYstQBOKFQFQTjmCd6TPw07VZyWFSB3v4+1BM1kv8eHLE5FDy2OkPEqtdaL53xftlrHoJQie0uCcovdlSV8kpyxiLrxEQ0= 3 | trusted comment: timestamp:1605618622 file:vulnerabilities.json 4 | osAPs4QPdDkmiWQxqeMIzYv/b+ZGxJ+19Sbrk1Cpq4t2gHBT+lqFtwL3OCzKWWyjGRTmHfsVGBYpzEdPRQ0/BQ== 5 | -------------------------------------------------------------------------------- /cmd/geth/testdata/vcheck/minisig-sigs/vulnerabilities.json.minisig.1: -------------------------------------------------------------------------------- 1 | untrusted comment: signature from minisign secret key 2 | RWQkliYstQBOKFQFQTjmCd6TPw07VZyWFSB3v4+1BM1kv8eHLE5FDy2OkPEqtdaL53xftlrHoJQie0uCcovdlSV8kpyxiLrxEQ0= 3 | trusted comment: timestamp:1605618622 file:vulnerabilities.json 4 | osAPs4QPdDkmiWQxqeMIzYv/b+ZGxJ+19Sbrk1Cpq4t2gHBT+lqFtwL3OCzKWWyjGRTmHfsVGBYpzEdPRQ0/BQ== 5 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/modules/ecdh/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_ecdh.h 2 | noinst_HEADERS += src/modules/ecdh/main_impl.h 3 | noinst_HEADERS += src/modules/ecdh/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_ecdh 6 | bench_ecdh_SOURCES = src/bench_ecdh.c 7 | bench_ecdh_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /crypto/ecies/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | *~ 25 | -------------------------------------------------------------------------------- /crypto/secp256k1/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | *~ 25 | -------------------------------------------------------------------------------- /core/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile ~/.gitignore_global 6 | 7 | /tmp 8 | */**/*un~ 9 | *un~ 10 | .DS_Store 11 | */**/.DS_Store 12 | 13 | -------------------------------------------------------------------------------- /cmd/evm/testdata/12/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentNumber" : "0x01", 5 | "currentTimestamp" : "0x03e8", 6 | "previousHash" : "0xfda4419b3660e99f37e536dae1ab081c180136bb38c837a93e93d9aab58553b2", 7 | "currentGasLimit" : "0x0f4240", 8 | "currentBaseFee" : "0x20" 9 | } 10 | 11 | -------------------------------------------------------------------------------- /cmd/geth/testdata/guswallet.json: -------------------------------------------------------------------------------- 1 | { 2 | "encseed": "26d87f5f2bf9835f9a47eefae571bc09f9107bb13d54ff12a4ec095d01f83897494cf34f7bed2ed34126ecba9db7b62de56c9d7cd136520a0427bfb11b8954ba7ac39b90d4650d3448e31185affcd74226a68f1e94b1108e6e0a4a91cdd83eba", 3 | "ethaddr": "d4584b5f6229b7be90727b0fc8c6b91bb427821f", 4 | "email": "gustav.simonsson@gmail.com", 5 | "btcaddr": "1EVknXyFC68kKNLkh6YnKzW41svSRoaAcx" 6 | } 7 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/modules/recovery/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_recovery.h 2 | noinst_HEADERS += src/modules/recovery/main_impl.h 3 | noinst_HEADERS += src/modules/recovery/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_recover 6 | bench_recover_SOURCES = src/bench_recover.c 7 | bench_recover_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /cmd/evm/testdata/20/txs.rlp: -------------------------------------------------------------------------------- 1 | "0xf8c2f85f8002825208948a8eafb1cf62bfbeb1741769dae1a9dd4799619201801ba09500e8ba27d3c33ca7764e107410f44cbd8c19794bde214d694683a7aa998cdba07235ae07e4bd6e0206d102b1f8979d6adab280466b6a82d2208ee08951f1f600f85f8002825208948a8eafb1cf62bfbeb1741769dae1a9dd4799619201801ba09500e8ba27d3c33ca7764e107410f44cbd8c19794bde214d694683a7aa998cdba07235ae07e4bd6e0206d102b1f8979d6adab280466b6a82d2208ee08951f1f600" -------------------------------------------------------------------------------- /cmd/evm/testdata/24/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { 3 | "balance": "0x5ffd4878be161d74", 4 | "code": "0x", 5 | "nonce": "0xac", 6 | "storage": {} 7 | }, 8 | "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192":{ 9 | "balance": "0xfeedbead", 10 | "nonce" : "0x00", 11 | "code" : "0x44600055", 12 | "_comment": "The code is 'sstore(0, random)'" 13 | } 14 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/3/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { 3 | "balance" : "0x0de0b6b3a7640000", 4 | "code" : "0x600140", 5 | "nonce" : "0x00", 6 | "storage" : { 7 | } 8 | }, 9 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 10 | "balance" : "0x0de0b6b3a7640000", 11 | "code" : "0x", 12 | "nonce" : "0x00", 13 | "storage" : { 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/4/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { 3 | "balance" : "0x0de0b6b3a7640000", 4 | "code" : "0x600340", 5 | "nonce" : "0x00", 6 | "storage" : { 7 | } 8 | }, 9 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 10 | "balance" : "0x0de0b6b3a7640000", 11 | "code" : "0x", 12 | "nonce" : "0x00", 13 | "storage" : { 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/23/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { 3 | "balance" : "0x0de0b6b3a7640000", 4 | "code" : "0x6001", 5 | "nonce" : "0x00", 6 | "storage" : { 7 | } 8 | }, 9 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 10 | "balance" : "0x0de0b6b3a7640000", 11 | "code" : "0x", 12 | "nonce" : "0x00", 13 | "storage" : { 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/3a010483a4ad8d7215447ce27e0fac3791235c99-4: -------------------------------------------------------------------------------- 1 | 2 | lGAGRzwwir7XvBOAy5tM/uV6e+Zf6anZzus1s1Y1ClbjbE6HXbnWWF/wbZGOpet 3 | 3Zm4vD6MXc7jpTLryzTQIvVdfQbRc6+MUVeLKwZatTXtdZrhu+Jk7hx0nTPy8Jcb 4 | uJqFk541aEw+mMogY/xEcfbWd6IOkp+4xqjlFLBEDytgbIECQQDvH/E6nk+hgN4H 5 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLmQcj2PprIMmPcQrooz8vp 6 | jy4SHEg1AkEA/v13/5M47K9vCxmb8QeD/asydfsgS5TeuNi8DoUBEmiSJwma7FXY 7 | fFUtxuvL7XvjwjN5 -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/libsecp256k1.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libsecp256k1 7 | Description: Optimized C library for EC operations on curve secp256k1 8 | URL: https://github.com/bitcoin-core/secp256k1 9 | Version: @PACKAGE_VERSION@ 10 | Cflags: -I${includedir} 11 | Libs.private: @SECP_LIBS@ 12 | Libs: -L${libdir} -lsecp256k1 13 | 14 | -------------------------------------------------------------------------------- /cmd/evm/testdata/16/signed_txs.rlp: -------------------------------------------------------------------------------- 1 | "0xf8cab86401f8610180018252089411111111111111111111111111111111111111112080c001a0937f65ef1deece46c473b99962678fb7c38425cf303d1e8fa9717eb4b9d012b5a01940c5a5647c4940217ffde1051a5fd92ec8551e275c1787f81f50a2ad84de43b86201f85f018001529411111111111111111111111111111111111111112080c001a0241c3aec732205542a87fef8c76346741e85480bce5a42d05a9a73dac892f84ca04f52e2dfce57f3a02ed10e085e1a154edf38a726da34127c85fc53b4921759c8" -------------------------------------------------------------------------------- /cmd/evm/testdata/5/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 3 | "currentDifficulty": "0x20000", 4 | "currentGasLimit": "0x750a163df65e8a", 5 | "currentNumber": "1", 6 | "currentTimestamp": "1000", 7 | "ommers": [ 8 | {"delta": 1, "address": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" }, 9 | {"delta": 2, "address": "0xcccccccccccccccccccccccccccccccccccccccc" } 10 | ] 11 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/2/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { 3 | "balance" : "0x0de0b6b3a7640000", 4 | "code" : "0x6001600053600160006001f0ff00", 5 | "nonce" : "0x00", 6 | "storage" : { 7 | } 8 | }, 9 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 10 | "balance" : "0x0de0b6b3a7640000", 11 | "code" : "0x", 12 | "nonce" : "0x00", 13 | "storage" : { 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/23/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x", 4 | "gas" : "0x5f5e100", 5 | "gasPrice" : "0x1", 6 | "nonce" : "0x0", 7 | "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", 8 | "value" : "0x186a0", 9 | "v" : "0x0", 10 | "r" : "0x0", 11 | "s" : "0x0", 12 | "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", 13 | "protected": false 14 | } 15 | ] 16 | -------------------------------------------------------------------------------- /cmd/evm/testdata/14/env.uncles.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase": "0xc94f5374fce5edbc8e2a8697c15331677e6ebf0b", 3 | "currentGasLimit": "0x750a163df65e8a", 4 | "currentBaseFee": "0x500", 5 | "currentNumber": "12800000", 6 | "currentTimestamp": "100035", 7 | "parentTimestamp" : "99999", 8 | "parentDifficulty" : "0x2000000000000", 9 | "parentUncleHash" : "0x000000000000000000000000000000000000000000000000000000000000beef" 10 | } 11 | -------------------------------------------------------------------------------- /cmd/evm/testdata/15/exp2.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "address": "0xd02d72e067e77158444ef2020ff2d325f929b363", 4 | "hash": "0xa98a24882ea90916c6a86da650fbc6b14238e46f0af04a131ce92be897507476", 5 | "intrinsicGas": "0x5208" 6 | }, 7 | { 8 | "address": "0xd02d72e067e77158444ef2020ff2d325f929b363", 9 | "hash": "0x36bad80acce7040c45fd32764b5c2b2d2e6f778669fb41791f73f546d56e739a", 10 | "intrinsicGas": "0x5208" 11 | } 12 | ] 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Request a feature 3 | about: Report a missing feature - e.g. as a step before submitting a PR 4 | title: '' 5 | labels: 'type:feature' 6 | assignees: '' 7 | --- 8 | 9 | # Rationale 10 | 11 | Why should this feature exist? 12 | What are the use-cases? 13 | 14 | # Implementation 15 | 16 | Do you have ideas regarding the implementation of this feature? 17 | Are you willing to implement this feature? -------------------------------------------------------------------------------- /cmd/evm/testdata/13/signed_txs.rlp: -------------------------------------------------------------------------------- 1 | "0xf8d2b86702f864010180820fa08284d09411111111111111111111111111111111111111118080c001a0b7dfab36232379bb3d1497a4f91c1966b1f932eae3ade107bf5d723b9cb474e0a06261c359a10f2132f126d250485b90cf20f30340801244a08ef6142ab33d1904b86702f864010280820fa08284d09411111111111111111111111111111111111111118080c080a0d4ec563b6568cd42d998fc4134b36933c6568d01533b5adf08769270243c6c7fa072bf7c21eac6bbeae5143371eef26d5e279637f3bd73482b55979d76d935b1e9" -------------------------------------------------------------------------------- /cmd/evm/testdata/15/signed_txs.rlp: -------------------------------------------------------------------------------- 1 | "0xf8d2b86702f864010180820fa08284d09411111111111111111111111111111111111111118080c001a0b7dfab36232379bb3d1497a4f91c1966b1f932eae3ade107bf5d723b9cb474e0a06261c359a10f2132f126d250485b90cf20f30340801244a08ef6142ab33d1904b86702f864010280820fa08284d09411111111111111111111111111111111111111118080c080a0d4ec563b6568cd42d998fc4134b36933c6568d01533b5adf08769270243c6c7fa072bf7c21eac6bbeae5143371eef26d5e279637f3bd73482b55979d76d935b1e9" -------------------------------------------------------------------------------- /crypto/blake2b/blake2b_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !amd64 || appengine || gccgo 6 | // +build !amd64 appengine gccgo 7 | 8 | package blake2b 9 | 10 | func f(h *[8]uint64, m *[16]uint64, c0, c1 uint64, flag uint64, rounds uint64) { 11 | fGeneric(h, m, c0, c1, flag, rounds) 12 | } 13 | -------------------------------------------------------------------------------- /metrics/writer_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "sort" 5 | "testing" 6 | ) 7 | 8 | func TestMetricsSorting(t *testing.T) { 9 | var namedMetrics = namedMetricSlice{ 10 | {name: "zzz"}, 11 | {name: "bbb"}, 12 | {name: "fff"}, 13 | {name: "ggg"}, 14 | } 15 | 16 | sort.Sort(namedMetrics) 17 | for i, name := range []string{"bbb", "fff", "ggg", "zzz"} { 18 | if namedMetrics[i].name != name { 19 | t.Fail() 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Ask a question 3 | about: Something is unclear 4 | title: '' 5 | labels: 'type:docs' 6 | assignees: '' 7 | --- 8 | 9 | This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [discord](https://discord.gg/nthXNEv) or the Ethereum stack exchange at https://ethereum.stackexchange.com. 10 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/no-address: -------------------------------------------------------------------------------- 1 | {"crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /cmd/evm/testdata/13/exp.json: -------------------------------------------------------------------------------- 1 | { 2 | "body": "0xf8d2b86702f864010180820fa08284d09411111111111111111111111111111111111111118080c001a0b7dfab36232379bb3d1497a4f91c1966b1f932eae3ade107bf5d723b9cb474e0a06261c359a10f2132f126d250485b90cf20f30340801244a08ef6142ab33d1904b86702f864010280820fa08284d09411111111111111111111111111111111111111118080c080a0d4ec563b6568cd42d998fc4134b36933c6568d01533b5adf08769270243c6c7fa072bf7c21eac6bbeae5143371eef26d5e279637f3bd73482b55979d76d935b1e9" 3 | } 4 | -------------------------------------------------------------------------------- /cmd/evm/testdata/15/signed_txs.rlp.json: -------------------------------------------------------------------------------- 1 | { 2 | "txsRlp" : "0xf8d2b86702f864010180820fa08284d09411111111111111111111111111111111111111118080c001a0b7dfab36232379bb3d1497a4f91c1966b1f932eae3ade107bf5d723b9cb474e0a06261c359a10f2132f126d250485b90cf20f30340801244a08ef6142ab33d1904b86702f864010280820fa08284d09411111111111111111111111111111111111111118080c080a0d4ec563b6568cd42d998fc4134b36933c6568d01533b5adf08769270243c6c7fa072bf7c21eac6bbeae5143371eef26d5e279637f3bd73482b55979d76d935b1e9" 3 | } 4 | 5 | -------------------------------------------------------------------------------- /cmd/evm/testdata/11/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentNumber" : "0x01", 5 | "currentTimestamp" : "0x03e8", 6 | "previousHash" : "0xfda4419b3660e99f37e536dae1ab081c180136bb38c837a93e93d9aab58553b2", 7 | "currentGasLimit" : "0x0f4240", 8 | "blockHashes" : { 9 | "0" : "0xfda4419b3660e99f37e536dae1ab081c180136bb38c837a93e93d9aab58553b2" 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /cmd/evm/testdata/10/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentNumber" : "0x01", 5 | "currentTimestamp" : "0x079e", 6 | "previousHash" : "0xcb23ee65a163121f640673b41788ee94633941405f95009999b502eedfbbfd4f", 7 | "currentGasLimit" : "0x40000000", 8 | "currentBaseFee" : "0x036b", 9 | "blockHashes" : { 10 | "0" : "0xcb23ee65a163121f640673b41788ee94633941405f95009999b502eedfbbfd4f" 11 | } 12 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/13/env.json: -------------------------------------------------------------------------------- 1 | { 2 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", 3 | "currentDifficulty" : "0x020000", 4 | "currentNumber" : "0x01", 5 | "currentTimestamp" : "0x079e", 6 | "previousHash" : "0xcb23ee65a163121f640673b41788ee94633941405f95009999b502eedfbbfd4f", 7 | "currentGasLimit" : "0x40000000", 8 | "currentBaseFee" : "0x036b", 9 | "blockHashes" : { 10 | "0" : "0xcb23ee65a163121f640673b41788ee94633941405f95009999b502eedfbbfd4f" 11 | } 12 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/16/exp.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", 4 | "hash": "0x7cc3d1a8540a44736750f03bb4d85c0113be4b3472a71bf82241a3b261b479e6", 5 | "intrinsicGas": "0x5208" 6 | }, 7 | { 8 | "error": "intrinsic gas too low: have 82, want 21000", 9 | "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", 10 | "hash": "0x3b2d2609e4361562edb9169314f4c05afc6dbf5d706bf9dda5abe242ab76a22b", 11 | "intrinsicGas": "0x5208" 12 | } 13 | ] -------------------------------------------------------------------------------- /accounts/keystore/testdata/dupes/1: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/dupes/2: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/dupes/foo: -------------------------------------------------------------------------------- 1 | {"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/aaa: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/zero: -------------------------------------------------------------------------------- 1 | {"address":"0000000000000000000000000000000000000000","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/zzz: -------------------------------------------------------------------------------- 1 | {"address":"289d485d9771714cce91d3393d764e1311907acc","crypto":{"cipher":"aes-128-ctr","ciphertext":"faf32ca89d286b107f5e6d842802e05263c49b78d46eac74e6109e9a963378ab","cipherparams":{"iv":"558833eec4a665a8c55608d7d503407d"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"d571fff447ffb24314f9513f5160246f09997b857ac71348b73e785aab40dc04"},"mac":"21edb85ff7d0dab1767b9bf498f2c3cb7be7609490756bd32300bb213b59effe"},"id":"3279afcf-55ba-43ff-8997-02dcc46a6525","version":3} -------------------------------------------------------------------------------- /rpc/testdata/reqresp-batch.js: -------------------------------------------------------------------------------- 1 | // There is no response for all-notification batches. 2 | 3 | --> [{"jsonrpc":"2.0","method":"test_echo","params":["x",99]}] 4 | 5 | // This test checks regular batch calls. 6 | 7 | --> [{"jsonrpc":"2.0","id":2,"method":"test_echo","params":[]}, {"jsonrpc":"2.0","id": 3,"method":"test_echo","params":["x",3]}] 8 | <-- [{"jsonrpc":"2.0","id":2,"error":{"code":-32602,"message":"missing value for required argument 0"}},{"jsonrpc":"2.0","id":3,"result":{"String":"x","Int":3,"Args":null}}] 9 | -------------------------------------------------------------------------------- /cmd/clef/testdata/sign_normal_exp_ok.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsonrpc": "2.0", 3 | "method": "account_signTransaction", 4 | "params": [ 5 | { 6 | "from":"0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 7 | "to":"0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 8 | "gas": "0x333", 9 | "gasPrice": "0x123", 10 | "nonce": "0x0", 11 | "value": "0x10", 12 | "data": 13 | "0x4401a6e40000000000000000000000000000000000000000000000000000000000000012" 14 | } 15 | ], 16 | "id": 67 17 | } 18 | -------------------------------------------------------------------------------- /cmd/evm/testdata/2/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x", 4 | "gas" : "0x5f5e100", 5 | "gasPrice" : "0x1", 6 | "nonce" : "0x0", 7 | "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", 8 | "value" : "0x186a0", 9 | "v" : "0x1b", 10 | "r" : "0x88544c93a564b4c28d2ffac2074a0c55fdd4658fe0d215596ed2e32e3ef7f56b", 11 | "s" : "0x7fb4075d54190f825d7c47bb820284757b34fd6293904a93cddb1d3aa961ac28", 12 | "hash" : "0x72fadbef39cd251a437eea619cfeda752271a5faaaa2147df012e112159ffb81" 13 | } 14 | ] -------------------------------------------------------------------------------- /cmd/evm/testdata/3/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x", 4 | "gas" : "0x5f5e100", 5 | "gasPrice" : "0x1", 6 | "nonce" : "0x0", 7 | "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", 8 | "value" : "0x186a0", 9 | "v" : "0x1b", 10 | "r" : "0x88544c93a564b4c28d2ffac2074a0c55fdd4658fe0d215596ed2e32e3ef7f56b", 11 | "s" : "0x7fb4075d54190f825d7c47bb820284757b34fd6293904a93cddb1d3aa961ac28", 12 | "hash" : "0x72fadbef39cd251a437eea619cfeda752271a5faaaa2147df012e112159ffb81" 13 | } 14 | ] -------------------------------------------------------------------------------- /cmd/evm/testdata/4/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x", 4 | "gas" : "0x5f5e100", 5 | "gasPrice" : "0x1", 6 | "nonce" : "0x0", 7 | "to" : "0x095e7baea6a6c7c4c2dfeb977efac326af552d87", 8 | "value" : "0x186a0", 9 | "v" : "0x1b", 10 | "r" : "0x88544c93a564b4c28d2ffac2074a0c55fdd4658fe0d215596ed2e32e3ef7f56b", 11 | "s" : "0x7fb4075d54190f825d7c47bb820284757b34fd6293904a93cddb1d3aa961ac28", 12 | "hash" : "0x72fadbef39cd251a437eea619cfeda752271a5faaaa2147df012e112159ffb81" 13 | } 14 | ] -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/.hiddenfile: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} 2 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/very-light-scrypt.json: -------------------------------------------------------------------------------- 1 | {"address":"45dea0fb0bba44f4fcf290bba71fd57d7117cbb8","crypto":{"cipher":"aes-128-ctr","ciphertext":"b87781948a1befd247bff51ef4063f716cf6c2d3481163e9a8f42e1f9bb74145","cipherparams":{"iv":"dc4926b48a105133d2f16b96833abf1e"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":2,"p":1,"r":8,"salt":"004244bbdc51cadda545b1cfa43cff9ed2ae88e08c61f1479dbb45410722f8f0"},"mac":"39990c1684557447940d4c69e06b1b82b2aceacb43f284df65c956daf3046b85"},"id":"ce541d8d-c79b-40f8-9f8c-20f59616faba","version":3} 2 | -------------------------------------------------------------------------------- /cmd/clef/testdata/sign_bad_checksum_exp_fail.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsonrpc": "2.0", 3 | "method": "account_signTransaction", 4 | "params": [ 5 | { 6 | "from":"0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192", 7 | "to":"0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192", 8 | "gas": "0x333", 9 | "gasPrice": "0x123", 10 | "nonce": "0x0", 11 | "value": "0x10", 12 | "data": 13 | "0x4401a6e40000000000000000000000000000000000000000000000000000000000000012" 14 | } 15 | ], 16 | "id": 67 17 | } 18 | -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qubes.Clefsign: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SIGNER_BIN="/home/user/tools/clef/clef" 4 | SIGNER_CMD="/home/user/tools/gtksigner/gtkui.py -s $SIGNER_BIN" 5 | 6 | # Start clef if not already started 7 | if [ ! -S /home/user/.clef/clef.ipc ]; then 8 | $SIGNER_CMD & 9 | sleep 1 10 | fi 11 | 12 | # Should be started by now 13 | if [ -S /home/user/.clef/clef.ipc ]; then 14 | # Post incoming request to HTTP channel 15 | curl -H "Content-Type: application/json" -X POST -d @- http://localhost:8550 2>/dev/null 16 | fi 17 | -------------------------------------------------------------------------------- /cmd/clef/testdata/sign_1559_missing_field_exp_fail.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsonrpc": "2.0", 3 | "method": "account_signTransaction", 4 | "params": [ 5 | { 6 | "from": "0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 7 | "to": "0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 8 | "gas": "0x333", 9 | "maxFeePerGas": "0x123", 10 | "nonce": "0x0", 11 | "value": "0x10", 12 | "data": "0x4401a6e40000000000000000000000000000000000000000000000000000000000000012" 13 | } 14 | ], 15 | "id": 67 16 | } 17 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/java/org_bitcoin_Secp256k1Context.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "org_bitcoin_Secp256k1Context.h" 4 | #include "include/secp256k1.h" 5 | 6 | SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context 7 | (JNIEnv* env, jclass classObject) 8 | { 9 | secp256k1_context *ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY); 10 | 11 | (void)classObject;(void)env; 12 | 13 | return (uintptr_t)ctx; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /rlp/rlpgen/testdata/optional.in.txt: -------------------------------------------------------------------------------- 1 | // -*- mode: go -*- 2 | 3 | package test 4 | 5 | type Aux struct { 6 | A uint64 7 | } 8 | 9 | type Test struct { 10 | Uint64 uint64 `rlp:"optional"` 11 | Pointer *uint64 `rlp:"optional"` 12 | String string `rlp:"optional"` 13 | Slice []uint64 `rlp:"optional"` 14 | Array [3]byte `rlp:"optional"` 15 | NamedStruct Aux `rlp:"optional"` 16 | AnonStruct struct{ A string } `rlp:"optional"` 17 | } 18 | -------------------------------------------------------------------------------- /cmd/evm/testdata/19/readme.md: -------------------------------------------------------------------------------- 1 | ## Difficulty calculation 2 | 3 | This test shows how the `evm t8n` can be used to calculate the (ethash) difficulty, if none is provided by the caller, 4 | this time on `GrayGlacier` (Eip 5133). 5 | 6 | Calculating it (with an empty set of txs) using `GrayGlacier` rules (and no provided unclehash for the parent block): 7 | ``` 8 | [user@work evm]$ ./evm t8n --input.alloc=./testdata/19/alloc.json --input.txs=./testdata/19/txs.json --input.env=./testdata/19/env.json --output.result=stdout --state.fork=GrayGlacier 9 | ``` -------------------------------------------------------------------------------- /crypto/secp256k1/scalar_mult_nocgo.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Jeffrey Wilcke, Felix Lange, Gustav Simonsson. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be found in 3 | // the LICENSE file. 4 | 5 | //go:build gofuzz || !cgo 6 | // +build gofuzz !cgo 7 | 8 | package secp256k1 9 | 10 | import "math/big" 11 | 12 | func (BitCurve *BitCurve) ScalarMult(Bx, By *big.Int, scalar []byte) (*big.Int, *big.Int) { 13 | panic("ScalarMult is not available when secp256k1 is built without cgo") 14 | } 15 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/ae4593626d8796e079a358c2395a4f6c9ddd6a44-6: -------------------------------------------------------------------------------- 1 | 9pmM gY/xEcfbWd6IOkp+4xqjlFLBEDytgbparsing /E6nk+hgN4H 2 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLmQcj2PprLANGcQrooz8vp 3 | jy4SHEg1AkEA/v13/@M47K9vCxb8QeD/asydfsgS5TeuNi8DoUBEmiSJwma7FXY 4 | fFUtxuvL7XvjwjN5B30pNEbc6Iuyt7y4MQJBAIt21su4b3sjXNueLKH85Q+phy2U 5 | fQtuUE9txblTu14q3N7gHRZB4ZMhFYyDy8CKrN2cPg/Fvyt0Xl/DoCz� jA0CQQDU 6 | y2ptGsuSmgUtWj3NM9xuwYPm+Z/F84K6+ARYiZ6Yj013sovGKUFfYAqVXVlxtIX 7 | qyUBnu3Xh9ps8ZfjLZO7BAkEAlT4R5Yl6cGhaJQYFZHOde3JEMhNRcVFMO8dDaFeo 8 | f9Oeos0Uot -------------------------------------------------------------------------------- /cmd/clef/testdata/sign_1559_missing_maxfeepergas_exp_fail.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsonrpc": "2.0", 3 | "method": "account_signTransaction", 4 | "params": [ 5 | { 6 | "from": "0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 7 | "to": "0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 8 | "gas": "0x333", 9 | "maxPriorityFeePerGas": "0x123", 10 | "nonce": "0x0", 11 | "value": "0x10", 12 | "data": "0x4401a6e40000000000000000000000000000000000000000000000000000000000000012" 13 | } 14 | ], 15 | "id": 67 16 | } 17 | -------------------------------------------------------------------------------- /cmd/evm/testdata/11/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x38600060013960015160005560006000f3", 4 | "gas" : "0x61a80", 5 | "gasPrice" : "0x1", 6 | "nonce" : "0x0", 7 | "value" : "0x186a0", 8 | "v" : "0x1c", 9 | "r" : "0x2e1391fd903387f1cc2b51df083805fb4bbb0d4710a2cdf4a044d191ff7be63e", 10 | "s" : "0x7f10a933c42ab74927db02b1db009e923d9d2ab24ac24d63c399f2fe5d9c9b22", 11 | "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" 12 | } 13 | ] 14 | 15 | -------------------------------------------------------------------------------- /metrics/opentsdb_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "net" 5 | "time" 6 | ) 7 | 8 | func ExampleOpenTSDB() { 9 | addr, _ := net.ResolveTCPAddr("net", ":2003") 10 | go OpenTSDB(DefaultRegistry, 1*time.Second, "some.prefix", addr) 11 | } 12 | 13 | func ExampleOpenTSDBWithConfig() { 14 | addr, _ := net.ResolveTCPAddr("net", ":2003") 15 | go OpenTSDBWithConfig(OpenTSDBConfig{ 16 | Addr: addr, 17 | Registry: DefaultRegistry, 18 | FlushInterval: 1 * time.Second, 19 | DurationUnit: time.Millisecond, 20 | }) 21 | } 22 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/foo/fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e: -------------------------------------------------------------------------------- 1 | {"address":"fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e","crypto":{"cipher":"aes-128-ctr","ciphertext":"8124d5134aa4a927c79fd852989e4b5419397566f04b0936a1eb1d168c7c68a5","cipherparams":{"iv":"e2febe17176414dd2cda28287947eb2f"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":4096,"p":6,"r":8,"salt":"44b415ede89f3bdd6830390a21b78965f571b347a589d1d943029f016c5e8bd5"},"mac":"5e149ff25bfd9dd45746a84bb2bcd2f015f2cbca2b6d25c5de8c29617f71fe5b"},"id":"d6ac5452-2b2c-4d3c-ad80-4bf0327d971c","version":3} -------------------------------------------------------------------------------- /cmd/clef/testdata/sign_1559_tx.json: -------------------------------------------------------------------------------- 1 | { 2 | "jsonrpc": "2.0", 3 | "method": "account_signTransaction", 4 | "params": [ 5 | { 6 | "from": "0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 7 | "to": "0x8A8eAFb1cf62BfBeb1741769DAE1a9dd47996192", 8 | "gas": "0x333", 9 | "maxPriorityFeePerGas": "0x123", 10 | "maxFeePerGas": "0x123", 11 | "nonce": "0x0", 12 | "value": "0x10", 13 | "data": "0x4401a6e40000000000000000000000000000000000000000000000000000000000000012" 14 | } 15 | ], 16 | "id": 67 17 | } 18 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/109bc9b8fd4fef63493e104c703c79bc4a5e8d34-6: -------------------------------------------------------------------------------- 1 | kp+4xqFLBEDtgbIECgN4H 2 | qxx39jrIgbJpvv8c 3 | uJq4EmMogY/xEfbWd6IOkp4xqjlFLDytgbIECQQDvH/6hgN4H 4 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVLmQcjPpIMPcQroz8vp 5 | jSHEg1AkEA/3M47K9vCmbQD/ydfsgS5TeuNi8DUBEmiSJwma7FXY 6 | fFUtxuvL7XvjwjN5B0pNEbc6uyt7y4MQAIt1sub3sjXNueLH8Q+ph2U 7 | fQtuUE9txblTu14q3N7gHRB4ZMhFYyDy8CKrN2cPg/Ft0Xlp/oA0CQQDU 8 | y2psSW3wYPm+Z/F84K6+ARYiZPYj0sovGKfYAqVVlxtIX 9 | UBn3Xps8jZOgBAkAlTR5l6cGhaJYZH3JEh�#NcFMO8dJDaFeof9Oeos0tktdHxdNEwLQf7lJJBzOswW== 10 | ---33840END SA TSTIG K -------------------------------------------------------------------------------- /core/types/gen_log_rlp.go: -------------------------------------------------------------------------------- 1 | // Code generated by rlpgen. DO NOT EDIT. 2 | 3 | //go:build !norlpgen 4 | // +build !norlpgen 5 | 6 | package types 7 | 8 | import "github.com/ethereum/go-ethereum/rlp" 9 | import "io" 10 | 11 | func (obj *rlpLog) EncodeRLP(_w io.Writer) error { 12 | w := rlp.NewEncoderBuffer(_w) 13 | _tmp0 := w.List() 14 | w.WriteBytes(obj.Address[:]) 15 | _tmp1 := w.List() 16 | for _, _tmp2 := range obj.Topics { 17 | w.WriteBytes(_tmp2[:]) 18 | } 19 | w.ListEnd(_tmp1) 20 | w.WriteBytes(obj.Data) 21 | w.ListEnd(_tmp0) 22 | return w.Flush() 23 | } 24 | -------------------------------------------------------------------------------- /p2p/discover/v5wire/testdata/v5.1-ping-message.txt: -------------------------------------------------------------------------------- 1 | # src-node-id = 0xaaaa8419e9f49d0083561b48287df592939a8d19947d8c0ef88f2a4856a69fbb 2 | # dest-node-id = 0xbbbb9d047f0488c0b5a93c1c3f2d8bafc7c8ff337024a55434a0d0555de64db9 3 | # nonce = 0xffffffffffffffffffffffff 4 | # read-key = 0x00000000000000000000000000000000 5 | # ping.req-id = 0x00000001 6 | # ping.enr-seq = 2 7 | 8 | 00000000000000000000000000000000088b3d4342774649325f313964a39e55 9 | ea96c005ad52be8c7560413a7008f16c9e6d2f43bbea8814a546b7409ce783d3 10 | 4c4f53245d08dab84102ed931f66d1492acb308fa1c6715b9d139b81acbdcc 11 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8: -------------------------------------------------------------------------------- 1 | {"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3} -------------------------------------------------------------------------------- /cmd/evm/testdata/10/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x1111111111111111111111111111111111111111" : { 3 | "balance" : "0x010000000000", 4 | "code" : "0xfe", 5 | "nonce" : "0x01", 6 | "storage" : { 7 | } 8 | }, 9 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 10 | "balance" : "0x010000000000", 11 | "code" : "0x", 12 | "nonce" : "0x01", 13 | "storage" : { 14 | } 15 | }, 16 | "0xd02d72e067e77158444ef2020ff2d325f929b363" : { 17 | "balance" : "0x01000000000000", 18 | "code" : "0x", 19 | "nonce" : "0x01", 20 | "storage" : { 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /cmd/evm/testdata/13/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x1111111111111111111111111111111111111111" : { 3 | "balance" : "0x010000000000", 4 | "code" : "0xfe", 5 | "nonce" : "0x01", 6 | "storage" : { 7 | } 8 | }, 9 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 10 | "balance" : "0x010000000000", 11 | "code" : "0x", 12 | "nonce" : "0x01", 13 | "storage" : { 14 | } 15 | }, 16 | "0xd02d72e067e77158444ef2020ff2d325f929b363" : { 17 | "balance" : "0x01000000000000", 18 | "code" : "0x", 19 | "nonce" : "0x01", 20 | "storage" : { 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report a bug 3 | about: Something with go-ethereum is not working as expected 4 | title: '' 5 | labels: 'type:bug' 6 | assignees: '' 7 | --- 8 | 9 | #### System information 10 | 11 | Geth version: `geth version` 12 | OS & Version: Windows/Linux/OSX 13 | Commit hash : (if `develop`) 14 | 15 | #### Expected behaviour 16 | 17 | 18 | #### Actual behaviour 19 | 20 | 21 | #### Steps to reproduce the behaviour 22 | 23 | 24 | #### Backtrace 25 | 26 | ```` 27 | [backtrace] 28 | ```` 29 | 30 | When submitting logs: please submit them as text and not screenshots. -------------------------------------------------------------------------------- /cmd/evm/testdata/12/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x", 4 | "gas" : "0x5208", 5 | "nonce" : "0x0", 6 | "to" : "0x1111111111111111111111111111111111111111", 7 | "value" : "0x20", 8 | "v" : "0x0", 9 | "r" : "0x0", 10 | "s" : "0x0", 11 | "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", 12 | "chainId" : "0x1", 13 | "type" : "0x2", 14 | "maxFeePerGas" : "0xfa0", 15 | "maxPriorityFeePerGas" : "0x20", 16 | "accessList" : [ 17 | ] 18 | } 19 | ] 20 | 21 | -------------------------------------------------------------------------------- /log/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Alan Shreve 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /log/handler_go14.go: -------------------------------------------------------------------------------- 1 | //go:build go1.4 2 | // +build go1.4 3 | 4 | package log 5 | 6 | import "sync/atomic" 7 | 8 | // swapHandler wraps another handler that may be swapped out 9 | // dynamically at runtime in a thread-safe fashion. 10 | type swapHandler struct { 11 | handler atomic.Value 12 | } 13 | 14 | func (h *swapHandler) Log(r *Record) error { 15 | return (*h.handler.Load().(*Handler)).Log(r) 16 | } 17 | 18 | func (h *swapHandler) Swap(newHandler Handler) { 19 | h.handler.Store(&newHandler) 20 | } 21 | 22 | func (h *swapHandler) Get() Handler { 23 | return *h.handler.Load().(*Handler) 24 | } 25 | -------------------------------------------------------------------------------- /metrics/graphite_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "net" 5 | "time" 6 | ) 7 | 8 | func ExampleGraphite() { 9 | addr, _ := net.ResolveTCPAddr("net", ":2003") 10 | go Graphite(DefaultRegistry, 1*time.Second, "some.prefix", addr) 11 | } 12 | 13 | func ExampleGraphiteWithConfig() { 14 | addr, _ := net.ResolveTCPAddr("net", ":2003") 15 | go GraphiteWithConfig(GraphiteConfig{ 16 | Addr: addr, 17 | Registry: DefaultRegistry, 18 | FlushInterval: 1 * time.Second, 19 | DurationUnit: time.Millisecond, 20 | Percentiles: []float64{0.5, 0.75, 0.99, 0.999}, 21 | }) 22 | } 23 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/7ea9f71020f3eb783f743f744eba8d8ca4b2582f-3: -------------------------------------------------------------------------------- 1 | 2 | l2+DulrKBxKKtD1rGxlG4LjncdabFn9gvLZad2bSysqz/qTAUStTvqJQIDAQAB 3 | AoGAGRzwwir7XvBOAy5tM/uV6e+Zf6anZzus1s1Y1ClbjbE6HXbnWWF/wbZGOpet 4 | 3Zm4vD6MXc7jpTLryzTQIvVdfQbRc6+MUVeLKwZatTXtdZrhu+Jk7hx0nTPy8Jcb 5 | uJqFk541aEw+mMogY/xEcfbWd6IOkp+4xqjlFLBEDytgbIECQQDvH/E6nk+hgN4H 6 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLmQcj2PprIMmPcQrooz8vp 7 | jy4SHEg1AkEA/v13/5M47K9vCxmb8QeD/asydfsgS5TeuNi8DoUBEmiSJwma7FXY 8 | fFUtxuvL7XvjwjN5B30pNEbc6Iuyt7y4MQJBAIt21su4b3sjXNueLKH85Q+phy2U 9 | fQtuUE9txblTu14q3N7gHRZB4ZMhFYyDy8CKrN2cPg/Fvyt0Xlp/DoCzjA0CQQDU 10 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/v1/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e: -------------------------------------------------------------------------------- 1 | {"address":"cb61d5a9c4896fb9658090b597ef0e7be6f7b67e","Crypto":{"cipher":"aes-128-cbc","ciphertext":"6143d3192db8b66eabd693d9c4e414dcfaee52abda451af79ccf474dafb35f1bfc7ea013aa9d2ee35969a1a2e8d752d0","cipherparams":{"iv":"35337770fc2117994ecdcad026bccff4"},"kdf":"scrypt","kdfparams":{"n":262144,"r":8,"p":1,"dklen":32,"salt":"9afcddebca541253a2f4053391c673ff9fe23097cd8555d149d929e4ccf1257f"},"mac":"3f3d5af884b17a100b0b3232c0636c230a54dc2ac8d986227219b0dd89197644","version":"1"},"id":"e25f7c1f-d318-4f29-b62c-687190d4d299","version":"1"} -------------------------------------------------------------------------------- /tests/solidity/contracts/Migrations.sol: -------------------------------------------------------------------------------- 1 | pragma solidity >=0.4.21 <0.6.0; 2 | 3 | contract Migrations { 4 | address public owner; 5 | uint public last_completed_migration; 6 | 7 | constructor() public { 8 | owner = msg.sender; 9 | } 10 | 11 | modifier restricted() { 12 | if (msg.sender == owner) _; 13 | } 14 | 15 | function setCompleted(uint completed) public restricted { 16 | last_completed_migration = completed; 17 | } 18 | 19 | function upgrade(address new_address) public restricted { 20 | Migrations upgraded = Migrations(new_address); 21 | upgraded.setCompleted(last_completed_migration); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/scalar_low.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef uint32_t secp256k1_scalar; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/30494b85bb60ad7f099fa49d427007a761620d8f-5: -------------------------------------------------------------------------------- 1 | jXbnWWF/wbZGOpet 2 | 3Zm4vD6MXc7jpTLryzTQIvVdfQbRc6+MUVeLKwZatTXtdZrhu+Jk7hx0nTPy8Jcb 3 | uJqFk541aEw+mMogY/xEcfbWd6IOkp+4xqjlFLBEDytgbIECQQDvH/E6nk+hgN4H 4 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLmQcj2PprIMmPcQrooz8vp 5 | jy4SHEg1AkEA/v13/5M47K9vCxb8QeD/asydfsgS5TeuNi8DoUBEmiSJwma7FXY 6 | fFUtxuvL7XvjwjN5B30pNEbc6Iuyt7y4MQJBAIt21su4b3sjXNueLKH85Q+phy2U 7 | fQtuUE9txblTu14q3N7gHRZB4ZMhFYyDy8CKrN2cPg/Fvyt0Xl/DoCzjA0CQQDU 8 | y2ptGsuSmgUtWj3NM9xuwYPm+Z/F84K6+ARYiZ6Yj013sovGKUFfYAqVXVlxtIX 9 | qyUBnu3Xh9ps8ZfjLZO7BAkEAlT4R5Yl6cGhaJQYZHOde3JEMhNRcVFMO8dDaFeo 10 | f9Oeos0UotgiDktdQHxdNEwLjQfl -------------------------------------------------------------------------------- /cmd/evm/testdata/11/readme.md: -------------------------------------------------------------------------------- 1 | ## Test missing basefee 2 | 3 | In this test, the `currentBaseFee` is missing from the env portion. 4 | On a live blockchain, the basefee is present in the header, and verified as part of header validation. 5 | 6 | In `evm t8n`, we don't have blocks, so it needs to be added in the `env`instead. 7 | 8 | When it's missing, an error is expected. 9 | 10 | ``` 11 | dir=./testdata/11 && ./evm t8n --state.fork=London --input.alloc=$dir/alloc.json --input.txs=$dir/txs.json --input.env=$dir/env.json --output.alloc=stdout --output.result=stdout 2>&1>/dev/null 12 | ERROR(3): EIP-1559 config but missing 'currentBaseFee' in env section 13 | ``` -------------------------------------------------------------------------------- /crypto/bn256/cloudflare/gfp_decl.go: -------------------------------------------------------------------------------- 1 | //go:build (amd64 && !generic) || (arm64 && !generic) 2 | // +build amd64,!generic arm64,!generic 3 | 4 | package bn256 5 | 6 | // This file contains forward declarations for the architecture-specific 7 | // assembly implementations of these functions, provided that they exist. 8 | 9 | import ( 10 | "golang.org/x/sys/cpu" 11 | ) 12 | 13 | //nolint:varcheck,unused,deadcode 14 | var hasBMI2 = cpu.X86.HasBMI2 15 | 16 | // go:noescape 17 | func gfpNeg(c, a *gfP) 18 | 19 | //go:noescape 20 | func gfpAdd(c, a, b *gfP) 21 | 22 | //go:noescape 23 | func gfpSub(c, a, b *gfP) 24 | 25 | //go:noescape 26 | func gfpMul(c, a, b *gfP) 27 | -------------------------------------------------------------------------------- /log/handler_go13.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.4 2 | // +build !go1.4 3 | 4 | package log 5 | 6 | import ( 7 | "sync/atomic" 8 | "unsafe" 9 | ) 10 | 11 | // swapHandler wraps another handler that may be swapped out 12 | // dynamically at runtime in a thread-safe fashion. 13 | type swapHandler struct { 14 | handler unsafe.Pointer 15 | } 16 | 17 | func (h *swapHandler) Log(r *Record) error { 18 | return h.Get().Log(r) 19 | } 20 | 21 | func (h *swapHandler) Get() Handler { 22 | return *(*Handler)(atomic.LoadPointer(&h.handler)) 23 | } 24 | 25 | func (h *swapHandler) Swap(newHandler Handler) { 26 | atomic.StorePointer(&h.handler, unsafe.Pointer(&newHandler)) 27 | } 28 | -------------------------------------------------------------------------------- /p2p/discover/v5wire/testdata/v5.1-whoareyou.txt: -------------------------------------------------------------------------------- 1 | # src-node-id = 0xaaaa8419e9f49d0083561b48287df592939a8d19947d8c0ef88f2a4856a69fbb 2 | # dest-node-id = 0xbbbb9d047f0488c0b5a93c1c3f2d8bafc7c8ff337024a55434a0d0555de64db9 3 | # whoareyou.challenge-data = 0x000000000000000000000000000000006469736376350001010102030405060708090a0b0c00180102030405060708090a0b0c0d0e0f100000000000000000 4 | # whoareyou.request-nonce = 0x0102030405060708090a0b0c 5 | # whoareyou.id-nonce = 0x0102030405060708090a0b0c0d0e0f10 6 | # whoareyou.enr-seq = 0 7 | 8 | 00000000000000000000000000000000088b3d434277464933a1ccc59f5967ad 9 | 1d6035f15e528627dde75cd68292f9e6c27d6b66c8100a873fcbaed4e16b8d 10 | -------------------------------------------------------------------------------- /swarm/README.md: -------------------------------------------------------------------------------- 1 | # Swarm 2 | 3 | https://swarm.ethereum.org 4 | 5 | Swarm is a distributed storage platform and content distribution service, a native base layer service of the ethereum web3 stack. The primary objective of Swarm is to provide a decentralized and redundant store for dapp code and data as well as block chain and state data. Swarm is also set out to provide various base layer services for web3, including node-to-node messaging, media streaming, decentralised database services and scalable state-channel infrastructure for decentralised service economies. 6 | 7 | **Note**: The codebase has been moved to [ethersphere/swarm](https://github.com/ethersphere/swarm) 8 | -------------------------------------------------------------------------------- /metrics/json_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | "testing" 7 | ) 8 | 9 | func TestRegistryMarshallJSON(t *testing.T) { 10 | b := &bytes.Buffer{} 11 | enc := json.NewEncoder(b) 12 | r := NewRegistry() 13 | r.Register("counter", NewCounter()) 14 | enc.Encode(r) 15 | if s := b.String(); s != "{\"counter\":{\"count\":0}}\n" { 16 | t.Fatalf(s) 17 | } 18 | } 19 | 20 | func TestRegistryWriteJSONOnce(t *testing.T) { 21 | r := NewRegistry() 22 | r.Register("counter", NewCounter()) 23 | b := &bytes.Buffer{} 24 | WriteJSONOnce(r, b) 25 | if s := b.String(); s != "{\"counter\":{\"count\":0}}\n" { 26 | t.Fail() 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/1adfa6b9ddf5766220c8ff7ede2926ca241bb947-3: -------------------------------------------------------------------------------- 1 | TAKBgDuLnQA3gey3VBznB39JUtxjeE6myuDkM/uGlfjb 2 | S1w4iA5sBzzh8uxEbi4nW91IJm2gsvvZhICHS3l6ab4pZB 3 | l2DulrKBxKKtD1rGxlG4LncabFn9vLZad2bSysqz/qTAUSTvqJQIDAQAB 4 | AoGAGRzwwir7XvBOAy5tM/uV6e+Zf6anZzus1s1Y1ClbjbE6HXbnWWF/wbZGOpet 5 | 3Z4vMXc7jpTLryzTQIvVdfQbRc6+MUVeLKZatTXtdZrhu+Jk7hx0nTPy8Jcb 6 | uJqFk54MogxEcfbWd6IOkp+4xqFLBEDtgbIECnk+hgN4H 7 | qzzxxr397vWrjrIgbJpQvBv8QeeuNi8DoUBEmiSJwa7FXY 8 | FUtxuvL7XvjwjN5B30pEbc6Iuyt7y4MQJBAIt21su4b3sjphy2tuUE9xblTu14qgHZ6+AiZovGKU--FfYAqVXVlxtIX 9 | qyU3X9ps8ZfjLZ45l6cGhaJQYZHOde3JEMhNRcVFMO8dJDaFeo 10 | f9Oeos0UUothgiDktdQHxdNEwLjQf7lJJBzV+5OtwswCWA== 11 | -----END RSA T -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/ecmult_const.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_ECMULT_CONST_ 8 | #define _SECP256K1_ECMULT_CONST_ 9 | 10 | #include "scalar.h" 11 | #include "group.h" 12 | 13 | static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /core/types/gen_account_rlp.go: -------------------------------------------------------------------------------- 1 | // Code generated by rlpgen. DO NOT EDIT. 2 | 3 | //go:build !norlpgen 4 | // +build !norlpgen 5 | 6 | package types 7 | 8 | import "github.com/ethereum/go-ethereum/rlp" 9 | import "io" 10 | 11 | func (obj *StateAccount) EncodeRLP(_w io.Writer) error { 12 | w := rlp.NewEncoderBuffer(_w) 13 | _tmp0 := w.List() 14 | w.WriteUint64(obj.Nonce) 15 | if obj.Balance == nil { 16 | w.Write(rlp.EmptyString) 17 | } else { 18 | if obj.Balance.Sign() == -1 { 19 | return rlp.ErrNegativeBigInt 20 | } 21 | w.WriteBigInt(obj.Balance) 22 | } 23 | w.WriteBytes(obj.Root[:]) 24 | w.WriteBytes(obj.CodeHash) 25 | w.ListEnd(_tmp0) 26 | return w.Flush() 27 | } 28 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/java/org_bitcoin_Secp256k1Context.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | #include "include/secp256k1.h" 4 | /* Header for class org_bitcoin_Secp256k1Context */ 5 | 6 | #ifndef _Included_org_bitcoin_Secp256k1Context 7 | #define _Included_org_bitcoin_Secp256k1Context 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | /* 12 | * Class: org_bitcoin_Secp256k1Context 13 | * Method: secp256k1_init_context 14 | * Signature: ()J 15 | */ 16 | SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context 17 | (JNIEnv *, jclass); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /.github/no-response.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an Issue is closed for lack of response 2 | daysUntilClose: 30 3 | # Label requiring a response 4 | responseRequiredLabel: "need:more-information" 5 | # Comment to post when closing an Issue for lack of response. Set to `false` to disable 6 | closeComment: > 7 | This issue has been automatically closed because there has been no response 8 | to our request for more information from the original author. With only the 9 | information that is currently in the issue, we don't have enough information 10 | to take action. Please reach out if you have more relevant information or 11 | answers to our questions so that we can investigate further. 12 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/num_gmp.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_REPR_ 8 | #define _SECP256K1_NUM_REPR_ 9 | 10 | #include 11 | 12 | #define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS) 13 | 14 | typedef struct { 15 | mp_limb_t data[2*NUM_LIMBS]; 16 | int neg; 17 | int limbs; 18 | } secp256k1_num; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /cmd/evm/testdata/11/alloc.json: -------------------------------------------------------------------------------- 1 | { 2 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : { 3 | "balance" : "0x0de0b6b3a7640000", 4 | "code" : "0x61ffff5060046000f3", 5 | "nonce" : "0x01", 6 | "storage" : { 7 | } 8 | }, 9 | "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 10 | "balance" : "0x0de0b6b3a7640000", 11 | "code" : "0x", 12 | "nonce" : "0x00", 13 | "storage" : { 14 | "0x00" : "0x00" 15 | } 16 | }, 17 | "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { 18 | "balance" : "0x00", 19 | "code" : "0x6001600055", 20 | "nonce" : "0x00", 21 | "storage" : { 22 | } 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /rlp/rlpgen/testdata/nil.in.txt: -------------------------------------------------------------------------------- 1 | // -*- mode: go -*- 2 | 3 | package test 4 | 5 | type Aux struct{ 6 | A uint32 7 | } 8 | 9 | type Test struct{ 10 | Uint8 *byte `rlp:"nil"` 11 | Uint8List *byte `rlp:"nilList"` 12 | 13 | Uint32 *uint32 `rlp:"nil"` 14 | Uint32List *uint32 `rlp:"nilList"` 15 | 16 | Uint64 *uint64 `rlp:"nil"` 17 | Uint64List *uint64 `rlp:"nilList"` 18 | 19 | String *string `rlp:"nil"` 20 | StringList *string `rlp:"nilList"` 21 | 22 | ByteArray *[3]byte `rlp:"nil"` 23 | ByteArrayList *[3]byte `rlp:"nilList"` 24 | 25 | ByteSlice *[]byte `rlp:"nil"` 26 | ByteSliceList *[]byte `rlp:"nilList"` 27 | 28 | Struct *Aux `rlp:"nil"` 29 | StructString *Aux `rlp:"nilString"` 30 | } 31 | -------------------------------------------------------------------------------- /crypto/blake2b/blake2b_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.7 && amd64 && !gccgo && !appengine 6 | // +build !go1.7,amd64,!gccgo,!appengine 7 | 8 | package blake2b 9 | 10 | import "golang.org/x/sys/cpu" 11 | 12 | func init() { 13 | useSSE4 = cpu.X86.HasSSE41 14 | } 15 | 16 | //go:noescape 17 | func fSSE4(h *[8]uint64, m *[16]uint64, c0, c1 uint64, flag uint64, rounds uint64) 18 | 19 | func f(h *[8]uint64, m *[16]uint64, c0, c1 uint64, flag uint64, rounds uint64) { 20 | if useSSE4 { 21 | fSSE4(h, m, c0, c1, flag, rounds) 22 | } else { 23 | fGeneric(h, m, c0, c1, flag, rounds) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 366 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 42 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | # Label to use when marking an issue as stale 10 | staleLabel: "status:inactive" 11 | # Comment to post when marking an issue as stale. Set to `false` to disable 12 | markComment: > 13 | This issue has been automatically marked as stale because it has not had 14 | recent activity. It will be closed if no further activity occurs. Thank you 15 | for your contributions. 16 | # Comment to post when closing a stale issue. Set to `false` to disable 17 | closeComment: false 18 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/23ddcd66aa92fe3d78b7f5b6e7cddb1b55c5f5df-3: -------------------------------------------------------------------------------- 1 | 4txjeVE6myuDqkM/uGlfjb9 2 | SjY1bIw4iA5sBBZzHi3z0h1YV8QPuxEbi4nW91IJm2gsvvZeIrCHS3l6afab4pZB 3 | l2+XsDlrKBxKKtD1rGxlG4jncdabFn9gvLZad2bSysqz/qTAUSTvqJQIDAQAB 4 | AoGAGRzwwXvBOAy5tM/uV6e+Zf6aZzus1s1Y1ClbjbE6HXbnWWF/wbZGOpet 5 | 3Z4vD6Mc7pLryzTQIVdfQbRc6+MUVeLKZaTXtdZru+Jk70PJJqFk541aEw+mMogY/xEcfbWd6IOkp+4xqjlFLBEDytgbIECQQDvH/E6nk+gN4H 6 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLmQ2PprIMPcQroo8vpjSHg1Ev14KxmQeDydfsgeuN8UBESJwm7F 7 | UtuL7Xvjw50pNEbc6Iuyty4QJA21su4sjXNueLQphy2U 8 | fQtuUE9txblTu14qN7gHRZB4ZMhFYyDy8CKrN2cPg/Fvyt0Xlp/DoCzjA0CQQDU 9 | y2ptGsuSmgUtWj3NM9xuwYPm+Z/F84K6ARYiZPYj1oGUFfYAVVxtI 10 | qyBnu3X9pfLZOAkEAlT4R5Yl6cJQYZHOde3JEhNRcVFMO8dJFo 11 | f9Oeos0UUhgiDkQxdEwLjQf7lJJz5OtwC= 12 | -NRSA TESINGKEY-Q_ -------------------------------------------------------------------------------- /crypto/secp256k1/panic_cb.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Jeffrey Wilcke, Felix Lange, Gustav Simonsson. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be found in 3 | // the LICENSE file. 4 | 5 | //go:build !gofuzz && cgo 6 | // +build !gofuzz,cgo 7 | 8 | package secp256k1 9 | 10 | import "C" 11 | import "unsafe" 12 | 13 | // Callbacks for converting libsecp256k1 internal faults into 14 | // recoverable Go panics. 15 | 16 | //export secp256k1GoPanicIllegal 17 | func secp256k1GoPanicIllegal(msg *C.char, data unsafe.Pointer) { 18 | panic("illegal argument: " + C.GoString(msg)) 19 | } 20 | 21 | //export secp256k1GoPanicError 22 | func secp256k1GoPanicError(msg *C.char, data unsafe.Pointer) { 23 | panic("internal error: " + C.GoString(msg)) 24 | } 25 | -------------------------------------------------------------------------------- /cmd/geth/testdata/clique.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "chainId": 15, 4 | "homesteadBlock": 0, 5 | "eip150Block": 0, 6 | "eip155Block": 0, 7 | "eip158Block": 0, 8 | "byzantiumBlock": 0, 9 | "constantinopleBlock": 0, 10 | "petersburgBlock": 0, 11 | "clique": { 12 | "period": 5, 13 | "epoch": 30000 14 | } 15 | }, 16 | "difficulty": "1", 17 | "gasLimit": "8000000", 18 | "extradata": "0x000000000000000000000000000000000000000000000000000000000000000002f0d131f1f97aef08aec6e3291b957d9efe71050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 19 | "alloc": { 20 | "02f0d131f1f97aef08aec6e3291b957d9efe7105": { 21 | "balance": "300000" 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /crypto/blake2b/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.9 6 | // +build go1.9 7 | 8 | package blake2b 9 | 10 | import ( 11 | "crypto" 12 | "hash" 13 | ) 14 | 15 | func init() { 16 | newHash256 := func() hash.Hash { 17 | h, _ := New256(nil) 18 | return h 19 | } 20 | newHash384 := func() hash.Hash { 21 | h, _ := New384(nil) 22 | return h 23 | } 24 | 25 | newHash512 := func() hash.Hash { 26 | h, _ := New512(nil) 27 | return h 28 | } 29 | 30 | crypto.RegisterHash(crypto.BLAKE2b_256, newHash256) 31 | crypto.RegisterHash(crypto.BLAKE2b_384, newHash384) 32 | crypto.RegisterHash(crypto.BLAKE2b_512, newHash512) 33 | } 34 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/num_impl.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_IMPL_H_ 8 | #define _SECP256K1_NUM_IMPL_H_ 9 | 10 | #if defined HAVE_CONFIG_H 11 | #include "libsecp256k1-config.h" 12 | #endif 13 | 14 | #include "num.h" 15 | 16 | #if defined(USE_NUM_GMP) 17 | #include "num_gmp_impl.h" 18 | #elif defined(USE_NUM_NONE) 19 | /* Nothing. */ 20 | #else 21 | #error "Please select num implementation" 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/scalar_8x32.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef struct { 14 | uint32_t d[8]; 15 | } secp256k1_scalar; 16 | 17 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{(d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7)}} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/8a9ebedfbfec584d8b22761e6121dc1ca0248548-4: -------------------------------------------------------------------------------- 1 | KEY----- 2 | MIICXgIBAAKBgQDuLnQAI3mDgey3VBzWnB2L39JUU4txjeVE6myuDqkM/uGlfjb9 3 | SjY1bIw4iAJm2gsvvZhIrCHS3l6afab4pZB 4 | l2+XsDulrKBxKKtD1rGxlG4LjncdabFn9gvLZad2bSysqz/qTAUStTqJIDAQAB 5 | AoGAwr7XOy5tM/V6eZanZzus1sClbjbE6HXnWwbZGOpet 6 | 3Zm4vD6MXcjpTLryzTQIvVdfQbRc6+MUVeLwZaTXtdZrhu+Jk7xnTPy8Jcb 7 | uJqFk41Ew+mMogY/xEcfbWd6I+4xqjlLEDgbIECQDvn+hgN4H 8 | txxr397vjrIgPJpQvBsafG7b0dA4AFjwVbFLcj2pMQoozvpj1AA/v13/57K9vCxmb8QeD/asysgS5TeuNi8DoUBEmiSJwXvjwjNpNEbc6Iuyt7yMQAIt21su4b3sjXNueLKH85Q+phy2U 9 | fQtuUE9txblTu14qN7gHRZB4ZMhFYyDy8CKrN2cPg/Fvyt0Xl/DoCzjA0CQQDU 10 | y2ptGsuSmgUtWj3NM9xuwYPm+Z/F84K6+ARYiZ6PYj013sovGKUFfYAqVXVlxtIX 11 | qyUBnu3Xhs8ZfjLZO7BAkEAlT4R5Yl6cGhYZHOde3JEMhcVFMO8daFeo 12 | f9Oeos0UotgiDktdQHxdNEwLjQflJJBzV+5OtwswCA=----EN RATESTI EY-- -------------------------------------------------------------------------------- /rpc/testdata/subscription.js: -------------------------------------------------------------------------------- 1 | // This test checks basic subscription support. 2 | 3 | --> {"jsonrpc":"2.0","id":1,"method":"nftest_subscribe","params":["someSubscription",5,1]} 4 | <-- {"jsonrpc":"2.0","id":1,"result":"0x1"} 5 | <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":1}} 6 | <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":2}} 7 | <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":3}} 8 | <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":4}} 9 | <-- {"jsonrpc":"2.0","method":"nftest_subscription","params":{"subscription":"0x1","result":5}} 10 | 11 | --> {"jsonrpc":"2.0","id":2,"method":"nftest_echo","params":[11]} 12 | <-- {"jsonrpc":"2.0","id":2,"result":11} 13 | -------------------------------------------------------------------------------- /metrics/resetting_sample.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | // ResettingSample converts an ordinary sample into one that resets whenever its 4 | // snapshot is retrieved. This will break for multi-monitor systems, but when only 5 | // a single metric is being pushed out, this ensure that low-frequency events don't 6 | // skew th charts indefinitely. 7 | func ResettingSample(sample Sample) Sample { 8 | return &resettingSample{ 9 | Sample: sample, 10 | } 11 | } 12 | 13 | // resettingSample is a simple wrapper around a sample that resets it upon the 14 | // snapshot retrieval. 15 | type resettingSample struct { 16 | Sample 17 | } 18 | 19 | // Snapshot returns a read-only copy of the sample with the original reset. 20 | func (rs *resettingSample) Snapshot() Sample { 21 | s := rs.Sample.Snapshot() 22 | rs.Sample.Clear() 23 | return s 24 | } 25 | -------------------------------------------------------------------------------- /signer/core/testdata/expfail_toolargeuint.json: -------------------------------------------------------------------------------- 1 | { 2 | "types": { 3 | "EIP712Domain": [ 4 | { 5 | "name": "name", 6 | "type": "string" 7 | }, 8 | { 9 | "name": "version", 10 | "type": "string" 11 | }, 12 | { 13 | "name": "chainId", 14 | "type": "uint256" 15 | }, 16 | { 17 | "name": "verifyingContract", 18 | "type": "address" 19 | } 20 | ], 21 | "Mail": [ 22 | { 23 | "name": "test", 24 | "type": "uint8" 25 | } 26 | ] 27 | }, 28 | "primaryType": "Mail", 29 | "domain": { 30 | "name": "Ether Mail", 31 | "version": "1", 32 | "chainId": "1", 33 | "verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC" 34 | }, 35 | "message": { 36 | "test":"257" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /signer/core/testdata/expfail_toolargeuint2.json: -------------------------------------------------------------------------------- 1 | { 2 | "types": { 3 | "EIP712Domain": [ 4 | { 5 | "name": "name", 6 | "type": "string" 7 | }, 8 | { 9 | "name": "version", 10 | "type": "string" 11 | }, 12 | { 13 | "name": "chainId", 14 | "type": "uint256" 15 | }, 16 | { 17 | "name": "verifyingContract", 18 | "type": "address" 19 | } 20 | ], 21 | "Mail": [ 22 | { 23 | "name": "test", 24 | "type": "uint8" 25 | } 26 | ] 27 | }, 28 | "primaryType": "Mail", 29 | "domain": { 30 | "name": "Ether Mail", 31 | "version": "1", 32 | "chainId": "1", 33 | "verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC" 34 | }, 35 | "message": { 36 | "test":257 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /cmd/clef/docs/qubes/qubes-client.py: -------------------------------------------------------------------------------- 1 | """ 2 | This implements a dispatcher which listens to localhost:8550, and proxies 3 | requests via qrexec to the service qubes.EthSign on a target domain 4 | """ 5 | 6 | import http.server 7 | import socketserver,subprocess 8 | 9 | PORT=8550 10 | TARGET_DOMAIN= 'debian-work' 11 | 12 | class Dispatcher(http.server.BaseHTTPRequestHandler): 13 | def do_POST(self): 14 | post_data = self.rfile.read(int(self.headers['Content-Length'])) 15 | p = subprocess.Popen(['/usr/bin/qrexec-client-vm',TARGET_DOMAIN,'qubes.Clefsign'],stdin=subprocess.PIPE, stdout=subprocess.PIPE) 16 | output = p.communicate(post_data)[0] 17 | self.wfile.write(output) 18 | 19 | 20 | with socketserver.TCPServer(("",PORT), Dispatcher) as httpd: 21 | print("Serving at port", PORT) 22 | httpd.serve_forever() 23 | 24 | -------------------------------------------------------------------------------- /signer/core/testdata/expfail_unconvertiblefloat.json: -------------------------------------------------------------------------------- 1 | { 2 | "types": { 3 | "EIP712Domain": [ 4 | { 5 | "name": "name", 6 | "type": "string" 7 | }, 8 | { 9 | "name": "version", 10 | "type": "string" 11 | }, 12 | { 13 | "name": "chainId", 14 | "type": "uint256" 15 | }, 16 | { 17 | "name": "verifyingContract", 18 | "type": "address" 19 | } 20 | ], 21 | "Mail": [ 22 | { 23 | "name": "test", 24 | "type": "uint8" 25 | } 26 | ] 27 | }, 28 | "primaryType": "Mail", 29 | "domain": { 30 | "name": "Ether Mail", 31 | "version": "1", 32 | "chainId": "1", 33 | "verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC" 34 | }, 35 | "message": { 36 | "test":"255.3" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /signer/core/testdata/expfail_unconvertiblefloat2.json: -------------------------------------------------------------------------------- 1 | { 2 | "types": { 3 | "EIP712Domain": [ 4 | { 5 | "name": "name", 6 | "type": "string" 7 | }, 8 | { 9 | "name": "version", 10 | "type": "string" 11 | }, 12 | { 13 | "name": "chainId", 14 | "type": "uint256" 15 | }, 16 | { 17 | "name": "verifyingContract", 18 | "type": "address" 19 | } 20 | ], 21 | "Mail": [ 22 | { 23 | "name": "test", 24 | "type": "uint8" 25 | } 26 | ] 27 | }, 28 | "primaryType": "Mail", 29 | "domain": { 30 | "name": "Ether Mail", 31 | "version": "1", 32 | "chainId": "1", 33 | "verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC" 34 | }, 35 | "message": { 36 | "test": 255.3 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /signer/core/testdata/fuzzing/37ec7b55c7ba014cced204c5f9989d2d0eb9ff6d: -------------------------------------------------------------------------------- 1 | { 2 | "types": { 3 | "EIP712Domain": [ 4 | { 5 | "name": "name", 6 | "type": "string" 7 | }, 8 | { 9 | "name": "version", 10 | "type": "string" 11 | }, 12 | { 13 | "name": "chainId", 14 | "type": "uint256" 15 | }, 16 | { 17 | "name": "verifyingContract", 18 | "type": "address" 19 | } 20 | ], 21 | "Mail": [ 22 | { 23 | "name": "test", 24 | "type": "uint8" 25 | } 26 | ] 27 | }, 28 | "primaryType": "Mail", 29 | "domain": { 30 | "name": "Ether Mail", 31 | "version": "1", 32 | "chainId": "1", 33 | "verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC" 34 | }, 35 | "message": { 36 | "test":257 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /signer/core/testdata/fuzzing/2850f6ccf2d7f5f846dfb73119b60e09e712783f: -------------------------------------------------------------------------------- 1 | { 2 | "types": { 3 | "EIP712Domain": [ 4 | { 5 | "name": "name", 6 | "type": "string" 7 | }, 8 | { 9 | "name": "version", 10 | "type": "string" 11 | }, 12 | { 13 | "name": "chainId", 14 | "type": "uint256" 15 | }, 16 | { 17 | "name": "verifyingContract", 18 | "type": "address" 19 | } 20 | ], 21 | "Mail": [ 22 | { 23 | "name": "test", 24 | "type": "uint8" 25 | } 26 | ] 27 | }, 28 | "primaryType": "Mail", 29 | "domain": { 30 | "name": "Ether Mail", 31 | "version": "1", 32 | "chainId": "1", 33 | "verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC" 34 | }, 35 | "message": { 36 | "test":"255.3" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /cmd/evm/testdata/17/exp.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "error": "value exceeds 256 bits", 4 | "address": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", 5 | "hash": "0xfbd91685dcbf8172f0e8c53e2ddbb4d26707840da6b51a74371f62a33868fd82", 6 | "intrinsicGas": "0x5208" 7 | }, 8 | { 9 | "error": "gasPrice exceeds 256 bits", 10 | "address": "0x1b57ccef1fe5fb73f1e64530fb4ebd9cf1655964", 11 | "hash": "0x45dc05035cada83748e4c1fe617220106b331eca054f44c2304d5654a9fb29d5", 12 | "intrinsicGas": "0x5208" 13 | }, 14 | { 15 | "error": "invalid transaction v, r, s values", 16 | "hash": "0xf06691c2a803ab7f3c81d06a0c0a896f80f311105c599fc59a9fdbc669356d35" 17 | }, 18 | { 19 | "error": "invalid transaction v, r, s values", 20 | "hash": "0x84703b697ad5b0db25e4f1f98fb6b1adce85b9edb2232eeba9cedd8c6601694b" 21 | } 22 | ] -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/scalar_4x64.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef struct { 14 | uint64_t d[4]; 15 | } secp256k1_scalar; 16 | 17 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{((uint64_t)(d1)) << 32 | (d0), ((uint64_t)(d3)) << 32 | (d2), ((uint64_t)(d5)) << 32 | (d4), ((uint64_t)(d7)) << 32 | (d6)}} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /crypto/bn256/cloudflare/lattice_test.go: -------------------------------------------------------------------------------- 1 | package bn256 2 | 3 | import ( 4 | "crypto/rand" 5 | 6 | "testing" 7 | ) 8 | 9 | func TestLatticeReduceCurve(t *testing.T) { 10 | k, _ := rand.Int(rand.Reader, Order) 11 | ks := curveLattice.decompose(k) 12 | 13 | if ks[0].BitLen() > 130 || ks[1].BitLen() > 130 { 14 | t.Fatal("reduction too large") 15 | } else if ks[0].Sign() < 0 || ks[1].Sign() < 0 { 16 | t.Fatal("reduction must be positive") 17 | } 18 | } 19 | 20 | func TestLatticeReduceTarget(t *testing.T) { 21 | k, _ := rand.Int(rand.Reader, Order) 22 | ks := targetLattice.decompose(k) 23 | 24 | if ks[0].BitLen() > 66 || ks[1].BitLen() > 66 || ks[2].BitLen() > 66 || ks[3].BitLen() > 66 { 25 | t.Fatal("reduction too large") 26 | } else if ks[0].Sign() < 0 || ks[1].Sign() < 0 || ks[2].Sign() < 0 || ks[3].Sign() < 0 { 27 | t.Fatal("reduction must be positive") 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /core/rawdb/database_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | package rawdb 18 | -------------------------------------------------------------------------------- /infra/Dockerfile.node: -------------------------------------------------------------------------------- 1 | # Build Geth in a stock Go builder container 2 | FROM golang:1.15-alpine as builder 3 | 4 | RUN apk add --no-cache make gcc musl-dev linux-headers git 5 | 6 | ADD . /go-ethereum 7 | RUN cd /go-ethereum && GO111MODULE=on go run build/ci.go install ./cmd/geth 8 | 9 | # Pull Geth into a second stage deploy alpine container 10 | FROM alpine:latest 11 | 12 | ENV PYTHONUNBUFFERED=1 13 | RUN apk add --update --no-cache groff less python3 curl jq ca-certificates && ln -sf python3 /usr/bin/python 14 | RUN python3 -m ensurepip 15 | RUN pip3 install --no-cache --upgrade pip setuptools awscli 16 | 17 | COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ 18 | 19 | COPY ./infra/start-mev-geth-node.sh /root/start-mev-geth-node.sh 20 | RUN chmod 755 /root/start-mev-geth-node.sh 21 | 22 | EXPOSE 8545 8546 30303 30303/udp 23 | ENTRYPOINT ["/root/start-mev-geth-node.sh"] 24 | -------------------------------------------------------------------------------- /metrics/json.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "encoding/json" 5 | "io" 6 | "time" 7 | ) 8 | 9 | // MarshalJSON returns a byte slice containing a JSON representation of all 10 | // the metrics in the Registry. 11 | func (r *StandardRegistry) MarshalJSON() ([]byte, error) { 12 | return json.Marshal(r.GetAll()) 13 | } 14 | 15 | // WriteJSON writes metrics from the given registry periodically to the 16 | // specified io.Writer as JSON. 17 | func WriteJSON(r Registry, d time.Duration, w io.Writer) { 18 | for range time.Tick(d) { 19 | WriteJSONOnce(r, w) 20 | } 21 | } 22 | 23 | // WriteJSONOnce writes metrics from the given registry to the specified 24 | // io.Writer as JSON. 25 | func WriteJSONOnce(r Registry, w io.Writer) { 26 | json.NewEncoder(w).Encode(r) 27 | } 28 | 29 | func (p *PrefixedRegistry) MarshalJSON() ([]byte, error) { 30 | return json.Marshal(p.GetAll()) 31 | } 32 | -------------------------------------------------------------------------------- /infra/Dockerfile.updater: -------------------------------------------------------------------------------- 1 | # Build Geth in a stock Go builder container 2 | FROM golang:1.15-alpine as builder 3 | 4 | RUN apk add --no-cache make gcc musl-dev linux-headers git 5 | 6 | ADD . /go-ethereum 7 | RUN cd /go-ethereum && GO111MODULE=on go run build/ci.go install ./cmd/geth 8 | 9 | # Pull Geth into a second stage deploy alpine container 10 | FROM alpine:latest 11 | 12 | ENV PYTHONUNBUFFERED=1 13 | RUN apk add --update --no-cache groff less python3 curl jq ca-certificates && ln -sf python3 /usr/bin/python 14 | RUN python3 -m ensurepip 15 | RUN pip3 install --no-cache --upgrade pip setuptools awscli 16 | 17 | COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ 18 | 19 | COPY ./infra/start-mev-geth-updater.sh /root/start-mev-geth-updater.sh 20 | RUN chmod 755 /root/start-mev-geth-updater.sh 21 | 22 | EXPOSE 8545 8546 30303 30303/udp 23 | ENTRYPOINT ["/root/start-mev-geth-updater.sh"] 24 | -------------------------------------------------------------------------------- /metrics/influxdb/README.md: -------------------------------------------------------------------------------- 1 | go-metrics-influxdb 2 | =================== 3 | 4 | This is a reporter for the [go-metrics](https://github.com/rcrowley/go-metrics) library which will post the metrics to [InfluxDB](https://influxdb.com/). 5 | 6 | Note 7 | ---- 8 | 9 | This is only compatible with InfluxDB 0.9+. 10 | 11 | Usage 12 | ----- 13 | 14 | ```go 15 | import "github.com/vrischmann/go-metrics-influxdb" 16 | 17 | go influxdb.InfluxDB( 18 | metrics.DefaultRegistry, // metrics registry 19 | time.Second * 10, // interval 20 | "http://localhost:8086", // the InfluxDB url 21 | "mydb", // your InfluxDB database 22 | "myuser", // your InfluxDB user 23 | "mypassword", // your InfluxDB password 24 | ) 25 | ``` 26 | 27 | License 28 | ------- 29 | 30 | go-metrics-influxdb is licensed under the MIT license. See the LICENSE file for details. 31 | -------------------------------------------------------------------------------- /crypto/secp256k1/dummy.go: -------------------------------------------------------------------------------- 1 | //go:build dummy 2 | // +build dummy 3 | 4 | // This file is part of a workaround for `go mod vendor` which won't vendor 5 | // C files if there's no Go file in the same directory. 6 | // This would prevent the crypto/secp256k1/libsecp256k1/include/secp256k1.h file to be vendored. 7 | // 8 | // This Go file imports the c directory where there is another dummy.go file which 9 | // is the second part of this workaround. 10 | // 11 | // These two files combined make it so `go mod vendor` behaves correctly. 12 | // 13 | // See this issue for reference: https://github.com/golang/go/issues/26366 14 | 15 | package secp256k1 16 | 17 | import ( 18 | _ "github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/include" 19 | _ "github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src" 20 | _ "github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/recovery" 21 | ) 22 | -------------------------------------------------------------------------------- /cmd/evm/testdata/17/signed_txs.rlp: -------------------------------------------------------------------------------- 1 | "0xf901c8f880806482520894d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0a1010000000000000000000000000000000000000000000000000000000000000001801ba0c16787a8e25e941d67691954642876c08f00996163ae7dfadbbfd6cd436f549da06180e5626cae31590f40641fe8f63734316c4bfeb4cdfab6714198c1044d2e28f88080a101000000000000000000000000000000000000000000000000000000000000000182520894d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d011801ba0c16787a8e25e941d67691954642876c08f00996163ae7dfadbbfd6cd436f549da06180e5626cae31590f40641fe8f63734316c4bfeb4cdfab6714198c1044d2e28f860801182520894d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d011801ba1c16787a8e25e941d67691954642876c08f00996163ae7dfadbbfd6cd436f549daaa06180e5626cae31590f40641fe8f63734316c4bfeb4cdfab6714198c1044d2e28f860801182520894d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d0d011801ba0c16787a8e25e941d67691954642876c08f00996163ae7dfadbbfd6cd436f549da16180e5626cae31590f40641fe8f63734316c4bfeb4cdfab6714198c1044d2e28bb" -------------------------------------------------------------------------------- /cmd/evm/testdata/24/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "gas": "0x186a0", 4 | "gasPrice": "0x600", 5 | "hash": "0x0557bacce3375c98d806609b8d5043072f0b6a8bae45ae5a67a00d3a1a18d673", 6 | "input": "0x", 7 | "nonce": "0xac", 8 | "to": "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192", 9 | "value": "0x1", 10 | "v" : "0x0", 11 | "r" : "0x0", 12 | "s" : "0x0", 13 | "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" 14 | }, 15 | { 16 | "gas": "0x186a0", 17 | "gasPrice": "0x600", 18 | "hash": "0x0557bacce3375c98d806609b8d5043072f0b6a8bae45ae5a67a00d3a1a18d673", 19 | "input": "0x", 20 | "nonce": "0xad", 21 | "to": "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192", 22 | "value": "0x1", 23 | "v" : "0x0", 24 | "r" : "0x0", 25 | "s" : "0x0", 26 | "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" 27 | } 28 | ] 29 | -------------------------------------------------------------------------------- /accounts/keystore/testdata/keystore/README: -------------------------------------------------------------------------------- 1 | This directory contains accounts for testing. 2 | The password that unlocks them is "foobar". 3 | 4 | The "good" key files which are supposed to be loadable are: 5 | 6 | - File: UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8 7 | Address: 0x7ef5a6135f1fd6a02593eedc869c6d41d934aef8 8 | - File: aaa 9 | Address: 0xf466859ead1932d743d622cb74fc058882e8648a 10 | - File: zzz 11 | Address: 0x289d485d9771714cce91d3393d764e1311907acc 12 | 13 | The other files (including this README) are broken in various ways 14 | and should not be picked up by package accounts: 15 | 16 | - File: no-address (missing address field, otherwise same as "aaa") 17 | - File: garbage (file with random data) 18 | - File: empty (file with no content) 19 | - File: swapfile~ (should be skipped) 20 | - File: .hiddenfile (should be skipped) 21 | - File: foo/... (should be skipped because it is a directory) 22 | -------------------------------------------------------------------------------- /cmd/evm/testdata/16/unsigned_txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x", 4 | "gas" : "0x5208", 5 | "nonce" : "0x0", 6 | "to" : "0x1111111111111111111111111111111111111111", 7 | "value" : "0x20", 8 | "v" : "0x0", 9 | "r" : "0x0", 10 | "s" : "0x0", 11 | "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", 12 | "chainId" : "0x1", 13 | "type" : "0x1", 14 | "gasPrice": "0x1", 15 | "accessList" : [ 16 | ] 17 | }, 18 | { 19 | "input" : "0x", 20 | "gas" : "0x52", 21 | "nonce" : "0x0", 22 | "to" : "0x1111111111111111111111111111111111111111", 23 | "value" : "0x20", 24 | "v" : "0x0", 25 | "r" : "0x0", 26 | "s" : "0x0", 27 | "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", 28 | "chainId" : "0x1", 29 | "type" : "0x1", 30 | "gasPrice": "0x1", 31 | "accessList" : [ 32 | ] 33 | } 34 | ] 35 | -------------------------------------------------------------------------------- /tests/fuzzers/txfetcher/corpus/78480977d5c07386b06e9b37f5c82f5ed86c2f09-3: -------------------------------------------------------------------------------- 1 | TESTING KEY----- 2 | MIICXgIBAAKBgQDuLnQAI3mDgey3VBzWnB2L39JUU4txjeVE6myuDqkM/uGlfjb9 3 | SjY1bIw4iAJm2gsvvZhIrCHS3l6afab4pZB 4 | l2+XsDulrKBxKKtD1rGxlG4LjncdabFn9gvLZad2bSysqz/qTAUStTvqJQIDAQAB 5 | AoGAGRzwwir7XvBOAy5tM/uV6e+Zf6anZzus1s1Y1ClbjbE6HXbnWWF/wbZGOpet 6 | 3Zm4vD6MXc7jpTLryzTQIvVdfQbRc6+MUVeLKwZatTXtdZrhu+Jk7hx0nTPy8Jcb 7 | uJqFk541aEw+mMogY/xEcfbWd6IOkp+4xqjlFLBEDytgbIECQQDvH/E6nk+hgN4H 8 | qzzVtxxr397vWrjrIgPbJpQvBsafG7b0dA4AFjwVbFLmQcj2PprIMmPcQrooz8vp 9 | jy4SHEg1AkEA/v13/5M47K9vCxmb8QeD/asydfsgS5TeuNi8DoUBEmiSJwma7FXY 10 | fFUtxuvL7XvjwjN5B30pNEbc6Iuyt7y4MQJBAIt21su4b3sjXNueLKH85Q+phy2U 11 | fQtuUE9txblTu14q3N7gHRZB4ZMhFYyDy8CKrN2cPg/Fvyt0Xl/DoCzjA0CQQDU 12 | y2ptGsuSmgUtWj3NM9xuwYPm+Z/F84K6+ARYiZ6PYj013sovGKUFfYAqVXVlxtIX 13 | qyUBnu3Xh9ps8ZfjLZO7BAkEAlT4R5Yl6cGhaJQYZHOde3JEMhNRcVFMO8dDaFeo 14 | f9Oeos0UotgiDktdQHxdNEwLjQflJJBzV+5OtwswCA=----EN RATESTI EY-----Q -------------------------------------------------------------------------------- /p2p/dnsdisc/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | // Package dnsdisc implements node discovery via DNS (EIP-1459). 18 | package dnsdisc 19 | -------------------------------------------------------------------------------- /core/vm/testdata/precompiles/fail-blsMapG1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Input": "", 4 | "ExpectedError": "invalid input length", 5 | "Name": "bls_mapg1_empty_input" 6 | }, 7 | { 8 | "Input": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 9 | "ExpectedError": "invalid input length", 10 | "Name": "bls_mapg1_short_input" 11 | }, 12 | { 13 | "Input": "00000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 14 | "ExpectedError": "invalid field element top bytes", 15 | "Name": "bls_mapg1_top_bytes" 16 | }, 17 | { 18 | "Input": "000000000000000000000000000000001a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaac", 19 | "ExpectedError": "must be less than modulus", 20 | "Name": "bls_mapg1_invalid_fq_element" 21 | } 22 | ] -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/.gitignore: -------------------------------------------------------------------------------- 1 | bench_inv 2 | bench_ecdh 3 | bench_sign 4 | bench_verify 5 | bench_schnorr_verify 6 | bench_recover 7 | bench_internal 8 | tests 9 | exhaustive_tests 10 | gen_context 11 | *.exe 12 | *.so 13 | *.a 14 | !.gitignore 15 | 16 | Makefile 17 | configure 18 | .libs/ 19 | Makefile.in 20 | aclocal.m4 21 | autom4te.cache/ 22 | config.log 23 | config.status 24 | *.tar.gz 25 | *.la 26 | libtool 27 | .deps/ 28 | .dirstamp 29 | *.lo 30 | *.o 31 | *~ 32 | src/libsecp256k1-config.h 33 | src/libsecp256k1-config.h.in 34 | src/ecmult_static_context.h 35 | build-aux/config.guess 36 | build-aux/config.sub 37 | build-aux/depcomp 38 | build-aux/install-sh 39 | build-aux/ltmain.sh 40 | build-aux/m4/libtool.m4 41 | build-aux/m4/lt~obsolete.m4 42 | build-aux/m4/ltoptions.m4 43 | build-aux/m4/ltsugar.m4 44 | build-aux/m4/ltversion.m4 45 | build-aux/missing 46 | build-aux/compile 47 | build-aux/test-driver 48 | src/stamp-h1 49 | libsecp256k1.pc 50 | -------------------------------------------------------------------------------- /core/bloombits/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | // Package bloombits implements bloom filtering on batches of data. 18 | package bloombits 19 | -------------------------------------------------------------------------------- /p2p/simulations/examples/ping-pong.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Boot a ping-pong network simulation using the HTTP API started by ping-pong.go 4 | 5 | set -e 6 | 7 | main() { 8 | if ! which p2psim &>/dev/null; then 9 | fail "missing p2psim binary (you need to build cmd/p2psim and put it in \$PATH)" 10 | fi 11 | 12 | info "creating 10 nodes" 13 | for i in $(seq 1 10); do 14 | p2psim node create --name "$(node_name $i)" 15 | p2psim node start "$(node_name $i)" 16 | done 17 | 18 | info "connecting node01 to all other nodes" 19 | for i in $(seq 2 10); do 20 | p2psim node connect "node01" "$(node_name $i)" 21 | done 22 | 23 | info "done" 24 | } 25 | 26 | node_name() { 27 | local num=$1 28 | echo "node$(printf '%02d' $num)" 29 | } 30 | 31 | info() { 32 | echo -e "\033[1;32m---> $(date +%H:%M:%S) ${@}\033[0m" 33 | } 34 | 35 | fail() { 36 | echo -e "\033[1;31mERROR: ${@}\033[0m" >&2 37 | exit 1 38 | } 39 | 40 | main "$@" 41 | -------------------------------------------------------------------------------- /core/vm/runtime/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | // Package runtime provides a basic execution model for executing EVM code. 18 | package runtime 19 | -------------------------------------------------------------------------------- /crypto/bn256/bn256_slow.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Péter Szilágyi. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be found 3 | // in the LICENSE file. 4 | 5 | //go:build !amd64 && !arm64 6 | // +build !amd64,!arm64 7 | 8 | // Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve. 9 | package bn256 10 | 11 | import bn256 "github.com/ethereum/go-ethereum/crypto/bn256/google" 12 | 13 | // G1 is an abstract cyclic group. The zero value is suitable for use as the 14 | // output of an operation, but cannot be used as an input. 15 | type G1 = bn256.G1 16 | 17 | // G2 is an abstract cyclic group. The zero value is suitable for use as the 18 | // output of an operation, but cannot be used as an input. 19 | type G2 = bn256.G2 20 | 21 | // PairingCheck calculates the Optimal Ate pairing for a set of points. 22 | func PairingCheck(a []*G1, b []*G2) bool { 23 | return bn256.PairingCheck(a, b) 24 | } 25 | -------------------------------------------------------------------------------- /rpc/testdata/reqresp-echo.js: -------------------------------------------------------------------------------- 1 | // This test calls the test_echo method. 2 | 3 | --> {"jsonrpc": "2.0", "id": 2, "method": "test_echo", "params": []} 4 | <-- {"jsonrpc":"2.0","id":2,"error":{"code":-32602,"message":"missing value for required argument 0"}} 5 | 6 | --> {"jsonrpc": "2.0", "id": 2, "method": "test_echo", "params": ["x"]} 7 | <-- {"jsonrpc":"2.0","id":2,"error":{"code":-32602,"message":"missing value for required argument 1"}} 8 | 9 | --> {"jsonrpc": "2.0", "id": 2, "method": "test_echo", "params": ["x", 3]} 10 | <-- {"jsonrpc":"2.0","id":2,"result":{"String":"x","Int":3,"Args":null}} 11 | 12 | --> {"jsonrpc": "2.0", "id": 2, "method": "test_echo", "params": ["x", 3, {"S": "foo"}]} 13 | <-- {"jsonrpc":"2.0","id":2,"result":{"String":"x","Int":3,"Args":{"S":"foo"}}} 14 | 15 | --> {"jsonrpc": "2.0", "id": 2, "method": "test_echoWithCtx", "params": ["x", 3, {"S": "foo"}]} 16 | <-- {"jsonrpc":"2.0","id":2,"result":{"String":"x","Int":3,"Args":{"S":"foo"}}} 17 | -------------------------------------------------------------------------------- /internal/guide/guide.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | // Package guide is a small test suite to ensure snippets in the dev guide work. 18 | package guide 19 | -------------------------------------------------------------------------------- /cmd/devp2p/internal/ethtest/testdata/genesis.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "chainId": 19763, 4 | "homesteadBlock": 0, 5 | "eip150Block": 0, 6 | "eip155Block": 0, 7 | "eip158Block": 0, 8 | "byzantiumBlock": 0, 9 | "ethash": {} 10 | }, 11 | "nonce": "0xdeadbeefdeadbeef", 12 | "timestamp": "0x0", 13 | "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000", 14 | "gasLimit": "0x80000000", 15 | "difficulty": "0x20000", 16 | "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", 17 | "coinbase": "0x0000000000000000000000000000000000000000", 18 | "alloc": { 19 | "71562b71999873db5b286df957af199ec94617f7": { 20 | "balance": "0xffffffffffffffffffffffffff" 21 | } 22 | }, 23 | "number": "0x0", 24 | "gasUsed": "0x0", 25 | "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000" 26 | } 27 | -------------------------------------------------------------------------------- /cmd/evm/testdata/1/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "gas": "0x5208", 4 | "gasPrice": "0x2", 5 | "hash": "0x0557bacce3375c98d806609b8d5043072f0b6a8bae45ae5a67a00d3a1a18d673", 6 | "input": "0x", 7 | "nonce": "0x0", 8 | "r": "0x9500e8ba27d3c33ca7764e107410f44cbd8c19794bde214d694683a7aa998cdb", 9 | "s": "0x7235ae07e4bd6e0206d102b1f8979d6adab280466b6a82d2208ee08951f1f600", 10 | "to": "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192", 11 | "v": "0x1b", 12 | "value": "0x1" 13 | }, 14 | { 15 | "gas": "0x5208", 16 | "gasPrice": "0x2", 17 | "hash": "0x0557bacce3375c98d806609b8d5043072f0b6a8bae45ae5a67a00d3a1a18d673", 18 | "input": "0x", 19 | "nonce": "0x0", 20 | "r": "0x9500e8ba27d3c33ca7764e107410f44cbd8c19794bde214d694683a7aa998cdb", 21 | "s": "0x7235ae07e4bd6e0206d102b1f8979d6adab280466b6a82d2208ee08951f1f600", 22 | "to": "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192", 23 | "v": "0x1b", 24 | "value": "0x1" 25 | } 26 | ] 27 | -------------------------------------------------------------------------------- /cmd/evm/testdata/21/header.json: -------------------------------------------------------------------------------- 1 | { 2 | "parentHash": "0xd6d785d33cbecf30f30d07e00e226af58f72efdf385d46bc3e6326c23b11e34e", 3 | "stateRoot": "0x325aea6db48e9d737cddf59034843e99f05bec269453be83c9b9a981a232cc2e", 4 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 5 | "difficulty": "0x1000", 6 | "number": "0xc3be", 7 | "gasLimit": "0x50785", 8 | "gasUsed": "0x0", 9 | "timestamp": "0x55c5277e", 10 | "mixHash": "0x5865e417635a26db6d1d39ac70d1abf373e5398b3c6fd506acd038fa1334eedf" 11 | } 12 | -------------------------------------------------------------------------------- /cmd/evm/testdata/22/header.json: -------------------------------------------------------------------------------- 1 | { 2 | "parentHash": "0xd6d785d33cbecf30f30d07e00e226af58f72efdf385d46bc3e6326c23b11e34e", 3 | "stateRoot": "0x325aea6db48e9d737cddf59034843e99f05bec269453be83c9b9a981a232cc2e", 4 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 5 | "difficulty": "0x1000", 6 | "number": "0xc3be", 7 | "gasLimit": "0x50785", 8 | "gasUsed": "0x0", 9 | "timestamp": "0x55c5277e", 10 | "mixHash": "0x5865e417635a26db6d1d39ac70d1abf373e5398b3c6fd506acd038fa1334eedf" 11 | } 12 | -------------------------------------------------------------------------------- /crypto/bn256/bn256_fast.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Péter Szilágyi. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be found 3 | // in the LICENSE file. 4 | 5 | //go:build amd64 || arm64 6 | // +build amd64 arm64 7 | 8 | // Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve. 9 | package bn256 10 | 11 | import ( 12 | bn256cf "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare" 13 | ) 14 | 15 | // G1 is an abstract cyclic group. The zero value is suitable for use as the 16 | // output of an operation, but cannot be used as an input. 17 | type G1 = bn256cf.G1 18 | 19 | // G2 is an abstract cyclic group. The zero value is suitable for use as the 20 | // output of an operation, but cannot be used as an input. 21 | type G2 = bn256cf.G2 22 | 23 | // PairingCheck calculates the Optimal Ate pairing for a set of points. 24 | func PairingCheck(a []*G1, b []*G2) bool { 25 | return bn256cf.PairingCheck(a, b) 26 | } 27 | -------------------------------------------------------------------------------- /cmd/evm/testdata/13/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "input" : "0x", 4 | "gas" : "0x84d0", 5 | "nonce" : "0x1", 6 | "to" : "0x1111111111111111111111111111111111111111", 7 | "value" : "0x0", 8 | "v" : "0x0", 9 | "r" : "0x0", 10 | "s" : "0x0", 11 | "secretKey" : "0x41f6e321b31e72173f8ff2e292359e1862f24fba42fe6f97efaf641980eff298", 12 | "chainId" : "0x1", 13 | "type" : "0x2", 14 | "maxFeePerGas" : "0xfa0", 15 | "maxPriorityFeePerGas" : "0x0", 16 | "accessList" : [] 17 | }, 18 | { 19 | "input" : "0x", 20 | "gas" : "0x84d0", 21 | "nonce" : "0x2", 22 | "to" : "0x1111111111111111111111111111111111111111", 23 | "value" : "0x0", 24 | "v" : "0x0", 25 | "r" : "0x0", 26 | "s" : "0x0", 27 | "secretKey" : "0x41f6e321b31e72173f8ff2e292359e1862f24fba42fe6f97efaf641980eff298", 28 | "chainId" : "0x1", 29 | "type" : "0x2", 30 | "maxFeePerGas" : "0xfa0", 31 | "maxPriorityFeePerGas" : "0x0", 32 | "accessList" : [] 33 | } 34 | ] -------------------------------------------------------------------------------- /cmd/evm/testdata/15/blockheader.rlp: -------------------------------------------------------------------------------- 1 | "0xf901f0a00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0101020383010203a00000000000000000000000000000000000000000000000000000000000000000880000000000000000" -------------------------------------------------------------------------------- /Dockerfile.alltools: -------------------------------------------------------------------------------- 1 | # Support setting various labels on the final image 2 | ARG COMMIT="" 3 | ARG VERSION="" 4 | ARG BUILDNUM="" 5 | 6 | # Build Geth in a stock Go builder container 7 | FROM golang:1.18-alpine as builder 8 | 9 | RUN apk add --no-cache gcc musl-dev linux-headers git 10 | 11 | # Get dependencies - will also be cached if we won't change go.mod/go.sum 12 | COPY go.mod /go-ethereum/ 13 | COPY go.sum /go-ethereum/ 14 | RUN cd /go-ethereum && go mod download 15 | 16 | ADD . /go-ethereum 17 | RUN cd /go-ethereum && go run build/ci.go install 18 | 19 | # Pull all binaries into a second stage deploy alpine container 20 | FROM alpine:latest 21 | 22 | RUN apk add --no-cache ca-certificates 23 | COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/ 24 | 25 | EXPOSE 8545 8546 30303 30303/udp 26 | 27 | # Add some metadata labels to help programatic image consumption 28 | ARG COMMIT="" 29 | ARG VERSION="" 30 | ARG BUILDNUM="" 31 | 32 | LABEL commit="$COMMIT" version="$VERSION" buildnum="$BUILDNUM" 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile ~/.gitignore_global 6 | 7 | /tmp 8 | */**/*un~ 9 | */**/*.test 10 | *un~ 11 | .DS_Store 12 | */**/.DS_Store 13 | .ethtest 14 | */**/*tx_database* 15 | */**/*dapps* 16 | build/_vendor/pkg 17 | 18 | #* 19 | .#* 20 | *# 21 | *~ 22 | .project 23 | .settings 24 | 25 | # used by the Makefile 26 | /build/_workspace/ 27 | /build/cache/ 28 | /build/bin/ 29 | /geth*.zip 30 | 31 | # travis 32 | profile.tmp 33 | profile.cov 34 | 35 | # IdeaIDE 36 | .idea 37 | 38 | # VS Code 39 | .vscode 40 | 41 | # dashboard 42 | /dashboard/assets/flow-typed 43 | /dashboard/assets/node_modules 44 | /dashboard/assets/stats.json 45 | /dashboard/assets/bundle.js 46 | /dashboard/assets/bundle.js.map 47 | /dashboard/assets/package-lock.json 48 | 49 | **/yarn-error.log 50 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Support setting various labels on the final image 2 | ARG COMMIT="" 3 | ARG VERSION="" 4 | ARG BUILDNUM="" 5 | 6 | # Build Geth in a stock Go builder container 7 | FROM golang:1.18-alpine as builder 8 | 9 | RUN apk add --no-cache gcc musl-dev linux-headers git 10 | 11 | # Get dependencies - will also be cached if we won't change go.mod/go.sum 12 | COPY go.mod /go-ethereum/ 13 | COPY go.sum /go-ethereum/ 14 | RUN cd /go-ethereum && go mod download 15 | 16 | ADD . /go-ethereum 17 | RUN cd /go-ethereum && go run build/ci.go install ./cmd/geth 18 | 19 | # Pull Geth into a second stage deploy alpine container 20 | FROM alpine:latest 21 | 22 | RUN apk add --no-cache ca-certificates 23 | COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ 24 | 25 | EXPOSE 8545 8546 30303 30303/udp 26 | ENTRYPOINT ["geth"] 27 | 28 | # Add some metadata labels to help programatic image consumption 29 | ARG COMMIT="" 30 | ARG VERSION="" 31 | ARG BUILDNUM="" 32 | 33 | LABEL commit="$COMMIT" version="$VERSION" buildnum="$BUILDNUM" 34 | -------------------------------------------------------------------------------- /tests/solidity/migrations/2_opCodes_migration.js: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | var OpCodes = artifacts.require("./OpCodes.sol"); 18 | 19 | module.exports = function(deployer) { 20 | deployer.deploy(OpCodes); 21 | }; 22 | -------------------------------------------------------------------------------- /tests/solidity/migrations/1_initial_migration.js: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | const Migrations = artifacts.require("Migrations"); 18 | 19 | module.exports = function(deployer) { 20 | deployer.deploy(Migrations); 21 | }; 22 | -------------------------------------------------------------------------------- /cmd/evm/testdata/14/exp.json: -------------------------------------------------------------------------------- 1 | { 2 | "result": { 3 | "stateRoot": "0x6f058887ca01549716789c380ede95aecc510e6d1fdc4dbf67d053c7c07f4bdc", 4 | "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 5 | "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 6 | "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 7 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 8 | "currentDifficulty": "0x2000020000000", 9 | "receipts": [], 10 | "gasUsed": "0x0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mobile/geth_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build ios 18 | // +build ios 19 | 20 | package geth 21 | 22 | // clientIdentifier is a hard coded identifier to report into the network. 23 | var clientIdentifier = "iGeth" 24 | -------------------------------------------------------------------------------- /cmd/evm/testdata/14/exp2.json: -------------------------------------------------------------------------------- 1 | { 2 | "result": { 3 | "stateRoot": "0x6f058887ca01549716789c380ede95aecc510e6d1fdc4dbf67d053c7c07f4bdc", 4 | "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 5 | "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 6 | "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 7 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 8 | "receipts": [], 9 | "currentDifficulty": "0x1ff8020000000", 10 | "gasUsed": "0x0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cmd/evm/testdata/14/exp_berlin.json: -------------------------------------------------------------------------------- 1 | { 2 | "result": { 3 | "stateRoot": "0x6f058887ca01549716789c380ede95aecc510e6d1fdc4dbf67d053c7c07f4bdc", 4 | "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 5 | "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 6 | "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 7 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 8 | "receipts": [], 9 | "currentDifficulty": "0x1ff9000000000", 10 | "gasUsed": "0x0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cmd/evm/testdata/19/exp_london.json: -------------------------------------------------------------------------------- 1 | { 2 | "result": { 3 | "stateRoot": "0x6f058887ca01549716789c380ede95aecc510e6d1fdc4dbf67d053c7c07f4bdc", 4 | "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 5 | "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 6 | "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 7 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 8 | "currentDifficulty": "0x2000080000000", 9 | "receipts": [], 10 | "gasUsed": "0x0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cmd/evm/testdata/19/exp_arrowglacier.json: -------------------------------------------------------------------------------- 1 | { 2 | "result": { 3 | "stateRoot": "0x6f058887ca01549716789c380ede95aecc510e6d1fdc4dbf67d053c7c07f4bdc", 4 | "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 5 | "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 6 | "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 7 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 8 | "currentDifficulty": "0x2000000200000", 9 | "receipts": [], 10 | "gasUsed": "0x0" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /mobile/geth_android.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build android 18 | // +build android 19 | 20 | package geth 21 | 22 | // clientIdentifier is a hard coded identifier to report into the network. 23 | var clientIdentifier = "GethDroid" 24 | -------------------------------------------------------------------------------- /cmd/evm/testdata/15/exp3.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "error": "transaction type not supported" 4 | }, 5 | { 6 | "error": "transaction type not supported" 7 | }, 8 | { 9 | "error": "transaction type not supported" 10 | }, 11 | { 12 | "error": "transaction type not supported" 13 | }, 14 | { 15 | "error": "transaction type not supported" 16 | }, 17 | { 18 | "error": "transaction type not supported" 19 | }, 20 | { 21 | "error": "transaction type not supported" 22 | }, 23 | { 24 | "error": "typed transaction too short" 25 | }, 26 | { 27 | "error": "typed transaction too short" 28 | }, 29 | { 30 | "error": "typed transaction too short" 31 | }, 32 | { 33 | "error": "typed transaction too short" 34 | }, 35 | { 36 | "error": "typed transaction too short" 37 | }, 38 | { 39 | "error": "rlp: expected input list for types.AccessListTx" 40 | }, 41 | { 42 | "error": "transaction type not supported" 43 | }, 44 | { 45 | "error": "transaction type not supported" 46 | } 47 | ] 48 | -------------------------------------------------------------------------------- /cmd/evm/testdata/19/exp_grayglacier.json: -------------------------------------------------------------------------------- 1 | { 2 | "result": { 3 | "stateRoot": "0x6f058887ca01549716789c380ede95aecc510e6d1fdc4dbf67d053c7c07f4bdc", 4 | "txRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 5 | "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", 6 | "logsHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", 7 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", 8 | "receipts": [], 9 | "currentDifficulty": "0x2000000004000", 10 | "gasUsed": "0x0" 11 | } 12 | } -------------------------------------------------------------------------------- /mobile/geth_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build !android && !ios 18 | // +build !android,!ios 19 | 20 | package geth 21 | 22 | // clientIdentifier is a hard coded identifier to report into the network. 23 | var clientIdentifier = "GethMobile" 24 | -------------------------------------------------------------------------------- /metrics/debug_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "runtime" 5 | "runtime/debug" 6 | "testing" 7 | "time" 8 | ) 9 | 10 | func BenchmarkDebugGCStats(b *testing.B) { 11 | r := NewRegistry() 12 | RegisterDebugGCStats(r) 13 | b.ResetTimer() 14 | for i := 0; i < b.N; i++ { 15 | CaptureDebugGCStatsOnce(r) 16 | } 17 | } 18 | 19 | func TestDebugGCStatsBlocking(t *testing.T) { 20 | if g := runtime.GOMAXPROCS(0); g < 2 { 21 | t.Skipf("skipping TestDebugGCMemStatsBlocking with GOMAXPROCS=%d\n", g) 22 | return 23 | } 24 | ch := make(chan int) 25 | go testDebugGCStatsBlocking(ch) 26 | var gcStats debug.GCStats 27 | t0 := time.Now() 28 | debug.ReadGCStats(&gcStats) 29 | t1 := time.Now() 30 | t.Log("i++ during debug.ReadGCStats:", <-ch) 31 | go testDebugGCStatsBlocking(ch) 32 | d := t1.Sub(t0) 33 | t.Log(d) 34 | time.Sleep(d) 35 | t.Log("i++ during time.Sleep:", <-ch) 36 | } 37 | 38 | func testDebugGCStatsBlocking(ch chan int) { 39 | i := 0 40 | for { 41 | select { 42 | case ch <- i: 43 | return 44 | default: 45 | i++ 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /tests/fuzzers/secp256k1/secp_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | package secp256k1 18 | 19 | import "testing" 20 | 21 | func TestFuzzer(t *testing.T) { 22 | test := "00000000N0000000/R00000000000000000U0000S0000000mkhP000000000000000U" 23 | Fuzz([]byte(test)) 24 | } 25 | -------------------------------------------------------------------------------- /eth/downloader/events.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | package downloader 18 | 19 | import "github.com/ethereum/go-ethereum/core/types" 20 | 21 | type DoneEvent struct { 22 | Latest *types.Header 23 | } 24 | type StartEvent struct{} 25 | type FailedEvent struct{ Err error } 26 | -------------------------------------------------------------------------------- /les/downloader/events.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | package downloader 18 | 19 | import "github.com/ethereum/go-ethereum/core/types" 20 | 21 | type DoneEvent struct { 22 | Latest *types.Header 23 | } 24 | type StartEvent struct{} 25 | type FailedEvent struct{ Err error } 26 | -------------------------------------------------------------------------------- /internal/debug/loudpanic_fallback.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build !go1.6 18 | // +build !go1.6 19 | 20 | package debug 21 | 22 | // LoudPanic panics in a way that gets all goroutine stacks printed on stderr. 23 | func LoudPanic(x interface{}) { 24 | panic(x) 25 | } 26 | -------------------------------------------------------------------------------- /rpc/constants_unix_nocgo.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build !cgo && !windows 18 | // +build !cgo,!windows 19 | 20 | package rpc 21 | 22 | var ( 23 | // On Linux, sun_path is 108 bytes in size 24 | // see http://man7.org/linux/man-pages/man7/unix.7.html 25 | max_path_size = 108 26 | ) 27 | -------------------------------------------------------------------------------- /crypto/secp256k1/libsecp256k1/src/basic-config.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_BASIC_CONFIG_ 8 | #define _SECP256K1_BASIC_CONFIG_ 9 | 10 | #ifdef USE_BASIC_CONFIG 11 | 12 | #undef USE_ASM_X86_64 13 | #undef USE_ENDOMORPHISM 14 | #undef USE_FIELD_10X26 15 | #undef USE_FIELD_5X52 16 | #undef USE_FIELD_INV_BUILTIN 17 | #undef USE_FIELD_INV_NUM 18 | #undef USE_NUM_GMP 19 | #undef USE_NUM_NONE 20 | #undef USE_SCALAR_4X64 21 | #undef USE_SCALAR_8X32 22 | #undef USE_SCALAR_INV_BUILTIN 23 | #undef USE_SCALAR_INV_NUM 24 | 25 | #define USE_NUM_NONE 1 26 | #define USE_FIELD_INV_BUILTIN 1 27 | #define USE_SCALAR_INV_BUILTIN 1 28 | #define USE_FIELD_10X26 1 29 | #define USE_SCALAR_8X32 1 30 | 31 | #endif // USE_BASIC_CONFIG 32 | #endif // _SECP256K1_BASIC_CONFIG_ 33 | -------------------------------------------------------------------------------- /cmd/evm/testdata/9/txs.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "gas": "0x4ef00", 4 | "maxPriorityFeePerGas": "0x2", 5 | "maxFeePerGas": "0x12A05F200", 6 | "chainId": "0x1", 7 | "input": "0x", 8 | "nonce": "0x0", 9 | "to": "0x000000000000000000000000000000000000aaaa", 10 | "value": "0x0", 11 | "type" : "0x2", 12 | "accessList": [ 13 | {"address": "0x000000000000000000000000000000000000aaaa", 14 | "storageKeys": [ 15 | "0x0000000000000000000000000000000000000000000000000000000000000000" 16 | ] 17 | } 18 | ], 19 | "v": "0x0", 20 | "r": "0x0", 21 | "s": "0x0", 22 | "secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" 23 | }, 24 | { 25 | "gas": "0x4ef00", 26 | "gasPrice": "0x12A05F200", 27 | "chainId": "0x1", 28 | "input": "0x", 29 | "nonce": "0x1", 30 | "to": "0x000000000000000000000000000000000000aaaa", 31 | "value": "0x0", 32 | "v": "0x0", 33 | "r": "0x0", 34 | "s": "0x0", 35 | "secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8" 36 | } 37 | ] 38 | -------------------------------------------------------------------------------- /eth/protocols/snap/tracker.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | package snap 18 | 19 | import ( 20 | "time" 21 | 22 | "github.com/ethereum/go-ethereum/p2p/tracker" 23 | ) 24 | 25 | // requestTracker is a singleton tracker for request times. 26 | var requestTracker = tracker.New(ProtocolName, time.Minute) 27 | -------------------------------------------------------------------------------- /internal/jsre/deps/deps.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | // Package deps contains the console JavaScript dependencies Go embedded. 18 | package deps 19 | 20 | import ( 21 | _ "embed" 22 | ) 23 | 24 | //go:embed web3.js 25 | var Web3JS string 26 | 27 | //go:embed bignumber.js 28 | var BigNumberJS string 29 | -------------------------------------------------------------------------------- /rlp/rlpgen/testdata/bigint.out.txt: -------------------------------------------------------------------------------- 1 | package test 2 | 3 | import "github.com/ethereum/go-ethereum/rlp" 4 | import "io" 5 | 6 | func (obj *Test) EncodeRLP(_w io.Writer) error { 7 | w := rlp.NewEncoderBuffer(_w) 8 | _tmp0 := w.List() 9 | if obj.Int == nil { 10 | w.Write(rlp.EmptyString) 11 | } else { 12 | if obj.Int.Sign() == -1 { 13 | return rlp.ErrNegativeBigInt 14 | } 15 | w.WriteBigInt(obj.Int) 16 | } 17 | if obj.IntNoPtr.Sign() == -1 { 18 | return rlp.ErrNegativeBigInt 19 | } 20 | w.WriteBigInt(&obj.IntNoPtr) 21 | w.ListEnd(_tmp0) 22 | return w.Flush() 23 | } 24 | 25 | func (obj *Test) DecodeRLP(dec *rlp.Stream) error { 26 | var _tmp0 Test 27 | { 28 | if _, err := dec.List(); err != nil { 29 | return err 30 | } 31 | // Int: 32 | _tmp1, err := dec.BigInt() 33 | if err != nil { 34 | return err 35 | } 36 | _tmp0.Int = _tmp1 37 | // IntNoPtr: 38 | _tmp2, err := dec.BigInt() 39 | if err != nil { 40 | return err 41 | } 42 | _tmp0.IntNoPtr = (*_tmp2) 43 | if err := dec.ListEnd(); err != nil { 44 | return err 45 | } 46 | } 47 | *obj = _tmp0 48 | return nil 49 | } 50 | -------------------------------------------------------------------------------- /cmd/evm/testdata/21/exp.json: -------------------------------------------------------------------------------- 1 | { 2 | "rlp": "0xf901fdf901f8a0d6d785d33cbecf30f30d07e00e226af58f72efdf385d46bc3e6326c23b11e34ea01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a0325aea6db48e9d737cddf59034843e99f05bec269453be83c9b9a981a232cc2ea056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082100082c3be83050785808455c5277e80a05865e417635a26db6d1d39ac70d1abf373e5398b3c6fd506acd038fa1334eedf880000000000000000c0c0", 3 | "hash": "0x801411e9f6609a659825690d13e4f75a3cfe9143952fa2d9573f3b0a5eb9ebbb" 4 | } 5 | -------------------------------------------------------------------------------- /metrics/cputime_nop.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build windows || js 18 | // +build windows js 19 | 20 | package metrics 21 | 22 | // getProcessCPUTime returns 0 on Windows as there is no system call to resolve 23 | // the actual process' CPU time. 24 | func getProcessCPUTime() int64 { 25 | return 0 26 | } 27 | -------------------------------------------------------------------------------- /eth/protocols/eth/tracker.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | package eth 18 | 19 | import ( 20 | "time" 21 | 22 | "github.com/ethereum/go-ethereum/p2p/tracker" 23 | ) 24 | 25 | // requestTracker is a singleton tracker for eth/66 and newer request times. 26 | var requestTracker = tracker.New(ProtocolName, 5*time.Minute) 27 | -------------------------------------------------------------------------------- /metrics/cpu_disabled.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build ios || js 18 | // +build ios js 19 | 20 | package metrics 21 | 22 | // ReadCPUStats retrieves the current CPU stats. Internally this uses `gosigar`, 23 | // which is not supported on the platforms in this file. 24 | func ReadCPUStats(stats *CPUStats) {} 25 | -------------------------------------------------------------------------------- /rlp/safe.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The go-ethereum Authors 2 | // This file is part of the go-ethereum library. 3 | // 4 | // The go-ethereum library is free software: you can redistribute it and/or modify 5 | // it under the terms of the GNU Lesser General Public License as published by 6 | // the Free Software Foundation, either version 3 of the License, or 7 | // (at your option) any later version. 8 | // 9 | // The go-ethereum library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU Lesser General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU Lesser General Public License 15 | // along with the go-ethereum library. If not, see . 16 | 17 | //go:build nacl || js || !cgo 18 | // +build nacl js !cgo 19 | 20 | package rlp 21 | 22 | import "reflect" 23 | 24 | // byteArrayBytes returns a slice of the byte array v. 25 | func byteArrayBytes(v reflect.Value, length int) []byte { 26 | return v.Slice(0, length).Bytes() 27 | } 28 | --------------------------------------------------------------------------------