Bitcoin Forum
May 07, 2024, 12:18:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to get the bitcoin address from base6 using java?  (Read 70 times)
Sanka555 (OP)
Member
**
Offline Offline

Activity: 96
Merit: 36


View Profile
November 04, 2021, 12:17:18 PM
Last edit: November 04, 2021, 01:24:13 PM by Sanka555
 #1

i have Java and  bitcoinj
and i have a key = "11111111111111111111111111111111222221111111111111111111111111" in base6 format

and I want to get 2 compress and decompress WIF-format addresses without bitcoin org
please tell me how to do this the easiest way?
(this is not a brain-wallet)


thank you very much in advance:)
1715084316
Hero Member
*
Offline Offline

Posts: 1715084316

View Profile Personal Message (Offline)

Ignore
1715084316
Reply with quote  #2

1715084316
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715084316
Hero Member
*
Offline Offline

Posts: 1715084316

View Profile Personal Message (Offline)

Ignore
1715084316
Reply with quote  #2

1715084316
Report to moderator
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10555



View Profile
November 04, 2021, 01:57:29 PM
 #2

Go to https://github.com/pointbiz/bitaddress.org and clone the repository (it is written in JavaScript).
On a preferably air-gap computer run the bitaddress.org.html file.
Click on the tab saying "Wallet Details" and enter the base6 string in the first text box.
Click "View Details" button.

You will see both compressed and uncompressed private/public keys and the corresponding P2PKH addresses in this page.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Sanka555 (OP)
Member
**
Offline Offline

Activity: 96
Merit: 36


View Profile
November 04, 2021, 02:12:45 PM
 #3

it's a little different. I am trying to do it myself in JAVA

JS is another language, unfortunately I don't know it at all (
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10555



View Profile
November 04, 2021, 02:45:15 PM
Merited by ABCbits (1)
 #4

it's a little different. I am trying to do it myself in JAVA
JS is another language, unfortunately I don't know it at all (
I'm not familiar with either language but they look pretty similar to me. There is a "BigInteger" class in both that supports constructing from a string while setting the base of that input. You just construct it using new BigInteger(input, 6) where input is the string (like "113125215") then convert that bigint instance to any other format like byte array then encode with Base58.

Base-6 encoding is pretty straight forward too: https://en.wikipedia.org/wiki/Senary

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Sanka555 (OP)
Member
**
Offline Offline

Activity: 96
Merit: 36


View Profile
November 04, 2021, 03:28:24 PM
 #5

it's a little different. I am trying to do it myself in JAVA
JS is another language, unfortunately I don't know it at all (
I'm not familiar with either language but they look pretty similar to me. There is a "BigInteger" class in both that supports constructing from a string while setting the base of that input. You just construct it using new BigInteger(input, 6) where input is the string (like "113125215") then convert that bigint instance to any other format like byte array then encode with Base58.

Base-6 encoding is pretty straight forward too: https://en.wikipedia.org/wiki/Senary


thank you very much, it really helped) everything worked out  Smiley
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!