Interface: CasExecutor ​
Defined in: packages/api/src/cas.ts:16
Executor interface for content-addressed storage.
Implementations handle the actual I/O (IPFS, HTTP gateway, local store, etc.). All hashes are base64url-encoded SHA-256 digests (no padding).
Methods ​
publish() ​
publish(
data):Promise<string>
Defined in: packages/api/src/cas.ts:20
Publish raw bytes and return the base64url SHA-256 hash.
Parameters ​
data ​
Uint8Array
Returns ​
Promise<string>
retrieve() ​
retrieve(
hash):Promise<Uint8Array<ArrayBufferLike> |null>
Defined in: packages/api/src/cas.ts:18
Retrieve raw bytes by base64url SHA-256 hash. Returns null if not found.
Parameters ​
hash ​
string
Returns ​
Promise<Uint8Array<ArrayBufferLike> | null>