The signing algorithm, or 'none' for unsigned envelopes.
OptionalprivateEd25519 private key: 32-byte seed, 64-char hex seed, PEM, or KeyObject.
OptionalpublicOptional Ed25519 public key; must match privateKey when given.
OptionalsecretHMAC secret, at least 32 bytes (a string counts its UTF-8 bytes).
How envelopes are signed, passed to SetupOptions.signing.
siged25519privateKeyverifyEnvelope({ mode: 'ed25519', publicKey }, …)hmacsecretverifyEnvelope({ mode: 'hmac', secret }, …)noneRemarks
Keys are checked once, in Setup.run (or Signer.from), which throws
CRYPTOfor a missing or short HMAC secret, a missing or malformed Ed25519 private key, or a public key that does not match. The engine never falls back to unsigned envelopes. Prefer Ed25519 when verifiers should not be able to sign; HMAC when every verifier is trusted with the secret.Example