• Creates a bitset from the permissions in the array where each enum value is used to set the bit flag in the set.

    ATTEST has 0000000000000001 (decimal 1). DELEGATE has 0000000000000010 (decimal 2).

    Adding the enum values results in a decimal representation of the bitset.

    Parameters

    • delegation: IDelegationNode

      The delegation from which you want to convert the permissions to bitset.

    Returns Uint8Array

    The bitset as single value uint8 array.