Skip to content

Commit

Permalink
Swap charset to Base58 for typo resistance
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKitty committed Aug 26, 2024
1 parent cecd7e5 commit dbd462e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ pub fn create_pivx_address(secp: &Secp256k1<secp256k1::All>) -> 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.
///
Expand Down

0 comments on commit dbd462e

Please sign in to comment.