Decrypts a job result and verifies its builder-visible protocol bindings.
The builder private key is a Hex wallet key. For expect.version, undefined skips the check while null requires a null result version.
Hex
expect.version
undefined
null
Raw hybrid sealed-result bytes.
Builder's wallet private key as hex.
Injected ECIES implementation.
Required job ID and optional scope and version bindings.
The validated result when every supplied binding matches.
If plaintext is malformed, invalid, or a binding differs.
If ciphertext decoding or ECIES decryption fails.
const sealedBytes = new Uint8Array(await response.arrayBuffer());const result = await openJobResult(sealedBytes, key, ecies, { jobId, scope,});const text = new TextDecoder().decode(result.body); Copy
const sealedBytes = new Uint8Array(await response.arrayBuffer());const result = await openJobResult(sealedBytes, key, ecies, { jobId, scope,});const text = new TextDecoder().decode(result.body);
Decrypts a job result and verifies its builder-visible protocol bindings.
The builder private key is a
Hexwallet key. Forexpect.version,undefinedskips the check whilenullrequires a null result version.