Skip to content

BIP draft: Elliptic Curve Operations for Bitcoin Script#1945

Open
Roasbeef wants to merge 9 commits intobitcoin:masterfrom
Roasbeef:ec-ops-bip
Open

BIP draft: Elliptic Curve Operations for Bitcoin Script#1945
Roasbeef wants to merge 9 commits intobitcoin:masterfrom
Roasbeef:ec-ops-bip

Conversation

@Roasbeef
Copy link
Contributor

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.

Copy link
Member

@jonatack jonatack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks quite complete.


# Copyright

This document is licensed under the 3-clause BSD license.
Copy link
Member

@jonatack jonatack Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member

@jonatack jonatack Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should OP_EC_POINT_NEGATE be in this list?

@murchandamus
Copy link
Member

@Roasbeef: Are you still working on this?

@murchandamus murchandamus changed the title bip-ec-ops: add initial draft BIP draft: Elliptic Curve Operations for Bitcoin Script Feb 28, 2026
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@murchandamus murchandamus added the PR Author action required Needs updates, has unaddressed review comments, or is otherwise waiting for PR author label Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New BIP PR Author action required Needs updates, has unaddressed review comments, or is otherwise waiting for PR author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants