<p>Depending on the language you are using, there are several libraries you can use to sign a pre-made raw transaction.</p>

<p>I use Python, so one that I found quite intuitive and easy to use is the old <a href="https://github.com/vbuterin/pybitcointools" rel="nofollow noreferrer">vButerin's Bitcoin tools</a>. The code is no longer supported, but it could be helpful.</p>

<p>Moreover, I've personally developed some tools to help people understand how Bitcoin transactions are created, what are their parts in the transaction serialization and how can they be created from scratch. There are publicly available on <a href="https://github.com/sr-gi/bitcoin_tools" rel="nofollow noreferrer">GitHub</a> also. The library is intended to teach, so maybe you could use the comments to understand how to do what you asked.</p>

CC BY-SA 3.0
2017-02-28T16:22:48.343Z
2017-02-28T16:22:48.343Z
sr_gi
<p>I am trying to develop a program which can create a transaction from scratch and use a private key to sign it. The idea behind is an open wallet where users each has its own private key and the wallet prepare the transaction (amount, destination..) and the user sign it before the open wallet send it.</p>

<p>Thank you</p>

<bitcoin-core><wallet>
Sign transaction out wallet
Arslan Smal
# Sign transaction out wallet

(Asked by: username_0 on 2017-02-28)

I am trying to develop a program which can create a transaction from scratch and use a private key to sign it. The idea behind is an open wallet where users each has its own private key and the wallet prepare the transaction (amount, destination..) and the user sign it before the open wallet send it.

Thank you

**Tags:** bitcoin-core, wallet


---

## 1 answers

### Answer by username_1 on 2017-02-28. Score: 0 | Accepted answer

Depending on the language you are using, there are several libraries you can use to sign a pre-made raw transaction.

I use Python, so one that I found quite intuitive and easy to use is the old [vButerin's Bitcoin tools](https://github.com/vbuterin/pybitcointools). The code is no longer supported, but it could be helpful.

Moreover, I've personally developed some tools to help people understand how Bitcoin transactions are created, what are their parts in the transaction serialization and how can they be created from scratch. There are publicly available on [GitHub](https://github.com/username_1/bitcoin_tools) also. The library is intended to teach, so maybe you could use the comments to understand how to do what you asked.


---

