Bitcoin Forum
May 04, 2024, 10:59:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to sign a message with python code  (Read 77 times)
myfy (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 1


View Profile
April 25, 2024, 09:31:46 AM
 #1

hello

I want to send a transaction with python, but I can't sign rawtransaction.

I want to know which python library I need to learn.
1714863575
Hero Member
*
Offline Offline

Posts: 1714863575

View Profile Personal Message (Offline)

Ignore
1714863575
Reply with quote  #2

1714863575
Report to moderator
1714863575
Hero Member
*
Offline Offline

Posts: 1714863575

View Profile Personal Message (Offline)

Ignore
1714863575
Reply with quote  #2

1714863575
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714863575
Hero Member
*
Offline Offline

Posts: 1714863575

View Profile Personal Message (Offline)

Ignore
1714863575
Reply with quote  #2

1714863575
Report to moderator
1714863575
Hero Member
*
Offline Offline

Posts: 1714863575

View Profile Personal Message (Offline)

Ignore
1714863575
Reply with quote  #2

1714863575
Report to moderator
1714863575
Hero Member
*
Offline Offline

Posts: 1714863575

View Profile Personal Message (Offline)

Ignore
1714863575
Reply with quote  #2

1714863575
Report to moderator
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3472
Merit: 6120



View Profile
April 25, 2024, 09:46:29 AM
 #2

Bit[1] should do exactly what you're looking for. I have looked for other alternatives before, but I think Bit serve the purpose perfectly.

You can see the documentation here[2]. If you find that the documentation is a bit unclear, you can always use Chatgpt for some help.

[1] https://github.com/ofek/bit
[2] https://ofek.dev/bit/guide/transactions.html

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7464


Crypto Swap Exchange


View Profile
April 25, 2024, 10:02:29 AM
 #3

Please be more specific. If it's something you need to do one, have you tried using one of Bitcoin wallet software instead? What kind of transaction you need to sign? What kind of address (e.g. P2PKH and P2WPKH) used as input of the TX?

If you find that the documentation is a bit unclear, you can always use Chatgpt for some help.

Please stop suggesting that, without mentioning to double-check the result. It could be a way to lose access to your Bitcoin.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DifDrama
Jr. Member
*
Offline Offline

Activity: 33
Merit: 32


View Profile
April 26, 2024, 02:43:23 AM
 #4

BitcoinLib may be a good choice. Plenty of examples out there are capable to help you get the hang of it.

Here is the link: https://github.com/1200wd/bitcoinlib

punk.zink
Sr. Member
****
Offline Offline

Activity: 364
Merit: 373


trustdice.win (The Top of Crypto Casinos)


View Profile
April 26, 2024, 04:47:14 AM
 #5

hello

I want to send a transaction with python, but I can't sign rawtransaction.

I want to know which python library I need to learn.

I once made a tutorial, Create transactions in Python, but everything is presented in Bahasa Indonesia. But at least you can find out the modules and libraries that I use to make Bitcoin transactions, and you can also find what kind of script I use to sign the transaction.

https://bitcointalk.org/index.php?topic=5484019.msg63657542#msg63657542

███████████████████████████████▀▀▀▀
███████████████████████████████
█████████▀▀▀▀▀█▀█▀▀▀▀▀█████████
███▄▀▀▀   ▄▄▄▄   ▄▄▄▄   ▀▀▀▄███
███████▀▀▀████▌ ▐████▀▀▀███████
█████▀███▀█▀██▌ ▐██▀█▀███▀█████
███████▀▄▀▄███▌ ▐███▄▀▄▀███████
█████▄██▄██▄██   ██▄██▄██▄█████
███████▄▄▄████   ████▄▄▄███████
██████████▀▀▀▀   ▀▀▀▀██████████
██████████▄▄▄▄▄▄▄▄▄▄▄██████████
███████████████████████████████
███████████████████████████████▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
TRUST DICE
.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
█▀▀▀











█▄▄▄
#1 RATED CRYPTO
CASINO IN THE WORLD
██ ██ ██ ██ █Trustpilot
▀▀▀█











▄▄▄█
▄█████████████████████████████
██████████████████▀▀█████▀▀████
█████████████████▀█████████▀███
██████████████████████████████
███████████████████████████▄███
█████████████████████████▄▄████
███████████████████████████████
█████████████░░░███████████████
███████████░░░█████████████████
█████████░░████████████████████
█████░░░██████████████████████
███░░█████████████████████████
▀░░░█████████████████████████▀
█▀▀▀











█▄▄▄
▀▀▀█











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