sfw-provider: swapping out base64 for base58

This commit is contained in:
Dave Hrycyszyn
2020-01-24 16:37:35 +00:00
parent da6aac176b
commit 559cffdb56
3 changed files with 3 additions and 3 deletions
Generated
+1 -1
View File
@@ -1400,7 +1400,7 @@ dependencies = [
name = "nym-sfw-provider"
version = "0.3.3"
dependencies = [
"base64 0.11.0",
"bs58",
"built",
"clap",
"crypto",
+1 -1
View File
@@ -8,7 +8,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
base64 = "0.11.0"
bs58 = "0.3.0"
clap = "2.33.0"
curve25519-dalek = "1.2.3"
dotenv = "0.15.0"
+1 -1
View File
@@ -87,7 +87,7 @@ impl ClientLedger {
fn current_clients(&self) -> Vec<MixProviderClient> {
self.0
.iter()
.map(|(_, v)| base64::encode_config(v, base64::URL_SAFE))
.map(|(_, v)| bs58::encode(v).into_string())
.map(|pub_key| MixProviderClient { pub_key })
.collect()
}