[#SerializeHDKeypaths]
= SerializeHDKeypaths
:mrdocs:

Serialize a map of HD keypaths to a stream under the given key type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Stream&gt;
void
SerializeHDKeypaths(
    Stream& s,
    std::map&lt;CPubKey, KeyOriginInfo&gt; const& hd&lowbar;keypaths,
    xref:CompactSizeWriter.adoc[CompactSizeWriter] type);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The output stream&period;
| *hd&lowbar;keypaths*
| The public&hyphen;key&hyphen;to&hyphen;keypath map to serialize&period;
| *type*
| The map key type byte to write for each entry&period;
|===


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