2.0.9 • Published 6 days ago

ipdw v2.0.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 days ago

ipdw (InterPlanetary Data Wallet)

npm (scoped) node-current (scoped)

InterPlanetary Data Wallet (IPDW): store users data within a secure distributed storage. It enables to build a real decentralised network (Web 0) without the need of centralized database. You can take advantage of P2P interactions, database-less, conflict-free replication, and much more. The main idea is to shard data structures in blocks and to propagate them encrypted and signed.

Features

  • Store unstructured data
  • Authenticate with web3 keys
  • Enjoy p2p interactions
  • Deploy database-less apps
  • Unlimited scalability
  • Conflict-free
  • And much more!

Decentralized authentication

Everyone has a key pair, consisting of a public key and a private key, which can be saved in different formats (such as the BIP39 standard for mnemonic phrases-based deterministic key generation).

In Web 3.0 applications, your wallet address (derived from the public key) can be recognized, allowing you to act on the distributed ledger (the storage) as a well-identified identity.

Getting Started

To get started with IPDW, you will need to follow these steps:

Install the package:

$ npm install ipdw

Instantiate ipdw with this interface:

public static async create(privateKey: string, storageProvider: StorageProvider, salt?: Buffer): Promise<IPDW>

Then access to "data", which is a sharded map where you can get and set in a key-value style.

The full example with auto synchronization between devices:

import {IPDW, MemoryStorageProvider} from "ipdw";

// On device 1
(async function () {
    const ipdw = await IPDW.create('b577c4367d79f1a7a0c8353f7937d601758d92c35df958781d72d70f9177e52f', new MemoryStorageProvider());

    await ipdw.data.set('test1', 'hello');

    const value1 = await ipdw.data.get('test1');
    console.log('test1 value:', value1);
    // test1 value: hello

    // Run "device 2" and if reachable it will be discovered and synced
    const value2 = await ipdw.data.get('test2');
    console.log('test2 value:', value2);
    // test2 value: world
})();

// On device 2
(async function () {
    const ipdw = await IPDW.create('b577c4367d79f1a7a0c8353f7937d601758d92c35df958781d72d70f9177e52f', new MemoryStorageProvider());
    await ipdw.data.set('test2', 'world');
})();

Data Wallet Principles

The InterPlanetary Data Wallet is a sophisticated mechanism for storing all kinds of data that works offline and only partially exposes the data during a transaction. The data is encrypted, so it can be safely shared without knowing the passphrase.

The wallet can be synced between all your devices using P2P communication strategies like IPFS and IPNS, and is always offline until a transaction occurs.

Security and Design

The blockchains have different replicated and redundant ledgers and consensus algorithms, with a competition underway to find the best algorithm for increased throughput, security, and more.

Thanks to applications like Metamask/Trust, Web 3.0 users are now familiar with private key usage and management. These applications have simplified the user experience, making it easy for users to manage keys and sign messages using ECDSA.

Private keys and public keys are nearly invulnerable to attacks from computers, except for social/phishing and similar attacks. "Humans are always the vulnerable element in the chain," so it's important to always be cautious.

Contributing

We welcome contributions to IPDW! If you would like to contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Commit your changes and open a pull request
  4. Support

If you need help using IPDW or have any questions, please open an issue in this repository and we will be happy to assist you.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

We hope you will join us in our mission to defeat internet data centralization!

2.0.9

6 days ago

2.0.8

8 days ago

2.0.5

9 days ago

2.0.7

9 days ago

2.0.6

9 days ago

2.0.4

11 days ago

2.0.3

13 days ago

2.0.2

13 days ago

2.0.1

15 days ago

2.0.0

20 days ago

1.5.11

5 months ago

1.5.10

5 months ago

1.5.7

1 year ago

1.4.6

1 year ago

1.4.5

1 year ago

1.5.6

1 year ago

1.5.5

1 year ago

1.5.4

1 year ago

1.5.3

1 year ago

1.5.2

1 year ago

1.5.0

1 year ago

1.4.9

1 year ago

1.4.8

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.0.2

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.3.7

1 year ago

1.2.8

1 year ago

1.3.6

1 year ago

1.2.7

1 year ago

1.1.8

1 year ago

1.0.9

1 year ago

1.4.4

1 year ago

1.3.5

1 year ago

1.2.6

1 year ago

1.1.7

1 year ago

1.0.8

1 year ago

1.4.3

1 year ago

1.3.4

1 year ago

1.2.5

1 year ago

1.0.7

1 year ago

1.4.2

1 year ago

1.3.3

1 year ago

1.2.4

1 year ago

1.1.5

1 year ago

1.0.6

1 year ago

1.4.1

1 year ago

1.2.3

1 year ago

1.1.4

1 year ago

1.0.5

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.0.4

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.1.2

1 year ago

1.0.3

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.2.9

1 year ago

1.0.0

1 year ago