bitcoinjs / indexd

An external bitcoind index management service module
ISC License
53 stars 23 forks source link

Extract the `?-leveldown` wrapper #1

Closed dcousens closed 7 years ago

dcousens commented 7 years ago

... to a 3rd party module.

Note that a .Value type can be used now instead of the .prefix Added in https://github.com/dcousens/indexd/commit/d3e6fe90eaaa923d827c07765a47879c5757206d

dcousens commented 7 years ago

@dominictarr @fanatid would this be a candidate for the organization? I'm not sure myself, but I figured it might be a question worth asking.

Ref: https://github.com/dcousens/indexd/blob/master/ldb.js

dcousens commented 7 years ago

Maybe not actually... its more related to abstract encoding then it is to varstruct specifically.

dominictarr commented 7 years ago

I'm happy for this be in the org

dcousens commented 7 years ago

As is, it is a abstract-leveldown (aka, conforming to the interface provided by leveldown) wrapper rather than levelup to avoid the 5-6 abstractions deep level-codec/levelup encoding/decoding.