Skip to content

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 <laolu32@gmail.com>
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants