Request and builder Web3Signed authorization to encrypt.
Public key returned by GET /v1/identity?owner=.
Injected ECIES implementation.
Base64 ciphertext encoded as iv || ephemPub || ct || mac.
const identity = await fetch(`/v1/identity?owner=${owner}`).then((response) =>
response.json(),
);
const requestCiphertext = await sealJobRequest(
requestEnvelope,
identity.publicKey,
ecies,
);
await fetch("/v1/jobs", {
method: "POST",
body: JSON.stringify({ ...submission, requestCiphertext }),
});
Encrypts a validated job request envelope for a Personal Server enclave.
The PS worker verifies
auth.bodyHash === sha256(canonicalJobRequestBytes(request)); the Gateway never sees the plaintext.