Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface for Bitcoin #1

Open
vietlq opened this issue Nov 6, 2017 · 3 comments
Open

Interface for Bitcoin #1

vietlq opened this issue Nov 6, 2017 · 3 comments
Assignees

Comments

@vietlq
Copy link
Contributor

vietlq commented Nov 6, 2017

Clean APIs for consideration:

@vietlq vietlq self-assigned this Nov 6, 2017
@vietlq vietlq changed the title Improve API Interface for Bitcoin Nov 7, 2017
@vietlq
Copy link
Contributor Author

vietlq commented Nov 7, 2017

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

@vietlq
Copy link
Contributor Author

vietlq commented Nov 7, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant