<blockquote>
  <p>In building a raw transaction how is the base64 format of a signature incorporated into the transaction. </p>
</blockquote>

<p>It's not, there's no base64 representation of signatures used in Bitcoin consensus or transactions.</p>

<p>Message signing using P2PKH with <code>signmessage</code> in Bitcoin Core and other tools uses a feature of ECDSA which was re-discovered <a href="https://bitcointalk.org/index.php?topic=6430.0" rel="nofollow noreferrer">after the creation of the software</a> called pubkey recovery, this is frequently but not always encoded as base64 as a human compatible representation. It is not used anywhere else. </p>

<blockquote>
  <p>one DER format </p>
</blockquote>

<p>The original releases of Bitcoin effectively used ASN.1 BER, and this was reduced to a strict definition of DER in <a href="https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki" rel="nofollow noreferrer">BIP66</a>. In effect we don't use ASN.1 all, but a very restricted subset of it due to consensus issues surrounding using a lengthy, poorly defined, and malleable specification. </p>

<blockquote>
  <p>I really don't understand why there is a move to make a currency so complex when the original intention was for it to alleviate the economic pain and hardship on earth. </p>
</blockquote>

<p>Your misunderstanding of Bitcoin is hubris, not unnecessary complexity. </p>

CC BY-SA 4.0
2019-10-08T00:06:08.303Z
My understanding of what's going on with Bitcoin is right on target. That's why many other cryptos have come up. I just started researching Bitcoin a few months ago and it only took a couple of weeks to figure out that Bitcoin has been turned into something other than what it was initially intended to be.
SueBee
CC BY-SA 4.0
2019-10-08T00:06:19.990Z
@PeterWuille thank you for the explanation.
SueBee
CC BY-SA 4.0
2019-10-08T00:09:11.473Z
It’s not, you’re just incompetent and projecting.
Claris
CC BY-SA 4.0
2019-10-14T16:21:39.130Z
That's projected back to you!!!Why don't you stop hiding behind anonymity - be real. You must be the main one behind keeping bitcoin from the masses.
SueBee
CC BY-SA 4.0
2019-10-14T16:22:26.193Z
I’m respected without needing an identity.
Claris
CC BY-SA 4.0
2019-10-06T16:46:10.193Z
2019-10-06T16:46:10.193Z
Claris
<p>I understand that there are two types of signatures, one DER format and another a compact type signature which includes a base64 format. In building a raw transaction how is the base64 format of a signature incorporated into the transaction. I know how to incorporate a DER encoded signature but need some help with a base64 formatted signature. Can someone suggest a python or javascript library that handles base64 signatures in building a transaction?</p>

<transactions>
use of base64 signature in a transaction
SueBee
# use of base64 signature in a transaction

(Asked by: username_0 on 2019-10-06)

I understand that there are two types of signatures, one DER format and another a compact type signature which includes a base64 format. In building a raw transaction how is the base64 format of a signature incorporated into the transaction. I know how to incorporate a DER encoded signature but need some help with a base64 formatted signature. Can someone suggest a python or javascript library that handles base64 signatures in building a transaction?

**Tags:** transactions


---

## 1 answers

### Answer by username_1 on 2019-10-06. Score: 1

> In building a raw transaction how is the base64 format of a signature incorporated into the transaction.

It's not, there's no base64 representation of signatures used in Bitcoin consensus or transactions.

Message signing using P2PKH with `signmessage` in Bitcoin Core and other tools uses a feature of ECDSA which was re-discovered [after the creation of the software](https://bitcointalk.org/index.php?topic=6430.0) called pubkey recovery, this is frequently but not always encoded as base64 as a human compatible representation. It is not used anywhere else.

> one DER format

The original releases of Bitcoin effectively used ASN.1 BER, and this was reduced to a strict definition of DER in [BIP66](https://github.com/bitcoin/bips/blob/master/bip-0066.mediawiki). In effect we don't use ASN.1 all, but a very restricted subset of it due to consensus issues surrounding using a lengthy, poorly defined, and malleable specification.

> I really don't understand why there is a move to make a currency so complex when the original intention was for it to alleviate the economic pain and hardship on earth.

Your misunderstanding of Bitcoin is hubris, not unnecessary complexity.

> **Comments:**
> **username_0**: My understanding of what's going on with Bitcoin is right on target. That's why many other cryptos have come up. I just started researching Bitcoin a few months ago and it only took a couple of weeks to figure out that Bitcoin has been turned into something other than what it was initially intended to be.  
> **username_0**: @PeterWuille thank you for the explanation.  
> **username_1**: It’s not, you’re just incompetent and projecting.  
> **username_0**: That's projected back to you!!!Why don't you stop hiding behind anonymity - be real. You must be the main one behind keeping bitcoin from the masses.  
> **username_1**: I’m respected without needing an identity.  

---

