Class Corestore

Hierarchy

Constructors

Properties

Methods

Constructors

  • Parameters

    • storage: HypercoreStorage
    • Optionaloptions: {
          poolSize?: number;
          primaryKey?: Uint8Array | Buffer;
      }
      • OptionalpoolSize?: number
      • OptionalprimaryKey?: Uint8Array | Buffer

    Returns Corestore

Properties

cores: Map<string, Hypercore<ValueEncoding, Buffer>>

Methods

  • Returns Promise<void>

  • Parameters

    • key: Uint8Array | Buffer

    Returns Hypercore<ValueEncoding, Buffer>

  • Parameters

    • options: Omit<HypercoreOptions<"binary", undefined>, "keyPair"> & {
          name: string;
      }

    Returns Hypercore<ValueEncoding, Buffer>

  • Parameters

    • options: never

    Returns Hypercore<ValueEncoding, Buffer>

  • Parameters

    • options: Omit<HypercoreOptions<"binary", undefined>, "key" | "keyPair"> & {
          key?: string | Buffer;
          keyPair: {
              publicKey: Buffer;
              secretKey?: null | Buffer;
          };
          sparse?: boolean;
      }

    Returns Hypercore<ValueEncoding, Buffer>

  • Returns Promise<void>

  • Parameters

    • stream: any
    • Optionalopts: any

    Returns ReplicationStream