[#CountWitnessSigOps]
= CountWitnessSigOps
:mrdocs:

Count the signature operations contributed by a witness spend&period;

== Synopsis

Declared in `&lt;script&sol;interpreter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
CountWitnessSigOps(
    xref:CScript.adoc[CScript] const& scriptSig,
    xref:CScript.adoc[CScript] const& scriptPubKey,
    xref:CScriptWitness.adoc[CScriptWitness] const& witness,
    xref:script_verify_flags.adoc[script&lowbar;verify&lowbar;flags] flags);
----

== Return Value

The number of accounted signature operations&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *scriptSig*
| The input&apos;s signature script&period;
| *scriptPubKey*
| The output script being spent&period;
| *witness*
| The input&apos;s witness stack&period;
| *flags*
| The active script verification flags&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
