Skip to content

Commit 30cde78

Browse files
adding readme
1 parent 50d01a4 commit 30cde78

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contrib/bech32/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Code copied from the [bech32](https://github.com/sipa/bech32) repository. It contains reference implementations
2+
of the Bech32 and Bech32m algorithms, along with an implementation of the SegWit algorithm which is a
3+
specialization of Bech32(m) for Bitcoin. The code used in ClickHouse is only the Bech32 algorithms, not SegWit.
4+
See [this link](https://en.bitcoin.it/wiki/Bech32) for more info on the algorithms and their applications.
5+
6+
Modifications to the code:
7+
- typedef changed to using as per compiler warnings
8+
- Problematic asserts were changed to if statement + empty return
9+
- convertbits function was copied directly into src/Functions/FunctionsBech32Representation.cpp

0 commit comments

Comments
 (0)