Skip to content

decodeGrant

decodeGrant(bytes): DecodedGrant

Defined in: wrap.ts:196

Read a grant delivered as bytes, without opening it: to see what it names before unwrapping, or to pass to holdingOf.

Parameter Type
bytes Uint8Array

DecodedGrant

If the bytes are not one canonical CBOR map holding a version 2 grant, with every field the right type and size and no unknown numbered field.