bech32
Code snippets and analysis of the Bech32 format (by sipa)
cashaddress
Python tool for convert bitcoin cash legacy addresses (by oskyk)
Our great sponsors
bech32 | cashaddress | |
---|---|---|
2 | 1 | |
187 | 44 | |
- | - | |
0.0 | 0.0 | |
almost 2 years ago | about 2 months ago | |
JavaScript | Python | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bech32
Posts with mentions or reviews of bech32.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-10.
-
Coins from 2010 are moving.
amnesia@amnesia:~$ amnesia@amnesia:~$ wget --quiet https://github.com/libbitcoin/libbitcoin-explorer/releases/download/v3.2.0/bx-linux-x64-qrcode amnesia@amnesia:~$ wget --quiet https://github.com/sipa/bech32/raw/master/ref/python/segwit_addr.py amnesia@amnesia:~$ wget --quiet https://github.com/oskyk/cashaddress/archive/1.0.5.tar.gz amnesia@amnesia:~$ ls -l bx-linux-x64-qrcode segwit_addr.py 1.0.5.tar.gz -rw-r--r-- 1 amnesia amnesia 6494 Aug 12 14:14 1.0.5.tar.gz -rw-r--r-- 1 amnesia amnesia 5037768 May 26 2017 bx-linux-x64-qrcode -rw-r--r-- 1 amnesia amnesia 4376 Aug 12 14:13 segwit_addr.py amnesia@amnesia:~$ tar xf 1.0.5.tar.gz amnesia@amnesia:~$ chmod +x bx-linux-x64-qrcode amnesia@amnesia:~$ alias bx=/home/amnesia/bx-linux-x64-qrcode amnesia@amnesia:~$
-
[Python] - How to Convert an Ethereum(0x) Address to a One(one1) Address
import binascii class Bech32Utils: #borrowed from https://github.com/sipa/bech32/blob/master/ref/python/segwit_addr.py @classmethod def Convert_Pub_2_One_Address(cls, public_address): hex_address = binascii.a2b_hex(public_address) binary_address = Bech32Utils._convertbits(hex_address, 8, 5) return cls._bech32_encode('one', binary_address) @staticmethod def _convertbits(data, frombits, tobits, pad=True): """General power-of-2 base conversion.""" acc = 0 bits = 0 ret = [] maxv = (1 << tobits) - 1 max_acc = (1 << (frombits + tobits - 1)) - 1 for value in data: if value < 0 or (value >> frombits): return None acc = ((acc << frombits) | value) & max_acc bits += frombits while bits >= tobits: bits -= tobits ret.append((acc >> bits) & maxv) if pad: if bits: ret.append((acc << (tobits - bits)) & maxv) elif bits >= frombits or ((acc << (tobits - bits)) & maxv): return None return ret
cashaddress
Posts with mentions or reviews of cashaddress.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-11-10.
-
Coins from 2010 are moving.
amnesia@amnesia:~$ amnesia@amnesia:~$ wget --quiet https://github.com/libbitcoin/libbitcoin-explorer/releases/download/v3.2.0/bx-linux-x64-qrcode amnesia@amnesia:~$ wget --quiet https://github.com/sipa/bech32/raw/master/ref/python/segwit_addr.py amnesia@amnesia:~$ wget --quiet https://github.com/oskyk/cashaddress/archive/1.0.5.tar.gz amnesia@amnesia:~$ ls -l bx-linux-x64-qrcode segwit_addr.py 1.0.5.tar.gz -rw-r--r-- 1 amnesia amnesia 6494 Aug 12 14:14 1.0.5.tar.gz -rw-r--r-- 1 amnesia amnesia 5037768 May 26 2017 bx-linux-x64-qrcode -rw-r--r-- 1 amnesia amnesia 4376 Aug 12 14:13 segwit_addr.py amnesia@amnesia:~$ tar xf 1.0.5.tar.gz amnesia@amnesia:~$ chmod +x bx-linux-x64-qrcode amnesia@amnesia:~$ alias bx=/home/amnesia/bx-linux-x64-qrcode amnesia@amnesia:~$
What are some alternatives?
When comparing bech32 and cashaddress you can also consider the following projects:
libbitcoin-explorer - Bitcoin Command Line Tool
bitcoinacceptor-python - BitcoinAcceptor: Accept Bitcoin, Bitcoin Cash, or Bitcoin SV without spending any in the process
neuron - Future-proof note-taking and publishing based on Zettelkasten (superseded by Emanote: https://github.com/srid/emanote)
watchtower-cash - Instant and reliable infrastructure connecting you to the Bitcoin Cash (BCH) blockchain