MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsPayToTaproot

Method IsPayToTaproot

src/script/script.cpp:241–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241bool CScript::IsPayToTaproot() const
242{
243 return (this->size() == 34 &&
244 (*this)[0] == OP_1 &&
245 (*this)[1] == 0x20);
246}
247
248// A witness program is any valid CScript that consists of a 1-byte push opcode
249// followed by a data push between 2 and 40 bytes.

Callers 1

SignPSBTInputFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected