Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [message-signing]

Functionality for proving a message was sent by the holder of a particular private key. The standard Bitcoin client provides this features since version 0.6.0

2
votes
1answer
43 views

How to determine first byte (recovery ID) for signatures (message signing)?

I do realize that in bitcoin when we return the signature result for signing a message the first byte includes information for recovering the public key required for verification using a formula like ...
3
votes
1answer
168 views

How is Public Key extracted from (message, digital signature, address)

I'm under the impression that a public key is revealed when you sign a message. Given these 3 inputs. P2PKH Address, Digital Signature, Message. Is the public key exposed? If so, how do you extract ...
0
votes
1answer
41 views

Signature generation

I am trying to unwrap bitcoin transaction generation process. A bit confused about signing part. My understanding is the transaction is sha256'd, then sha256'd one more time, then ECDSA'd. Based ...
1
vote
1answer
56 views

How does a Doge public key is created from a private key?

I am looking for the differences between the creation of Doge public keys and Bitcoin public keys when inserting a private key. I am trying to make a small web-app that signs messages. There are a ...
0
votes
1answer
132 views

Unable to validate a signed message from Ledger

Using Ledger Nano S you can sign a message, either through the UI (which is a Google Chrome app) or through Javascript by calling Ledger.signMessage as specified here. Using this, I get the following ...
4
votes
1answer
775 views

Schnorr vs ECDSA

I understand that Schnorr signatures provide an improvement on ECDSA in that they are a fixed 64 bytes instead of the longer ECDSA sig format, however, I don't see how this is an advantage over ECDSA ...
2
votes
2answers
156 views

Is It Possible to Prove Ownership of Public Key Hash without Public Key?

I am building a system where I would like the user to specify a public key hash of a wallet that they have control over in the event of tips, refunds, and/or otherwise needing to send value back to ...
0
votes
0answers
58 views

How do I import a wallet into Bitcoin core? [duplicate]

I have the public address, and the private key of a BTC wallet. How can I import this into bitcoin core so that I can use it to sign messages? I need to be able to sign a message to show that I ...
0
votes
0answers
45 views

What is a simple way to sign a message to verify that you possess the private key for a specific public address?

I need to explain to somebody step by step how to go through the process of signing a message to verify they own the private keys associated with an address containing funds. This is to ensure ...
0
votes
2answers
290 views

How can I sign message for a blockchain watch only bitcoin address

I have to verify sign message for one of my blockchain bitcoin address. I couldn't find sign message or private key option in More Options beside all my bitcoin addresses. I thought maybe I have to ...
0
votes
3answers
148 views

What are the realistic system requirements to run bitcoin core for generating wallets, signing and verifying messages on a laptop?

I need to be able to verify messages and check that funds in wallets are valid and that the claimed owner possesses the private keys (hence checking messages signed). I know that I need to be able ...
4
votes
1answer
101 views

How can I verify someone controls the private key behind a segwit address?

With a legacy P2PKH address, signmessage and verifymessage can be used to verify that the other party actually controls the bitcoin address in question. However, P2SH, P2WPKH and P2WSH addresses throw ...
1
vote
1answer
141 views

How do I get my private key?

Background I saw this on the internet I didn't think signing / verifying was possible with P2SH addresses, so I guess this wallet must be using something like signmessagewithprivkey ¯\_(ツ)_/¯ ...
0
votes
2answers
115 views

Using BitcoinJS - How do you verify a message using a segwit bech32 (bc1…) / P2SH (3…) addresses?

I created a signature from a message using my private key. But how do I verify this signed message using my segwit addresses of 3... or bc1...? How do I verify this using the BitcoinJS library?
0
votes
2answers
125 views

What is the command to sign a message using a segwit private key using electrum 3?

I want to sign and verify a message using a segwit private key that i generated with another application. How can I sign and verify a message using electrum 3 cli?
1
vote
1answer
75 views

Explicit message length in Bitcoin Signed message

the message format is: length(prefix),prefix,length(message),message with prefix="Bitcoin Signed Message:\n" now I am wondering why the length(message) in the middle is needed as it should be able ...
1
vote
1answer
74 views

Why are miners allowed to change a tx id?

BIP 62 proposed to make transaction malleability impossible. Why was this retracted and why are miners allowed to change a transaction id? Also, what does it mean when someone says signatures ...
0
votes
1answer
30 views

What are some uses of a signed crytocurrency message in a product or service or some other useful use of this feature?

A signed message is a way to prove a user owns an address. But what are some useful products or services that have been built around this feature with signing a bitcoin / altcoin message with their ...
1
vote
1answer
326 views

message signing: is it safe to publish the address, message and hash

I want to use message signing in another application to prove a particular wallet owner did in fact make the transaction. This as I understand it is what message signing/verification is for. I just ...
0
votes
3answers
1k views

What is wrong with my ScriptSig? I get 64: scriptsig-not-pushonly

I currently try to create and sign transaction from scratch. I made it to construct and sign a transaction. If I verify it manually it looks good but using a "proper" wallet my transaction is refused: ...
1
vote
1answer
75 views

Why the signature of the same message changes in some wallets, but not all?

Using the "message signing" feature in the Bitcoin and Dash it's static with the same message. Signing the same message with the same private key will result always in the same signature. This ...
2
votes
1answer
418 views

How to tell which part of the previous tx I need to make the hash to sign for an old given tx?

I have recently been taught (here) how to create the hash to sign for a given "input script" for an existing transaction. I then sought to test my abilities and sought out a difficult transaction to ...
0
votes
1answer
995 views

How can I sign a message with a litecoin private key and also generate a litecoin address from a string?

I'm working with bitcoinjs, but is there a litecoinjs equivalent? I want to be able to sign and verify messages with my litecoin private key and also generate litecoin addresses from a string. How ...
2
votes
3answers
15k views

online tool to play around with ECDSA public keys, message signature verification?

I realize that this question may be borderline bannable because it's asking for suggestions on tools, but it will really help newbies. This online tool allowed me to play around with hashes and to ...
0
votes
1answer
38 views

How can one sign a message to prove ownership of a BIP47 reusable payment code?

Is there a way to sign a message and prove that an entity owns a BIP47 reusable payment code? How can this be done via js if available?
2
votes
0answers
34 views

Proving sendership of transactions

Why does Bitcoin Core, on the message verification tab, say that verifying messages signed by Bitcoin addresses "only proves the signing party receives with the address, it cannot prove sendership of ...
5
votes
1answer
700 views

how do you sign and verify a message that you own a bitcoin address using javascript?

Is there a bitcoin library or even just pure javascript way of signing and verifying you own a btc address?
7
votes
1answer
240 views

OP_CHECKSIG: reasoning behind construction of message to be signed

I've closely studied the deservedly famous OP_CHECKSIG explanation found here, including the diagram found here. That explanation details how to construct the message that is signed via ECDSA, ...
3
votes
1answer
315 views

I'm trying to create a new kind of escrow with bitcoin, not sure if it's possible

First off, I understand that the standard way to do escrow with bitcoin is a P2SH with a 2 of 3 multisig redeem script. I'd like to try and do escrow in the following way: names of 3 parties involved:...
5
votes
1answer
338 views

Best simple linux cmd tool for offline transaction creation and signing?

I tried to use sx, but it no longer works since bip62 (malleability fix). Nodes don't accept generated transactions, saying "high S signature". What offline command-line tool would be the best?
9
votes
1answer
390 views

Legal status of Blockchain proof-of-existence TX (USA court)

Is there any real USA court cases with Bitcoin's Blockchain used as an proof-of-existence/timestamp service (without BTC transfer)? Can Bitcoin's Blockchain be used as a 'signing' utility same as ...
1
vote
1answer
112 views

Can I sign a message with an Open-PGP key?

I want to prove that I control an address for asset verification. To lawyers that might not even know what a blockchain is. Signing using the private key of an address does nothing for me, as it ...
3
votes
1answer
343 views

How to calculate signature generation, signature verification, transaction verification speed?

I read this post on Bitcoin Scalability. As far as I understand sequence of steps in Bitcoin, simplified version of performing transaction should be following: On Sender's side: Create transaction ...
4
votes
2answers
1k views

Where is the public key corresponding to my address stored?

Some simplified explanations of Bitcoin say, that the Bitcoin address is the public key, and anybody can easily verify that a signed transaction is valid since it was signed with corresponding private ...
1
vote
1answer
203 views

Can you include a signature in a bitcoin payment?

I know you can use the bitcoin client to sign messages (for which you own the private key) and verify messages from other public addresses. But can you actually embed a signed message into a ...
1
vote
1answer
693 views

Why does the standard Bitcoin message signature include a “magic prefix?” [duplicate]

The standard Bitcoin message signature works as follows: sign(sha256(magicPrefix . length(message) . message)) The "magic prefix" is simply the string '\x18Bitcoin Signed Message:\n', where 0x18 is ...
2
votes
2answers
158 views

For what purposes do we need “Sign message”?

I got a simple but straight question: Why do we need "Sign message". Also give explanations and examples.
0
votes
2answers
205 views

What is the strMessageMagic good for?

The bitcoin message magic, "Bitcoin Signed Message:\n", is defined: https://github.com/bitcoin/bitcoin/blob/203632d20b3107009f45fae56cc3f7d828b16660/src/main.cpp#L80 I know it is used as a part of ...
1
vote
1answer
939 views

How can I sign a message with a multi signature address?

I want to use message signing to prove control of a multi signature Bitcoin address. Is it possible? In theory it must be. In practice, are there any Bitcoin wallets that allow this? Specifically, how ...
2
votes
0answers
53 views

How can one prove the ownership of an address? [duplicate]

Is there a way to prove the ownership of an address without spending bitcoins? I Imagine something like signing some given data with the private key - how much would that weaken the security of the ...
4
votes
1answer
138 views

How can I prove control of HD wallet through message signing?

If I sign a message with one of the address from an HD wallet, does that prove control over the rest of the addresses created and will be created inside that HD wallet?
2
votes
2answers
143 views

Is it possible to do a digital charge on delivery (COD)?

I'm exploring having a bitcoin (or any blockchain) backed a distributed secure messaging system. This is a peer to peer network that would pay for transport. In essence, it's the wild west, your key ...
0
votes
2answers
531 views

How do bitcoin qt sign signature/messages work? [duplicate]

In bitcoinQT what is the sign message for? I'm not exactly sure what I can use this for. can someone give an example of how this would be used in a layman way? nothing too technical please. also ...
2
votes
1answer
389 views

How to verify signed bitcoin messages on my own website?

On my website, I want to be able to verify that messages are signed by a certain bitcoin address, similar to how it's done here. From my research it seems I have to use JSON RPC with some sort of ...
2
votes
1answer
117 views

Does a transaction have multiple signatures

In the question "Is there a way to prove ownership of a transaction?" the statement was made "A (regular) transaction must be signed with the private keys of the addresses of all the inputs". Does ...
5
votes
2answers
5k views

How do signatures work?

Just curious, if I send a transaction from one address to another, how do they verify it without knowing my private key?
5
votes
2answers
3k views

How to sign a message using Bitcoin private key?

How does one create a proper signature for a given message using Bitcoin private keys? I have an input address of 5JeWZ1z6sRcLTJXdQEDdB986E6XfLAkj9CgNE4EHzr5GmjrVFpf or ...
0
votes
1answer
55 views

Would it be possible to make Trophys / Achievements from bitcoin experience

One Trophy could be: "First output signed" And many more milestones on the road to the more advanced usages of the network: "First multisign/multispend", "First completed ANYONECANPAY transaction" ...
0
votes
1answer
109 views

is it currently possible in the Bitcoin blockchain to send coins to an address only after two parties sign messages signaling the funds to be released

Like the question states, is it currently possible in the Bitcoin blockchain to send coins to an address, but have the transaction written into a block or validated only after two parties sign ...
16
votes
1answer
8k views

Why the signature is always 65 (1+32+32) bytes long?

A signature created by the Bitcoin-Qt client can always be decoded (base64) to a 65-byte array. This array seems (according to https://github.com/bitcoin/bitcoin/blob/master/src/key.cpp#L217) to ...