web3-storage / pail Goto Github PK
View Code? Open in Web Editor NEW🪣 DAG based key value store.
License: Other
🪣 DAG based key value store.
License: Other
I think the majority of operations are async because of the async Block.encode
, however it only really is like that because the hash interface used to be async only. It's now optinally async and we're just using sha256
which can be sync in Nodejs. We could switch to an Await<T>
interface that allows async/sync operation depending on the environment. This might speed up mutations in Nodejs.
We currently iterate over the entire shard when searching for a key. We could so a binary search instead to speed it up.
Looks like the blockstore-core interface may have changed? Get's returned values are currently just Uint8Array instead of { cid, block } objects.
This results in broken usage:
due to
https://github.com/alanshaw/pail/blob/777cbbafada0ca13494934331a6df999a273346c/src/shard.js#L67-L76
Here block is a Uint8Array and .bytes is undefined
The current API is purposely low level and stateless.
readme suggests we use blockstore-core
. but pail expects get(cid) => {cid, bytes}
, while blockstore-core.get
returns a unit8array
see: https://ipfs.github.io/js-stores/classes/blockstore_core.MemoryBlockstore.html#get
Currently missing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.