Skip to main content

eddsa

Function eddsa 

Source
pub fn eddsa(request: Value, secret: Value, _curve: Value) -> Value
Expand description

eddsa(request, secret, curve) — Ed25519 signature, mirroring ts/src/base/functions/crypto.ts. request is the message (already-bytes Value::Arr as produced by encode(...), or a hex/utf8 string); secret is either a 32-byte raw seed string or a base64/PEM PKCS#8 key (seed at DER offset 16). Returns the standard-base64 signature. Fails loudly (NotSupported panic) rather than returning an empty/invalid signature.