You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2023. It is now read-only.
*`decode_keystore_json(jsondata, password)` - returns the private key from an encrypted keystore object. NOTE: if you are loading from a file, the most convenient way to do this is `import json; key = decode_keystore_json(json.load(open('filename.json')), 'password')`
164
164
*`make_keystore_json(key, pw, kdf='pbkdf2', cipher='aes-128-ctr')` - creates an encrypted keystore object for the key. Keeping `kdf` and `cipher` at their default values is recommended.
165
165
166
+
### ethereum.abi
167
+
168
+
Most compilers for HLLs (solidity, serpent, viper, etc) on top of Ethereum have the option to output an ABI declaration for a program. This is a json object that looks something like this:
You can also call `ct.decode_event([topic1, topic2...], logdata)` to decode a log.
183
+
166
184
### RLP encoding and decoding
167
185
168
186
For any transaction or block, you can simply do:
@@ -195,6 +213,29 @@ The pyethereum codebase is designed to be maximally friendly for use across many
195
213
*`get_uncle_candidates(chain, state)` - called in `mk_head_candidate` to include uncles in a block
196
214
* Create a chain config with the `CONSENSUS_STRATEGY` set to whatever you named your new consensus strategy
197
215
216
+
## Tester module
217
+
218
+
See https://github.com/ethereum/pyethereum/wiki/Using-pyethereum.tester
219
+
220
+
## Tests
221
+
222
+
Run `python3.6 -m pytest ethereum/tests/<filename>` for any .py file in that directory. Currently all tests are passing except for a few Metropolis-specific state tests and block tests.
223
+
224
+
To make your own state tests, use the tester module as follows:
0 commit comments