Bitcoin Forum
May 22, 2024, 07:20:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Convert multiple bitcoin uncompressed to compressed pub. key?  (Read 125 times)
bane77 (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
November 16, 2022, 02:09:52 PM
 #1

Hi

I already search but with no luck, for the script i could convert multiple Bitcoin pub. keys from uncompressed to compressed, and also than all compressed pub. keys to pub. address?
If anyone,... ?

Thanks in advance! 
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6753


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 16, 2022, 02:12:34 PM
 #2

Well, do you have a script that can convert one uncompressed key to a compressed key?

If that is so, start with that. Then you can write a simple function around it that takes a list of keys like this:

Code:
#!/usr/bin/python3

def to_compressed(key):
    # .... return the compressed key

def many_to_compressed(keys):
    for key in keys:
    print(to_compressed(key))

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

Activity: 17
Merit: 0


View Profile
November 16, 2022, 03:18:18 PM
 #3

Well, do you have a script that can convert one uncompressed key to a compressed key?

If that is so, start with that. Then you can write a simple function around it that takes a list of keys like this:

Code:
#!/usr/bin/python3

def to_compressed(key):
    # .... return the compressed key

def many_to_compressed(keys):
    for key in keys:
    print(to_compressed(key))


No not really, couldn't  find not even one, one for one converter for pub. key script. Except https://iancoleman.io/bitcoin-key-compression/   but its in Java and i don't have much clue about coding.
bane77 (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 08, 2022, 05:13:00 AM
 #4

Ok, so i found a web to convert multiple pub. key, addresses,.... if some one needs it: https://privatekeys.pw/calc
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!