Create an ellswift‐encoded public key for this key, with specified entropy.

Synopsis

Declared in <key.h>

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

Name

Description

entropy

A 32‐byte span of additional entropy used to pick the encoding.

Created with MrDocs