From ed0ef383e9568afc238b3c93203c5e62918d7f38 Mon Sep 17 00:00:00 2001 From: Pierre Gronlier Date: Thu, 11 Jul 2024 13:36:05 +0200 Subject: [PATCH] Update README.rst with a raw_decoder example Address #22 --- README.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.rst b/README.rst index 02981de..7ca76d5 100644 --- a/README.rst +++ b/README.rst @@ -143,6 +143,11 @@ Object-oriented style: >>> base32.decode('bjbswy3dpeblw64tmmqqq') b'Hello World!' +Object-oriented style without prefix: + +>>> multibase.get("base64url").raw_decoder("1IFOwqNRAXr7bxkzsaUP4c5TsfODswA3L8EZYoaWP08") +b'\xd4\x81N\xc2\xa3Q\x01z\xfbo\x193\xb1\xa5\x0f\xe1\xceS\xb1\xf3\x83\xb3\x007/\xc1\x19b\x86\x96?O' + Multihash digest ^^^^^^^^^^^^^^^^