Skip to content

grantDescriptor

grantDescriptor(ref, node): GrantDescriptor

Defined in: derive.ts:339

The descriptor naming what a grant unlocks, ready for wrapTo().

Build descriptors with grantDescriptor() rather than filling the structure by hand: the descriptor is authenticated as the grant’s AAD and compared byte for byte, so the owner is lowercased and the keyspace is spelled exactly as the envelope spells it.

ParameterType
refKeyspaceRef
nodeGrantNode

GrantDescriptor