Bitcoin Forum
June 27, 2024, 04:10:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Base58 without bigint?  (Read 747 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
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!