From f14387dddd3fbf0604f65fdedd26a71bcc378f7f Mon Sep 17 00:00:00 2001 From: Maria Kuklina Date: Fri, 2 Feb 2024 15:49:28 +0100 Subject: [PATCH] use base58 instead of base64 --- Cargo.lock | 2 +- aquamarine/Cargo.toml | 2 +- aquamarine/src/particle_data_store.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a7fe1b8bae..1b5fccb792 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -244,6 +244,7 @@ dependencies = [ "anyhow", "async-trait", "avm-server", + "bs58", "bytesize", "chrono", "config", @@ -256,7 +257,6 @@ dependencies = [ "fs-utils", "futures", "health", - "hex", "humantime 2.1.0", "libp2p", "log", diff --git a/aquamarine/Cargo.toml b/aquamarine/Cargo.toml index 45331f0996..040223bcf6 100644 --- a/aquamarine/Cargo.toml +++ b/aquamarine/Cargo.toml @@ -33,7 +33,7 @@ tracing = { workspace = true } serde_json = { workspace = true } parking_lot = { workspace = true } chrono = "0.4.31" -hex = { workspace = true } +bs58 = { workspace = true } thiserror = { workspace = true } humantime = "2.1.0" anyhow = "1.0.79" diff --git a/aquamarine/src/particle_data_store.rs b/aquamarine/src/particle_data_store.rs index f13c8d0f6f..8bb03e9544 100644 --- a/aquamarine/src/particle_data_store.rs +++ b/aquamarine/src/particle_data_store.rs @@ -307,7 +307,7 @@ fn store_key_from_components(particle_id: &str, current_peer_id: &str, signature } fn format_signature(signature: &[u8]) -> String { - hex::encode(signature) + bs58::encode(signature).into_string() } #[cfg(test)]