Produce a deterministic mock "signature" for the given message.
The signature is the hex encoding of message XOR privateKey — not cryptographically meaningful but deterministic and fast.
message XOR privateKey
Hex-encoded private key.
UTF-8 string or bytes to sign.
Hex-encoded mock signature.
import { mockSign, TEST_KEYS } from "@sebastienrousseau/crypto-testing";const sig = mockSign(TEST_KEYS.ed25519.privateKey, "sign me"); Copy
import { mockSign, TEST_KEYS } from "@sebastienrousseau/crypto-testing";const sig = mockSign(TEST_KEYS.ed25519.privateKey, "sign me");
Produce a deterministic mock "signature" for the given message.
The signature is the hex encoding of
message XOR privateKey— not cryptographically meaningful but deterministic and fast.