holdingOf
holdingOf(
grant):Holding
Defined in: derive.ts:450
Which node a grant carries, ready to pass to keyForEnvelope.
Keyspace and scope keys are all 32 bytes of HKDF output, so nothing distinguishes them once unwrapped — but the grant that delivered the key tells you so keep the whole grant, not just the key.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
grant | Pick<GrantDescriptor, "node"> |
Returns
Section titled “Returns”Throws
Section titled “Throws”If the grant names a node this version does not understand.