Bitcoin Forum
May 27, 2024, 11:04:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Python tools with wallet functions, key management, seeds, xpriv, etc.  (Read 58 times)
Forsyth Jones (OP)
Hero Member
*****
Offline Offline

Activity: 1176
Merit: 634


Press F for Leo


View Profile WWW
March 08, 2024, 05:10:06 PM
 #1

Recently in my research, I came across solutions in Python that solved my problem, an example is this post here, which teaches how to convert a zpriv/zpub to the standard format (xpriv/xpub).

Code:
from cryptotools import Xprv
from cryptotools.BTC.opcodes import ADDRESS

prv = Xprv.decode('xprv9s21ZrQH143K38bNJiHY54kkjio8o6aw3bRjCbzi8KgRxNy98avUribz1wk85ToSUV2VwVuc73NJWc2YGwpMtqz7bBFUh9Q77RtJeuh2zvy')
prv.type = ADDRESS('P2WPKH')
prv.encode()
'zprvAWgYBBk7JR8GjiybyRrnVEwm5f62gLZvspUAmPnUtLSC4abbduFc6qvG4MfJ5H7HHmG7ST6j2N5QHBFfiLePVKMKKreKry35et1bS1HZYDu'

I've already found several very exciting solutions, but I haven't saved them in my browser and most of them I haven't tested or I don't know how to apply them correctly.

I'm new to Python and any other programming language, my knowledge is below basic, so my current knowledge is limited to be successful in what I want to test.

I'm looking for reliable libraries to learn how to use bitcoin scripts to generate addresses, wallets, seeds, xpriv, conversion tools, etc. But they need to be safe and tested by the community, that's okay, I'm not really going to put my money there, just for learning purposes.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
Mia Chloe
Sr. Member
****
Offline Offline

Activity: 350
Merit: 513


Math + Code = Blockchain 😁


View Profile
March 08, 2024, 05:14:38 PM
 #2

Here is a post by 1miau and jean luc on how to create customized Bitcoin addresses.


Both are open source scripts and also available on GitHub.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
MΞTAWIN  THE FIRST WEB3 CASINO██████
██
██
██
██
██
██
██

██

██

██

██

██████
.
 PLAY NOW 
██████
██
██
██
██
██
██
██

██

██

██

██

██████
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!