Skip to content

BIP draft: Elliptic Curve Operations for Bitcoin Script - #1945

Closed
Roasbeef wants to merge 9 commits into
bitcoin:masterfrom
Roasbeef:ec-ops-bip
Closed

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

Conversation

@Roasbeef

Copy link
Copy Markdown
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.

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks quite complete.

Comment thread bips-ec-ops.md

# Copyright

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

@jonatack jonatack Aug 25, 2025

Copy link
Copy Markdown
Member

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.

Comment thread bips-ec-ops.md
Title: Elliptic Curve Operations for Bitcoin Script
Author: Olaoluwa Osuntokun <laolu32@gmail.com>
Comments-Summary: X
Comments-URI: X

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

Comment thread bips-ec-ops.md

## Abstract

This document specifies a series of Elliptic Curve opcodes for secp256k1. These

@jonatack jonatack Aug 25, 2025

Copy link
Copy Markdown
Member

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")

Comment thread bips-ec-ops.md
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
Copy Markdown
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
Copy Markdown
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 thread bips-ec-ops.md
Comment on lines +2 to +12
BIP: ???
Layer: Consensus (soft fork)
Title: Elliptic Curve Operations for Bitcoin Script
Author: Olaoluwa Osuntokun <laolu32@gmail.com>
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
Copy Markdown
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 <laolu32@gmail.com>
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 <laolu32@gmail.com>
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
@murchandamus

Copy link
Copy Markdown
Member

I’m going to close this PR, because it has had unaddressed review for almost nine months. Please feel free to reopen it, if you are still working on it, @Roasbeef.

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