Comments (4)
The new prefix will be announced very soon as part of the rebranding, btw.
from cashaddress.
I imagine we would need to have some kind of API argument that would be BITCOIN_ABC=1 or BITCOIN_CASH_VERSION=(ABC|MAIN)
, etc?
from cashaddress.
I was thinking of adding : ABC_MAINNET_PREFIX, ABC_TESTNET_PREFIX, Address.abc_cash_address, to_abc_cash_addr
And make Address.from_string, to_legacy_addr, to_cash_addr all support the 3 type of addresses as input (default to "bitcoincash:" if the prefix is missing).
Maybe also add an Address.from_cashaddr_arbitrary_prefix() method to support stuff like "regtest:", "simpleledger:"...
from cashaddress.
I see that you already support importing CashAddr strings with any prefix. The only thing that is missing is a simple way to output to any other prefix.
What do you think about an optional prefix
argument for the Address.cash_address()
method?
from cashaddress.
Related Issues (9)
- Not available for Python 3? HOT 5
- can you add bitpay address to cashaddress? HOT 4
- regtest address converter
- Can't handle None address HOT 1
- Add testnet support HOT 1
- MIT license possible? HOT 4
- Library does not contain any code to correctly validate cashaddr with length greater than 160 HOT 6
- Convertbits needs to refuse to pad on decode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cashaddress.