Return the maximum size in bytes of a witness to satisfy this script non-malleably. Note this does * not include the witness script push. */
| 1609 | /** Return the maximum size in bytes of a witness to satisfy this script non-malleably. Note this does |
| 1610 | * not include the witness script push. */ |
| 1611 | std::optional<uint32_t> GetWitnessSize() const { |
| 1612 | if (!ws.sat.Valid()) return {}; |
| 1613 | return ws.sat.Value(); |
| 1614 | } |
| 1615 | |
| 1616 | //! Return the expression type. |
| 1617 | Type GetType() const { return typ; } |