Post
Topic
Board Bitcoin Discussion
Re: Convert multiple bitcoin uncompressed to compressed pub. key?
by
NotATether
on 16/11/2022, 14:12:34 UTC
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:
#!/bin/python

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

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