keyResolver
keyResolver(
node,holding?): (info) =>Uint8Array
Defined in: derive.ts:437
A FEE key resolver for pieces this node reaches: pass it to fee.decrypt(),
which calls it with the envelope’s metadata before decrypting a byte.
await encrypted.pipeThrough(fee.decrypt(Keysmith.keyResolver(kk))).pipeTo(sink)The metadata is not yet authenticated when FEE calls this; it is checked as strictly as any other envelope, and a tampered label derives a key that the content tags then reject.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
node | Uint8Array | undefined |
holding | GrantDescriptor | Holding | 'keyspace' |
Returns
Section titled “Returns”(info) => Uint8Array