Skip to content

grantDescriptor

grantDescriptor(ref, node): GrantDescriptor

Defined in: derive.ts:560

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 group key is spelled exactly as the envelope spells it.

Parameter Type
ref GroupKeyRef
node GrantNode

GrantDescriptor