[#CKey-EllSwiftCreate] = xref:CKey.adoc[CKey]::EllSwiftCreate :relfileprefix: ../ :mrdocs: Create an ellswift‐encoded public key for this key, with specified entropy. == Synopsis Declared in `<key.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:EllSwiftPubKey.adoc[EllSwiftPubKey] EllSwiftCreate(std::span<std::byte const> entropy) const; ---- == Description entropy must be a 32‐byte span with additional entropy to use in the encoding. Every public key has ~2ˆ256 different encodings, and this function will deterministically pick one of them, based on entropy. 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). == Return Value The ellswift‐encoded public key for this private key. == Parameters [cols="1,4"] |=== | Name| Description | *entropy* | A 32‐byte span of additional entropy used to pick the encoding. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#