Skip to content

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.

ParameterTypeDefault value
nodeUint8Arrayundefined
holdingGrantDescriptor | Holding'keyspace'

(info) => Uint8Array