From dbd462e700607afd83ffa8794048962eaa59b858 Mon Sep 17 00:00:00 2001 From: JSKitty Date: Mon, 26 Aug 2024 15:30:29 +0100 Subject: [PATCH] Swap charset to Base58 for typo resistance --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 00613ed..833ab8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -487,10 +487,10 @@ pub fn create_pivx_address(secp: &Secp256k1) -> OptimisedKeypair OptimisedKeypair{private: privkey, public: address} } -/// A string representing the set of characters for generating alphanumeric random values. +/// A string representing the base58 charset for generating alphanumeric random values. /// const MAP_ALPHANUMERIC: &str = - "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ123456789"; /// Returns a vector of random bytes of the specified size. ///