[#CPubKey-Serialize]
= xref:CPubKey.adoc[CPubKey]::Serialize
:relfileprefix: ../
:mrdocs:

Implement serialization, as if this was a byte vector&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Stream&gt;
void
Serialize(Stream& s) const;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The output stream to write to&period;
|===


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