steemit / simple_steem_client

A minimalist Steem RPC client in Python
2 stars 5 forks source link

Replace sign_transaction utility calls #9

Open youkaicountry opened 6 years ago

youkaicountry commented 6 years ago

Replace calls to sign_transaction with a pure python transaction signing solution.

In #4, a python ECDSA library was identified: https://github.com/warner/python-ecdsa

And a pure python serialization library was created in #3.

youkaicountry commented 6 years ago

We use the curve secp256k1, which is present in the library.

theoreticalbts commented 6 years ago

The problems I see are as follows:

So what I'm going to do is just copy-paste the bare minimum necessary to get tinman up and running. Basically, PublicKey and PrivateKey. I'm going to get rid of all unnecessary code (including PasswordKey, BrainKey, Address, and uncompressed key handling). I'm going to simplify the interface to be as simple as possible. If we later want to copy-paste larger portions of steem-python for backwards compatibility's sake, let's do it in a different project that uses simple_steem_client as a dependency. For now I'll copy only what we absolutely need.