ic-reactor
    Preparing search index...

    Interface Principal

    interface Principal {
        _isPrincipal: true;
        isAnonymous(): boolean;
        toUint8Array(): Uint8Array;
        toHex(): string;
        toText(): string;
        toString(): string;
        toJSON(): utils.principal.JsonnablePrincipal;
        compareTo(other: types.Principal): "lt" | "eq" | "gt";
        ltEq(other: types.Principal): boolean;
        gtEq(other: types.Principal): boolean;
    }
    Index

    Properties

    _isPrincipal: true

    Methods

    • Returns boolean

    • Returns Uint8Array

    • Returns string

    • Returns string

    • Returns string

    • Utility method taking a Principal to compare against. Used for determining canister ranges in certificate verification

      Parameters

      Returns "lt" | "eq" | "gt"

      'lt' | 'eq' | 'gt' a string, representing less than, equal to, or greater than

    • Utility method checking whether a provided Principal is less than or equal to the current one using the Principal.compareTo method

      Parameters

      Returns boolean

      boolean

    • Utility method checking whether a provided Principal is greater than or equal to the current one using the Principal.compareTo method

      Parameters

      Returns boolean

      boolean