40 Commits

Author SHA1 Message Date
haad
d83bfa9fc8 Refactor and add separate PasswordEncryption module 2024-07-07 10:44:22 +03:00
haad
383420750e Move oplog storages to their own module 2024-06-30 09:25:00 +03:00
haad
f30789fece Encrypt and decrypt entries and payloads 2024-06-28 22:13:46 +03:00
Hayden Young
7e5672eff0 fix: Linting. 2024-05-23 15:33:33 +01:00
Hayden Young
f272d3ee3c feat: Encrypt oplog payload. 2024-05-23 15:24:49 +01:00
Hayden Young
90f66cfe5d feat: Pass encrypt configuration as a hierarchical list of params. 2024-05-22 17:05:51 +01:00
Hayden Young
888d3e8af3 fix: Linting. 2024-05-17 03:35:38 +01:00
Hayden Young
373d2d8414 feat: Explicitly specify public and private keys. 2024-05-17 03:30:56 +01:00
Hayden Young
ed2c5e7d8c feat: Basic asymmetric encryption using an OrbitDB identity. 2024-05-01 15:44:57 +01:00
Hayden Young
d718a66818 feat: Default Libp2p config for node.js and browser peers. 2023-12-14 01:40:20 +00:00
Hayden Young
82591bf456 Merge remote-tracking branch 'origin' into helia 2023-12-02 21:48:09 +00:00
haad
f675641982 Refactor joinEntry implementation 2023-11-30 07:46:14 +02:00
Hayden Young
9f766da793 Merge branch 'main' into helia 2023-11-14 17:20:10 +00:00
Hayden Young
98594b9081 test: Amount configured more than total entries being returned by gt/gte iterator filter. 2023-11-13 22:25:52 +00:00
Hayden Young
31597d7084 refactor: Support Helia. 2023-09-23 16:25:29 +01:00
Hayden Young
170d9a9b7c chore: Update npm packages. 2023-09-18 14:12:43 +01:00
Hayden Young
794136c762
refactor: Functionize identity provider. (#74)
* refactor: Functionize identity provider.

* docs: Building a custom identity provider.

* refactor: Functionize clock.
2023-05-25 00:48:01 +08:00
haad
a94d2a7918 Renaming pass 2023-04-06 08:32:31 +03:00
Haad
a5c14d5377
Fix log fetching parallelism (#60)
* Fix log traverse parallelism

* Rename pointerCount to referencesCount
2023-03-29 21:10:24 +08:00
Haad
fddcd0d775
Fix tests (#51)
* Fix error event test in Sync tests

* Fix race condition

* Debug timeouts

* More tests fixing

* Try running local webrtc-star-signalling server for tests

* Fix sync tests

* Skip Log references tests in the browser tests
2023-03-27 20:09:26 +08:00
Haad
4fe1b0c1a1
Add Entry index to Log (#48)
* Turn off IPFS console.log output for tests

* Fix replication and sync tests

* Close keystore after tests in IPFSAccessController tests

* Fix error event test in Sync tests

* Fix race condition

* Add entry index to Log

* Clean up storage files

* Fix tests

* Fix linter
2023-03-27 18:09:44 +08:00
saul
1c16a7155c Replace ipfs package with ipfs-core. 2023-03-27 12:59:51 +13:00
Haad
bc816c7e2e
Browser tests (#41)
* Get browsers tests running

* Clean up replication test

* Setup fixtures for browser tests

* Fix import paths for webpack

* Fix webpack

* Add mocha-headless-chrome to run browser tests

* Add webrtc swarm endpoints for browser test IPFS node configs

* Remove adding pubkey to storage in KeyStore

* Runs browser tests in CI

* Fix import paths again

* Fix failing browser tests

* Fixes
2023-03-11 18:56:23 +08:00
Hayden Young
0347f3a7c2
test: Test cases for lamport clock and oplog sorting. (#28)
* test: Test cases for lamport clock and oplog sorting.

* fix: Linting.
2023-03-06 04:45:15 +08:00
haad
eacada3ab2 Don't use secp256k1.publicKeyConvert function 2023-03-02 10:08:07 +02:00
haad
9f50fb5e53 Use js-ipfs only in tests 2023-03-02 09:08:17 +02:00
haad
fbc76b4b31 Clean up oplog tests 2023-03-02 07:08:05 +02:00
haad
a063b3fb4a Refactor OrbitDB
Fix sync
Fix linter
Fix tests
Clean up
Set default references count to 0
Fix sync
Use address instead of databaseId
Sync protocol
Keep references to open databases in OrbitDB
Fix append benchmark
Initial version of heads exchange
Remove Feed
Fix KeyValuePersisted iterator
Refactor OrbitDBAddress a bit more
Add rest of the database types
Refactor OrbitDB addresses
Initial version for the full circle
Initial structure and tests for new OrbitDB
Make sure KeyStore is open when a Database is created
Re-organize OrbitDB
Use new databases and Log
More clean up
Add 'drop' event to Database
Clean up OrbitDB
Remove id from OrbitDB
Use new KeyStore and Identities
Remove storage from OrbitDB
Remove migrations from OrbitDB
Remove caches from OrbitDB
Remove pubsub from OrbitDB
2023-03-01 16:21:07 +02:00
haad
1575f00912 Add new test keys fixtures database 2023-03-01 14:49:00 +02:00
Hayden Young
f6368c2645 feat: Implement new keystore across tests. 2023-03-01 10:01:17 +00:00
Hayden Young
bf86156f9f refactor: Use KeyStore as function. Export signMessage and verifyMessage to avoid clashes with similarly named functions. 2023-02-27 02:42:18 +00:00
haad
e03af7e905 Fix tests 2023-02-22 10:09:15 +02:00
haad
f84915fca8 Merge identity keys and signing keys keystores 2023-02-20 11:21:34 +02:00
haad
0e0c160b20 Clean up after tests 2023-02-20 09:41:41 +02:00
haad
4b4d2ff35c Refactor Identity 2023-02-20 09:41:41 +02:00
haad
5b6a70c7cc Refactor IdentityProvider 2023-02-20 09:41:41 +02:00
haad
19ce1ce160 Re-organize IdentityProvider 2023-02-16 14:50:14 +02:00
haad
6c19219cba Rename *.spec to *.test 2023-02-16 13:32:44 +02:00
haad
dc5a0edd93 Move Log to oplog directory, refactor references 2023-02-16 13:10:20 +02:00
haad
967abafb8d Re-organize oplog tests 2023-02-16 12:32:10 +02:00