Class CoreOwnership

Hierarchy

  • TypedEmitter
    • CoreOwnership

Constructors

  • Parameters

    • opts: {
          coreKeypairs: Record<
              | "auth"
              | "config"
              | "data"
              | "blobIndex"
              | "blob", KeyPair>;
          dataType: DataType<DataStore<"auth", "role" | "coreOwnership">, SQLiteTableWithColumns<{}>, "coreOwnership", {}, {}>;
          identityKeypair: KeyPair;
      }
      • coreKeypairs: Record<
            | "auth"
            | "config"
            | "data"
            | "blobIndex"
            | "blob", KeyPair>
      • dataType: DataType<DataStore<"auth", "role" | "coreOwnership">, SQLiteTableWithColumns<{}>, "coreOwnership", {}, {}>
      • identityKeypair: KeyPair

    Returns CoreOwnership

Methods

  • Get capabilities for a given deviceId

    Parameters

    • deviceId: string

    Returns Promise<{} & {
        forks: string[];
    }>

  • Returns Promise<({} & {
        forks: string[];
    })[]>

  • Parameters

    • deviceId: string
    • namespace:
          | "auth"
          | "config"
          | "data"
          | "blobIndex"
          | "blob"

    Returns Promise<string>

    coreId of core belonging to deviceId for namespace

  • Parameters

    • coreId: string

    Returns Promise<string>

    deviceId of device that owns the core