Skip to content

Commit

Permalink
Add base58 charset.
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed May 12, 2019
1 parent 243bcb2 commit 7745727
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl SecretSharing {
pub enum Charset {
Hex,
Alphanumeric,
Base58,
}

impl Charset {
Expand All @@ -111,6 +112,9 @@ impl Charset {
Charset::Alphanumeric => {
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
Charset::Base58 => {
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
}
}
}
}

0 comments on commit 7745727

Please sign in to comment.