File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515B1 = {chr (i ): chr (i ) for i in range (2 ** 8 )}
1616B1 ['' ] = "A"
17- base (B1 , r"^(?:base[-_]?1(|[-_].)|unary)$" )
17+ base (B1 , r"^(?:base[-_]?1(|[-_].)|unary)$" , guess = [] )
1818main1 = main (1 )
1919
2020
8282 r'[-_]?(fl|flickr|short[-]?url|url)$' : "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" ,
8383}
8484base (B58 , r"^base[-_]?58(|[-_](bc|bitcoin|rp|ripple|fl|flickr|short[-]?url|url))$" ,
85- guess = ["base58-bitcoin " , "base58-ripple" , "base58-flickr" ])
85+ guess = ["base58" , "base58-ripple" , "base58-flickr" ])
8686main58bc = main (58 , "<https://en.bitcoinwiki.org/wiki/Base58>" , "bitcoin" )
8787main58rp = main (58 , "<https://en.bitcoinwiki.org/wiki/Base58>" , "ripple" )
8888main58fl = main (58 , "<https://en.bitcoinwiki.org/wiki/Base58>" , "flickr" )
117117main67 = main (67 )
118118
119119
120+ B128 = {r'' : "" .join (chr (i ) for i in range (128 ))}
121+ base (B128 , r"^base[-_]?128$" , padding_char = "=" )
122+ main128 = main (128 , None , False )
123+
124+
120125# generic base encodings, to be added after all others as they have the precedence
121126base_generic ()
122127
You can’t perform that action at this time.
0 commit comments