WizardOfOzzie
WizardOfOzzie
Fixed! See [my fork code](https://github.com/wizardofozzie/pybitcointools/blob/master/bitcoin/main.py#L640-L641) and [here](https://github.com/wizardofozzie/pybitcointools/blob/master/bitcoin/main.py#L672-L673)
See [my fork](https://github.com/wizardofozzie/pybitcointools/blob/master/bitcoin/transaction.py#L223-L236): ``` # mk_opreturn("the 80 byte message to be encoded", "01000000013543534354...00000000") def mk_opreturn(msg, txhex=None): """Makes OP_RETURN script from msg, embeds in Tx hex""" hexdata = safe_hexlify(b'\x6a' + wrap_script(msg))...
The `01` is the flag for a compressed private key, since it's impossible to know whether this hex representation is for compressed (`02`/`03`) or uncompressed (`04`). I'm not sure how...
> Is it a standard representation or it is just a pybitcointools one? @gabridome It's a standard representation, not just a _pybitcointools_ one. I'll have to take a look at...
@fcracker79 > and specifically, always compressed Are all bip32 private keys compressed WIFs, or is private ckd able to return an uncompressed WIF? > it produces the base58check deserialized key...
Has anyone got a better way to check the coinbase field and filter out non-printable characters? ie, note the 'E' in front of the block 0 coinbase text returned, or...
``` Whereas this (as in example in readme) priv=sha256("blah") # add "01" flag pub = privtopub(priv) # or compress(privtopub(priv) ) ``` Hex SEC keys require the appended "compressed" byte. The...
@vbuterin This is a major change in semantics and such, so if this isn't how you want to go, people have the option of [my fork](https://github.com/wizardofozzie/pybitcointools), where for example, `py2specials`...
See [this PR](https://github.com/vbuterin/pybitcointools/pull/108)
See [this PR](https://github.com/vbuterin/pybitcointools/pull/103): it's fixed. `serialize_script_unit` was returning `bytes([unit])`, which should be `chr(unit)` for Python 2.7