Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 470 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 470 Bytes

Bech32 Encode/Decode C#

This project allows you to convert between SegWit Bech32 addresses and raw bytes.

Sister project of SharpCashAddr which can do the same thing for Bitcoin Cash CashAddr.

public static string EncodeBech32(byte witnessVersion, byte[] witnessProgram, bool isP2PKH, bool mainnet);
public static byte[] DecodeBech32(string addr, out byte witnessVersion, out byte isP2PKH, out bool mainnet);