Class CoreOwnership

Hierarchy

  • TypedEmitter
    • CoreOwnership

Constructors

  • Parameters

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

    Returns Promise<string>

    coreId of core belonging to deviceId for namespace

  • Parameters

    • coreId: string

    Returns Promise<string>

    deviceId of device that owns the core