BIP draft: Elliptic Curve Operations for Bitcoin Script#1945
Open
Roasbeef wants to merge 9 commits intobitcoin:masterfrom
Open
BIP draft: Elliptic Curve Operations for Bitcoin Script#1945Roasbeef wants to merge 9 commits intobitcoin:masterfrom
Roasbeef wants to merge 9 commits intobitcoin:masterfrom
Conversation
jonatack
reviewed
Aug 25, 2025
|
|
||
| # Copyright | ||
|
|
||
| This document is licensed under the 3-clause BSD license. |
Member
There was a problem hiding this comment.
Duplicate Copyright section with the one at lines 28-30, can remove one of the two.
| Title: Elliptic Curve Operations for Bitcoin Script | ||
| Author: Olaoluwa Osuntokun <[email protected]> | ||
| Comments-Summary: X | ||
| Comments-URI: X |
Member
There was a problem hiding this comment.
Comments-Summary: No comments yet.
Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-TBD
|
|
||
| ## Abstract | ||
|
|
||
| This document specifies a series of Elliptic Curve opcodes for secp256k1. These |
Member
There was a problem hiding this comment.
Suggest listing the new opcodes here.
Suggested change
| This document specifies a series of Elliptic Curve opcodes for secp256k1. These | |
| This document specifies a series of Elliptic Curve opcodes for secp256k1: `OP_EC_POINT_ADD`, `OP_EC_POINT_MUL`, `OP_EC_POINT_NEGATE`, and `OP_EC_POINT_X_COORD`. These |
(nit, use consistent spelling of "opcode" or "op code" in this document -- I prefer "opcode")
| Script size. | ||
|
|
||
| With the addition of the `OP_EC_POINT_ADD`, `OP_EC_POINT_MUL`, and | ||
| `OP_EC_POINT_X_COORD` op codes (in concert with `OP_CAT`), a Bitcoin Script |
Member
There was a problem hiding this comment.
Should OP_EC_POINT_NEGATE be in this list?
Member
|
@Roasbeef: Are you still working on this? |
Comment on lines
+2
to
+12
| BIP: ??? | ||
| Layer: Consensus (soft fork) | ||
| Title: Elliptic Curve Operations for Bitcoin Script | ||
| Author: Olaoluwa Osuntokun <[email protected]> | ||
| Comments-Summary: X | ||
| Comments-URI: X | ||
| Status: Draft | ||
| Type: Standards Track | ||
| Created: 2025-08-22 | ||
| License: BSD-3-Clause | ||
| Requires: 340, 341, 342 |
Member
There was a problem hiding this comment.
Please update the preamble to conform with BIP3:
Suggested change
| BIP: ??? | |
| Layer: Consensus (soft fork) | |
| Title: Elliptic Curve Operations for Bitcoin Script | |
| Author: Olaoluwa Osuntokun <[email protected]> | |
| Comments-Summary: X | |
| Comments-URI: X | |
| Status: Draft | |
| Type: Standards Track | |
| Created: 2025-08-22 | |
| License: BSD-3-Clause | |
| Requires: 340, 341, 342 | |
| BIP: ? | |
| Layer: Consensus (soft fork) | |
| Title: Elliptic Curve Operations for Bitcoin Script | |
| Authors: Olaoluwa Osuntokun <[email protected]> | |
| Status: Draft | |
| Type: Specification | |
| Created: ? | |
| License: BSD-3-Clause | |
| Requires: 340, 341, 342 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this PR, we add a new draft BIP proposing the addition of fundamental Elliptic Curve op codes. Amongst other things, this series of op codes permits the computation of the top level Taproot output public key in Bitcoin Script. This enables a new flavor of on-chain state machines, in addition to many other use cases.