Bitcoin Forum
May 08, 2024, 08:58:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Base58 without bigint?  (Read 745 times)
dbbit (OP)
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
March 21, 2014, 10:21:43 PM
 #1

Does anybody have an snippet or theoretical algorithm available that can encode a byte array to Base58 without using BitInt? (Instead using chunks or some other technique).

I can do this in my sleep for Base64, but Base58 makes my head hurt.


I created a blockchain scanner, and it's spending 70% of it's life now in the Base58 address conversion (Using BigInt from BouncyCastle). Argh.

- Deon
1715201905
Hero Member
*
Offline Offline

Posts: 1715201905

View Profile Personal Message (Offline)

Ignore
1715201905
Reply with quote  #2

1715201905
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715201905
Hero Member
*
Offline Offline

Posts: 1715201905

View Profile Personal Message (Offline)

Ignore
1715201905
Reply with quote  #2

1715201905
Report to moderator
1715201905
Hero Member
*
Offline Offline

Posts: 1715201905

View Profile Personal Message (Offline)

Ignore
1715201905
Reply with quote  #2

1715201905
Report to moderator
ScripterRon
Full Member
***
Offline Offline

Activity: 136
Merit: 120


View Profile
March 21, 2014, 11:35:13 PM
 #2

I have a Java Base58 encoder/decoder which works directly with the byte array.  But I don't know that it is any faster than what you are using.  If you want to check it out, https://github.com/ScripterRon/BitcoinWallet/tree/master/src/BitcoinWallet/Base58.java
dbbit (OP)
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250


View Profile
March 22, 2014, 03:03:55 AM
 #3

I have a Java Base58 encoder/decoder which works directly with the byte array.  But I don't know that it is any faster than what you are using.  If you want to check it out, https://github.com/ScripterRon/BitcoinWallet/tree/master/src/BitcoinWallet/Base58.java

MOD by long division. Far out!

Thanks!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!