[#BIP324Cipher-2constructor-037]
= xref:BIP324Cipher.adoc[BIP324Cipher]::BIP324Cipher
:relfileprefix: ../
:mrdocs:

Initialize a BIP324 cipher with specified key (testing only)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
BIP324Cipher(
    xref:CKey.adoc[CKey] const& key,
    xref:EllSwiftPubKey.adoc[EllSwiftPubKey] const& pubkey) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Our private key used for the ECDH key exchange&period;
| *pubkey*
| Our precomputed ElligatorSwift&hyphen;encoded public key&period;
|===


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