21 Commits

Author SHA1 Message Date
Hayden Young
e1ef3224b4 feat: Upgrade ccrypto. 2024-10-15 18:35:19 +01:00
Hayden Young
170d9a9b7c chore: Update npm packages. 2023-09-18 14:12:43 +01:00
saul
2845c138c5 Remove buffer usage from tests. 2023-03-27 11:48:30 +13:00
saul
b0483a1b60 Fix public key test. 2023-03-27 11:24:21 +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
796e84af10 test: Rename tests to better reflect what is being tested. 2023-03-07 11:42:07 +00:00
Hayden Young
9b2dd487b8 fix: Linting. 2023-03-06 22:23:51 +00:00
Hayden Young
885fc5f02c test: Load keys into storage and retrieve from keystore. 2023-03-06 22:21:17 +00:00
Hayden Young
1fb02ea4cb refactor: Throw any storage errors when adding a key. 2023-03-06 17:56:38 +00:00
Hayden Young
53369de51c test: default and custom options. 2023-03-06 16:34:51 +00:00
haad
eacada3ab2 Don't use secp256k1.publicKeyConvert function 2023-03-02 10:08:07 +02:00
haad
dd22ceabb7 Fix tests, remove old fixtures data 2023-03-02 08:16:59 +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
ba71a7985e feat: Use composite storage for key store. 2023-02-28 16:30:36 +00:00
Hayden Young
0c5c44e429 refactor: Generate keys using crypto. 2023-02-28 03:34:55 +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
Hayden Young
2e8530e7b1 test: Persisted keyvalue with KeyStore. 2023-02-26 23:23:27 +00:00
Hayden Young
0dac15ba7f test: Signing and verifying. 2023-02-26 18:16:28 +00:00
Hayden Young
be2d5900de refactor: wip. 2023-02-24 19:57:16 +00:00