Options
All
  • Public
  • Public/Protected
  • All
Menu

blockcodec-to-ipld-format - v2.0.0

Index

Type aliases

Functions

Type aliases

BlockCodec

BlockCodec<Code, T>: BlockCodec

<Code, T>

Type parameters

  • Code

  • T

IPLDFormat

IPLDFormat<T>: Format

Type parameters

  • T

Functions

convert

  • convert<Code, T>(blockCodec: BlockCodec<Code, T>, options?: undefined | { defaultHashAlg: undefined | HashName; resolve: undefined | ((binaryBlob: Uint8Array, path: string) => { remainderPath: string; value: any }); tree: undefined | ((binaryBlob: Uint8Array) => Generator<string, void, undefined>) }): Format<T>
  • Converts a BlockFormat from the multiformats module into an IPLD Format

    Type parameters

    • Code

    • T

    Parameters

    • blockCodec: BlockCodec<Code, T>
    • options: undefined | { defaultHashAlg: undefined | HashName; resolve: undefined | ((binaryBlob: Uint8Array, path: string) => { remainderPath: string; value: any }); tree: undefined | ((binaryBlob: Uint8Array) => Generator<string, void, undefined>) } = {}

    Returns Format<T>