@wharfkit/antelope - 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 = '__struct'
    • 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.

      • includePartial: boolean = false

        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.

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

      Returns void