-
Notifications
You must be signed in to change notification settings - Fork 5.8k
bip-ec-ops: add initial draft #1945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
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 |
There was a problem hiding this comment.
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?
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.