Package Exports
- picofeed
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (picofeed) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
picofeed
Microscopic Secure Feed occupying a single buffer
This is a tiny secure blockchain, it's designed be small enough to be easily hidden or easily replicated, for example it can be embedded inside a URL.
- URLs can be stored on most platforms and channels
- Sharing URLs is easy
- No network code
- Browser support via Browserify / node-globals (requires Buffer shim)
- Picofeed#slice(offset) support is on the way.
Install
npm install picofeedUsage
const Pico = require('picofeed')
const alice = Pico.signPair() // generate a sodium sign_pair
const bob = Pico.signPair()
const feed = new Pico()
feed.append('Hello', alice.sk) // => 1
feed.get(0) // => 'Hello'
const url = 'http://myapp.tld/#' + feed.pickle()
// share the url
const remoteFeed = new Pico.from(url)
remoteFeed.get(0) // => 'Hello'
// Attach a block to feed
remoteFeed.append('Hey alice!', sk)
// share second URL containing 2 blocks from 2 different identities.
const url2 = 'http://myapp.tld/#' + remoteFeed.pickle()
feed.merge(url2) // => 1
feed.get(1) // => 'Hey alice'Ad
_____ _ _ _
| __ \ Help Wanted! | | | | | |
| | | | ___ ___ ___ _ __ | |_| | __ _| |__ ___ ___ ___
| | | |/ _ \/ __/ _ \ '_ \| __| | / _` | '_ \/ __| / __|/ _ \
| |__| | __/ (_| __/ | | | |_| |___| (_| | |_) \__ \_\__ \ __/
|_____/ \___|\___\___|_| |_|\__|______\__,_|_.__/|___(_)___/\___|
If you're reading this it means that the docs are missing or in a bad state.
Writing and maintaining friendly and useful documentation takes
effort and time. In order to do faster releases
I will from now on provide documentation relational to project activity.
__How_to_Help____________________________________.
| |
| - Open an issue if you have ANY questions! :) |
| - Star this repo if you found it interesting |
| - Fork off & help document <3 |
|.________________________________________________|
I publish all of my work as Libre software and will continue to do so,
drop me a penny at Patreon to help fund experiments like these.
Patreon: https://www.patreon.com/decentlabs
Discord: https://discord.gg/K5XjmZx
Telegram: https://t.me/decentlabs_seContributing
Ideas and contributions to the project are welcome. You must follow this guideline.
License
GNU AGPLv3 © Tony Ivanov