From 7745727151baaf6d07c7de9fa7e9ead377169d37 Mon Sep 17 00:00:00 2001 From: pawanjay176 Date: Sun, 12 May 2019 22:26:23 +0530 Subject: [PATCH] Add base58 charset. --- src/ss.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ss.rs b/src/ss.rs index 262881e..699507b 100644 --- a/src/ss.rs +++ b/src/ss.rs @@ -101,6 +101,7 @@ impl SecretSharing { pub enum Charset { Hex, Alphanumeric, + Base58, } impl Charset { @@ -111,6 +112,9 @@ impl Charset { Charset::Alphanumeric => { "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" } + Charset::Base58 => { + "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" + } } } }