From 4f6437dad1df4a89ae24ef9f7cddbd4e992ebe1d Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 9 Mar 2026 17:06:16 -0400 Subject: content/posts/2026-03-08-pbech32-v0.1.0.md: add link to examples/ --- content/posts/2026-03-08-pbech32-v0.1.0.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'content/posts') diff --git a/content/posts/2026-03-08-pbech32-v0.1.0.md b/content/posts/2026-03-08-pbech32-v0.1.0.md index 7712d2f..4913886 100644 --- a/content/posts/2026-03-08-pbech32-v0.1.0.md +++ b/content/posts/2026-03-08-pbech32-v0.1.0.md @@ -4,7 +4,7 @@ title: "pbech32 v0.1.0" date: "2026-03-08T02:50:28-04:00" --- I just released the first version of [pbech32][], a [Rust][] library for -encoding and decoding [Bech32][] strings. +encoding and decoding [Bech32][] data. [Bech32][] is a fast and user-friendly [base 32][] encoding format that includes a [namespace][] and [checksum][]. @@ -67,6 +67,10 @@ encoder.flush()?; // flush encoder (REQUIRED) let got = str::from_utf8(vec.as_ref())?; // convert output vector to string assert_eq!(got, "hello1vehkc6mn27xpct"); // check result ``` +  + +More examples are available in the [`examples/` directory][examples] of +the [pbech32 Git repository][git repository]. [bech32]: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki "Bech32 (BIP173)" @@ -116,7 +120,7 @@ assert_eq!(got, "hello1vehkc6mn27xpct"); // check result "pbech32 API documentation on docs.rs" [crates-io-pbech32]: https://crates.io/crates/pbech32 "pbech32 on crates.io" -[examples]: examples/ +[examples]: https://github.com/pablotron/pbech32/tree/main/examples "pbech32 examples/ directory" [cargo-tarpaulin]: https://crates.io/crates/cargo-tarpaulin "Tarpaulin code coverage reporting tool." -- cgit v1.2.3