sfw-provider: swapping out base64 for base58
This commit is contained in:
Generated
+1
-1
@@ -1400,7 +1400,7 @@ dependencies = [
|
||||
name = "nym-sfw-provider"
|
||||
version = "0.3.3"
|
||||
dependencies = [
|
||||
"base64 0.11.0",
|
||||
"bs58",
|
||||
"built",
|
||||
"clap",
|
||||
"crypto",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user