@wharfkit/session - v4.0.1
    Preparing search index...

    Class Authority

    Interface that should be implemented by ABI serializable objects.

    Hierarchy (View Summary)

    Index
    keys: KeyWeight[]
    threshold: UInt32
    waits: WaitWeight[]
    abiFields: ABIField[]
    abiName: string
    • get keyThreshold(): number

      Weight a key needs to sign for this authority.

      Returns number

    • get waitThreshold(): number

      Total weight of all waits.

      Returns number

    • get structFields(): ABIField[]

      Returns ABIField[]

    • Return true if this struct equals the other.

      Note: This compares the ABI encoded bytes of both structs, subclasses should implement their own fast equality check when possible.

      Parameters

      • other: any

      Returns boolean

    • Check if given public key has permission in this authority,

      Parameters

      • publicKey: PublicKeyType

        The key to check.

      • OptionalincludePartial: boolean

        Whether to consider auths where the key is included but can't be reached alone (e.g. multisig).

      Returns boolean

      Does not take indirect permissions for the key via account weights into account.

    • Return the weight for given public key, or zero if it is not included in this authority.

      Parameters

      Returns number

    • Sorts the authority weights in place, should be called before including the authority in a updateauth action or it might be rejected.

      Returns void