mtx::crypto::PkSigning struct

Helper to sign arbitrary messages using an ed25519 key.

Public static functions

static auto from_seed(const std::string& seed) -> PkSigning
Construct from base64 key.
static auto new_key() -> PkSigning
construct a new random key

Public functions

auto sign(const std::string& message) -> std::string
sign an arbitrary message
auto public_key() const -> std::string
base64 public key
auto seed() const -> std::string
base64 private key (seed)