Class BlockstoreMap<T>

A distributed AutoKeyMap based on Blockstore.

Type Parameters

  • T = Uint8Array

Implements

Constructors

  • Type Parameters

    • T = Uint8Array

    Parameters

    • store: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>

      Blockstore instance.

    • codec: BlockCodec<number, T>

      Codec to encode data for storage.

    • hasher: MultihashHasher<number> = sha256

      Hash function to use for generating ContentIds for block data.

    Returns BlockstoreMap<T>

Properties

codec: BlockCodec<number, T>

Codec to encode data for storage.

hasher: MultihashHasher<number> = sha256

Hash function to use for generating ContentIds for block data.

store: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>

Blockstore instance.

Type declaration

    Type declaration

      Type declaration

        Type declaration

          Type declaration

            Type declaration

              Type declaration

                Type declaration

                  Accessors

                  Methods

                  • Puts given list of values and returns their keys.

                    Parameters

                    Returns AsyncIterableIterator<[key: CID<unknown, number, number, Version>, error?: Error]>

                  Generated using TypeDoc