Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new index type that also includes mutltihash code #217

Merged
merged 1 commit into from
Sep 7, 2021

Commits on Sep 7, 2021

  1. Implement new index type that also includes mutltihash code

    Implement a new CARv2 index that contains enough information to
    reconstruct the multihashes of the data payload, since `CarIndexSorted`
    only includes multihash digests. The new index builds on top of the
    existing `IndexSorted` by adding an additional layer of grouping the
    multi-width indices by their multihash code.
    
    Note, this index intentionally ignores
    any given record with `multihash.IDENTITY` CID hash.
    
    Add a test that asserts offsets for the same CID across sorted index and
    new multihash sorted index are consistent.
    
    Add tests that assert marshal unmarshalling of the new index type is as
    expected, and it does not load records with `multihash.IDENTITY` digest.
    
    Relates to:
    - multiformats/multicodec#227
    
    Fixes:
    - #214
    masih committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    ce2e998 View commit details
    Browse the repository at this point in the history