Ferdinando Ametrano

Results 8 issues of Ferdinando Ametrano

when tracking a transaction (e.g., `acbcf8366c52e334fe5bc20259e45b41b6ef287c2869745dc8dea2a3b504f63c`), it would be handy to have a dedicated URL like [https://mempool.observer/acbcf8366c52e334fe5bc20259e45b41b6ef287c2869745dc8dea2a3b504f63c](https://mempool.observer/acbcf8366c52e334fe5bc20259e45b41b6ef287c2869745dc8dea2a3b504f63c)

is there a way to hide a field when going to_dict ? Something like: ``` @dataclass class Person(DataClassJsonMixin): name: str nick_name: str = field(default="", hide=True) jack = Person(name="Jack") # Person(name='Jack',...

from_dict does not restore field marked with init=False ``` from dataclasses import dataclass, field from dataclasses_json import DataClassJsonMixin @dataclass class Person(DataClassJsonMixin): name: str nick_name: str = field(default="", init=False, repr=True, compare=True)...

While at https://github.com/bitcoin-core/HWI/pull/409 and https://github.com/bitcoin-core/HWI/pull/410 I just couldn't resist to try and improve some pythonic readability. Namely, I - converted for loop into call to sum() - inlined variable that...

(1) There is some confusion about base64.b64encode and base64.b64decode, mostly originating from Python2. Anyway, in Python3 b64decode accepts both str and bytes-like and returns bytes: ``` Python 3.8.6 (default, Nov...

To facilitate interoperability across different software systems with possibly different implementations of the PSBT standard, B174 advocates base64 encoding as "lingua franca" for PSBT. For this reason, `sign_tx` should primarily...

With Python2 being already unsupported (even if erroneously reported in pypy as supported) I took a chance at upgradng to py37+ standard. If this is well received, next step might...

secp256k1 being a clean and lean library, it would deserve clean and lean coding standard. https://github.com/psf/black https://pycqa.github.io/isort/ I know global formatting PRs are often rejected, but considering that this python...