[#TaggedHash]
= TaggedHash
:mrdocs:

Return a HashWriter primed for tagged hashes (as specified in BIP 340)&period;

== Synopsis

Declared in `&lt;hash&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:HashWriter.adoc[HashWriter]
TaggedHash(std::string const& tag);
----

== Description

The returned object will have SHA256(tag) written to it twice (&equals; 64 bytes)&period; A tagged hash can be computed by feeding the message into this object, and then calling HashWriter&colon;&colon;GetSHA256()&period;

== Return Value

A HashWriter primed with the tag hash&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tag*
| The tag string that identifies the hash domain&period;
|===


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