Difference between revisions of "Digital signatures in Bitcoin"

 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The [https://bitcoinsv.io/bitcoin.pdf Bitcoin whitepaper] describes an electronic coin as a chain of digital signatures. These digital signatures confer practical control, and in most cases, ownership over the coins held in any given script, and can be used as a record of custodial control to trace transfers of control back through the history of the ledger.
+
The Bitcoin whitepaper describes an electronic coin as a chain of digital [[signatures]]. These digital signatures confer practical control, and in most cases, ownership over the coins held in any given script, and can be used as a record of custodial control to trace transfers of control back through the history of the ledger.
  
 
[[File:Chain_of_Signatures.png|frame|centre|alt=Electronic coins are defined as a chain of digital signatures]]
 
[[File:Chain_of_Signatures.png|frame|centre|alt=Electronic coins are defined as a chain of digital signatures]]
  
A digital signature isn't merely a message signed using a given keypair, but is a link to an identity. The European Union legislation on Digital Signatures states that signatures correspond to “data in electronic form which are attached to or logically associated with other electronic data and which serve as a method of authentication”. For more information, see [https://craigwright.net/blog/law-regulation/how-digital-signatures-work/ this article] from Dr Craig Wright.
+
A digital signature isn't merely a message signed using a given keypair, but is a link to an identity. The European Union legislation on digital signatures states that signatures correspond to “data in electronic form which are attached to or logically associated with other electronic data and which serve as a method of authentication”. For more information, see [https://craigwright.net/blog/law-regulation/how-digital-signatures-work/ this article] from Dr Craig Wright.
  
 
Bitcoin script allows users to lock/unlock their bitcoin in different ways.
 
Bitcoin script allows users to lock/unlock their bitcoin in different ways.
  
 
==Elliptical Curve Digital Signature Algorithm (ECDSA) ==
 
==Elliptical Curve Digital Signature Algorithm (ECDSA) ==
[[Elliptic Curve Digital Signature Algorithm]] is the most commonly used signature type in Bitcoin. It makes use of the elliptic curve cryptography keypairs referenced in [[Address|Bitcoin addresses]] to generate secure signatures from a given message hash.
+
[[Elliptic Curve Digital Signature Algorithm]] is the most commonly used signature type in Bitcoin. It makes use of the elliptic curve cryptography keypairs referenced in [[Bitcoin address|Bitcoin addresses]] to generate secure signatures from a given message hash.
  
 
Using Bitcoin Script, it is possible to create novel systems that use elliptical curve digital signatures, including [[R-Puzzles]], [[multisignature scripts]] and [[Threshold Signatures]].
 
Using Bitcoin Script, it is possible to create novel systems that use elliptical curve digital signatures, including [[R-Puzzles]], [[multisignature scripts]] and [[Threshold Signatures]].
  
 
==Threshold Signatures==
 
==Threshold Signatures==
There have also been practical implementations of [[Threshold Signatures]] in Bitcoin wallets and libraries which extend Elliptic Curve signatures to enable multiple parties to participate in the creation of a signature created from a private key that is never explicitly calculated or existed. When used in a transaction, a Threshold Signature is no different to a normal ECDSA signature and can be validated using [[OP_CHECKSIG]] and related signature check opcodes.
+
There have also been practical implementations of [[Threshold Signatures]] in Bitcoin wallets and libraries, which extend Elliptic Curve signatures to enable multiple parties to participate in the creation of a signature, created from a private key that is never explicitly calculated or previously existed. When used in a transaction, a Threshold Signature is no different to a normal ECDSA signature and can be validated using [[OP_CHECKSIG]] and related signature check opcodes.
  
 
==Rabin Signatures==
 
==Rabin Signatures==
To counter a push for the insertion of opcodes to evaluate data from outside the Bitcoin ledger, researchers at nChain have begun developing methods of validating [https://nchain.com/app/uploads/2018/09/Rabin-Signatures-in-Bitcoin-Cash-v2.pdf Rabin signatures] in Bitcoin script. These signatures could theoretically allow for data collected outside the BSV ledger to be evaluated and signed allowing oracle functionality within Bitcoin transactions.
+
Researchers at nChain have begun developing methods of validating [https://nchain.com/app/uploads/2018/09/Rabin-Signatures-in-Bitcoin-Cash-v2.pdf Rabin signatures] in Bitcoin script. These signatures could theoretically allow for data collected outside the Bitcoin SV ledger to be evaluated and signed, allowing [[oracle]] functionality within Bitcoin transactions.
 
Currently no practical implementation of a Rabin signature in Bitcoin Script exists.
 
Currently no practical implementation of a Rabin signature in Bitcoin Script exists.

Latest revision as of 12:05, 5 June 2024

The Bitcoin whitepaper describes an electronic coin as a chain of digital signatures. These digital signatures confer practical control, and in most cases, ownership over the coins held in any given script, and can be used as a record of custodial control to trace transfers of control back through the history of the ledger.

Electronic coins are defined as a chain of digital signatures

A digital signature isn't merely a message signed using a given keypair, but is a link to an identity. The European Union legislation on digital signatures states that signatures correspond to “data in electronic form which are attached to or logically associated with other electronic data and which serve as a method of authentication”. For more information, see this article from Dr Craig Wright.

Bitcoin script allows users to lock/unlock their bitcoin in different ways.

Elliptical Curve Digital Signature Algorithm (ECDSA)

Elliptic Curve Digital Signature Algorithm is the most commonly used signature type in Bitcoin. It makes use of the elliptic curve cryptography keypairs referenced in Bitcoin addresses to generate secure signatures from a given message hash.

Using Bitcoin Script, it is possible to create novel systems that use elliptical curve digital signatures, including R-Puzzles, multisignature scripts and Threshold Signatures.

Threshold Signatures

There have also been practical implementations of Threshold Signatures in Bitcoin wallets and libraries, which extend Elliptic Curve signatures to enable multiple parties to participate in the creation of a signature, created from a private key that is never explicitly calculated or previously existed. When used in a transaction, a Threshold Signature is no different to a normal ECDSA signature and can be validated using OP_CHECKSIG and related signature check opcodes.

Rabin Signatures

Researchers at nChain have begun developing methods of validating Rabin signatures in Bitcoin script. These signatures could theoretically allow for data collected outside the Bitcoin SV ledger to be evaluated and signed, allowing oracle functionality within Bitcoin transactions. Currently no practical implementation of a Rabin signature in Bitcoin Script exists.