EncryptedAttachment
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:290
Result of encrypting an attachment for remote storage.
Properties
Section titled “Properties”contentDigest
Section titled “contentDigest”contentDigest:
string
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:298
SHA-256 digest of the encrypted bytes (hex-encoded)
contentLength
Section titled “contentLength”contentLength:
number
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:314
The length of the encrypted content
filename?
Section titled “filename?”
optionalfilename?:string
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:318
The filename of the attachment
nonce:
Uint8Array
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:310
The 12-byte nonce used in encryption
payload
Section titled “payload”payload:
Uint8Array
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:294
The encrypted bytes to upload to the remote server
salt:
Uint8Array
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:306
The 32-byte salt used in key derivation
secret
Section titled “secret”secret:
Uint8Array
Defined in: bindings/wasm/dist/bindings_wasm.d.ts:302
The 32-byte secret key needed for decryption

