[#CKey-EllSwiftCreate]
= xref:CKey.adoc[CKey]::EllSwiftCreate
:relfileprefix: ../
:mrdocs:

Create an ellswift&hyphen;encoded public key for this key, with specified entropy&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EllSwiftPubKey.adoc[EllSwiftPubKey]
EllSwiftCreate(std::span&lt;std::byte const&gt; entropy) const;
----

== Description

entropy must be a 32&hyphen;byte span with additional entropy to use in the encoding&period; Every public key has &#126;2&circ;256 different encodings, and this function will deterministically pick one of them, based on entropy&period; Note that even without truly random entropy, the resulting encoding will be indistinguishable from uniform to any adversary who does not know the private key (because the private key itself is always used as entropy as well)&period;

== Return Value

The ellswift&hyphen;encoded public key for this private key&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *entropy*
| A 32&hyphen;byte span of additional entropy used to pick the encoding&period;
|===


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