@@ -31,6 +31,7 @@ pub struct VanityOptions {
3131 pub pattern : String ,
3232 pub pattern_type : PatternType ,
3333 pub case_sensitive : bool ,
34+ #[ allow( dead_code) ]
3435 pub max_attempts : u64 ,
3536 pub max_time : Duration ,
3637}
@@ -53,6 +54,7 @@ impl VanityGenerator {
5354 }
5455
5556 /// Generate a single vanity address
57+ #[ allow( dead_code) ]
5658 pub async fn generate_single ( & self , options : & VanityOptions ) -> Result < Option < VanityResult > > {
5759 let start_time = Instant :: now ( ) ;
5860 let mut attempts = 0u64 ;
@@ -196,6 +198,7 @@ impl VanityGenerator {
196198 }
197199
198200 /// Check if a public key matches the specified pattern
201+ #[ allow( dead_code) ]
199202 fn matches_pattern ( & self , public_key : & str , pattern : & str , pattern_type : & PatternType , case_sensitive : bool ) -> bool {
200203 Self :: matches_pattern_static ( public_key, pattern, pattern_type, case_sensitive)
201204 }
@@ -292,6 +295,7 @@ impl VanityGenerator {
292295}
293296
294297/// Validate that a pattern only contains valid Base58 characters
298+ #[ allow( dead_code) ]
295299pub fn is_valid_base58_pattern ( pattern : & str ) -> bool {
296300 // Base58 excludes: 0, O, I, l
297301 let invalid_chars = [ '0' , 'O' , 'I' , 'l' ] ;
@@ -314,6 +318,7 @@ pub fn validate_base58_pattern(pattern: &str) -> Result<(), Vec<char>> {
314318}
315319
316320/// Get all valid Base58 characters as a string
321+ #[ allow( dead_code) ]
317322pub fn get_valid_base58_chars ( ) -> & ' static str {
318323 "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
319324}
0 commit comments