A model that represents a base role.

Hierarchy (view full)

Implements

Constructors

Properties

onFound: OEvent<(() => void | Promise<void>)> = ...

Methods

  • ************* Semi-abstracts **************

    Parameters

    • roleName: string

    Returns boolean | Promise<boolean>

  • Returns Promise<SHA256IdHash<Person>[]>

  • Checks if the data is affirmed by the role person ids.

    Parameters

    • data: SHA256Hash | SHA256IdHash

      The data to check.

    • OptionalbyPersonId: SHA256IdHash<Person>

      The personId that should be trusting the data.

    Returns Promise<boolean>

    True if the data is affirmed, false otherwise.

  • Checks if the data is signed by the role person ids.

    Parameters

    • data: SHA256Hash

      The data to check.

    • OptionalbyPersonId: SHA256IdHash<Person>

      The personId that should be signing the data.

    Returns Promise<boolean>

    True if the data is signed, false otherwise.

  • ************* Abstracts **************

    Parameters

    • OptionalpersonId: SHA256IdHash<Person>

    Returns Promise<boolean>

  • Parameters

    • personId: SHA256IdHash<Person>
    • OptionalcreatorId: SHA256IdHash<Person>

    Returns Promise<void>