| 239 | } |
| 240 | |
| 241 | bool 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. |