craigwrong / bech32m

Swift implementation of Bech32 encoding and segwit address format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bech32

Base32 address format for native v0-16 witness outputs implementation

See BIP173 proposal on bitcoin repo

Inspired by Pieter Wuille C++ reference implementation

Install

  • Drop files into project
  • Correct Bech32Tests @testable import statement

Check

Swift Package Manager is needed to run tests and build .xcodeproj. If SPM (v4) is installed then one can type:

git clone https://github.com/0xDEADP00L/Bech32.git
cd Bech32
swift test

About

Swift implementation of Bech32 encoding and segwit address format

License:MIT License


Languages

Language:Swift 100.0%