# OP\_CHECKSIGFROMSTACKVERIFY ECDSA useful?

**URL:** <https://delvingbitcoin.org/t/op-checksigfromstackverify-ecdsa-useful/438>\
**Category:** Protocol Design\
**Created:** [January 19, 2024, 5:50am UTC](https://delvingbitcoin.org/t/op-checksigfromstackverify-ecdsa-useful/438 "2024-01-19T05:50:08Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![harding](https://delvingbitcoin.org/user_avatar/delvingbitcoin.org/harding/32/925_2.png) [@harding](https://delvingbitcoin.org/u/harding)\
**Post date:** [January 25, 2024, 10:41pm UTC](https://delvingbitcoin.org/t/op-checksigfromstackverify-ecdsa-useful/438/5 "2024-01-25T22:41:35Z")

</div>

Re: ECDSA for allowing a type of proof of work via DER encoding. I think a naive implementation of that could suffer from several gotchas, e.g. see:

- [Half a puzzle](https://web.archive.org/web/20161101112330/https://www.blockstream.com/half-a-puzzle/)
- [The most repeated R value on the blockchain](https://bitcointalk.org/index.php?topic=1118704)

I think it could be made safe, but you’d probably want a serious cryptographer to spend a significant amount of time thinking about it before any serious money was committed to any contract depending on that feature.

If there’s significant demand for PoW-based contracts in tapscript, I think it’d be better in almost every way to enable opcodes that allow verifying SHA2-based PoW.

---

_[View the full topic](https://delvingbitcoin.org/t/op-checksigfromstackverify-ecdsa-useful/438)._
