Skip to content

@lelantos-org/sdk / sync / WorkerPoolScanner

Class: WorkerPoolScanner โ€‹

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:14

Implements โ€‹

Constructors โ€‹

Constructor โ€‹

ts
new WorkerPoolScanner(opts): WorkerPoolScanner;

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:19

Parameters โ€‹

ParameterType
optsWorkerPoolScannerOpts

Returns โ€‹

WorkerPoolScanner

Methods โ€‹

dispose() โ€‹

ts
dispose(): Promise<void>;

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:29

Release held resources (workers, native handles).

Returns โ€‹

Promise<void>

Implementation of โ€‹

Scanner.dispose


scan() โ€‹

ts
scan(ivk, inputs): Promise<ScanHit[]>;

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:27

Trial-decrypt inputs with ivk. Result order MUST match input order (filtered to hits).

There is no client-side FMD pre-filter: the note feed does not carry clue.R, so one is not implementable here today. For FMD filtering use syncStrategy: { kind: "matches", token }, which does it server-side โ€” trading some anonymity for bandwidth. See ./worker/protocol.ts for the full reasoning.

Parameters โ€‹

ParameterType
ivkbigint
inputsScanInput[]

Returns โ€‹

Promise<ScanHit[]>

Implementation of โ€‹

Scanner.scan

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub