Open vietlq opened 6 years ago
Bitcoin
+ static fromWIF(wif_bytes) -> ECPair
+ static toWIF(ECPair) -> wif_bytes
ECPair
+ importWIF() -> boolean
+ exportWIF() -> wif_bytes
+ getAddr() -> addr_bytes
+ sendTx(add_bytes, amount) -> raw_tx_bytes
Check out @property
https://www.blog.pythonlibrary.org/2014/01/20/python-201-properties/
class A:
def __init__(self): pass
@property
def age(self): return 10
Clean APIs for consideration: