Commit Graph

78 Commits

Author SHA1 Message Date
Jacob Karlsson 543a5c4d48 Rename to pzp 2024-04-27 23:34:25 +02:00
Powersource f056429f31
Document the api (#31) 2024-04-13 14:33:36 +02:00
Powersource 15cfc7459d
Make all APIs async, internally wait for rescanning (#29) 2024-04-07 17:04:32 +02:00
Powersource e40c7cff09
Prune the accountTangle in getSigkeysInAccount (#23) 2024-03-25 16:46:28 +01:00
Powersource d332308104
Add db.account.del (#27) 2024-03-25 16:45:08 +01:00
Powersource 3c236581fa
Make getSigkeysInAccount consider "del" (#24) 2024-03-25 16:33:41 +01:00
Andre Staltz ba6f727417
moot can be added without sigkey validation 2024-03-12 12:59:40 +02:00
Andre Staltz 0c86b43d22
improve Tangle error messages 2024-03-06 11:13:04 +02:00
Andre Staltz 6661b73fd4
add() can replace a dataless msg with a dataful 2024-02-28 15:32:36 +02:00
Andre Staltz c31580a961
add a few code comments 2024-02-27 18:03:35 +02:00
Andre Staltz 60afd4b64b
Re-scan log into memory after compacting 2024-02-27 16:52:01 +02:00
Andre Staltz 667b33779d
add() supports concurrency 2024-01-31 13:12:55 +02:00
Andre Staltz 68605ea387
getTangle() returns null if tangleID is unknown 2024-01-30 17:27:31 +02:00
Andre Staltz 4946afac12
fix typescript 2024-01-19 12:48:57 +02:00
Andre Staltz 7d5588ef4d
new API onRecordDeletedOrErased 2024-01-19 12:47:52 +02:00
Andre Staltz f8a2006eb1
improve types of dependencies 2024-01-19 12:24:38 +02:00
Andre Staltz cc1f83c064
use config.global.keypair 2023-12-29 12:14:59 +02:00
Andre Staltz 3a2bfe25d0
msg-v4 2023-12-25 12:24:35 +02:00
Andre Staltz f38a62e006
use the microqueue for onRecordAdded 2023-12-21 11:17:28 +02:00
Andre Staltz 42acbc310f
add() supports inferring tangleID 2023-12-15 15:49:54 +02:00
Andre Staltz fa15271fdf
loosen tangle.slice() arguments 2023-12-15 14:38:02 +02:00
Andre Staltz 99c1520415
new API tangle.slice() 2023-12-15 14:34:34 +02:00
Andre Staltz b76130aa74
new feed.getID() API 2023-12-11 15:29:31 +02:00
Andre Staltz f9a3875ffd
rename feed.getID() to feed.findMoot() 2023-12-11 15:25:57 +02:00
Andre Staltz 5b81c6ea82
move config.path to config.db.path 2023-11-24 15:44:25 +02:00
Andre Staltz cfebe1f46c
expose log methods: stats, compact 2023-11-23 15:49:54 +02:00
Andre Staltz f8db4fb224
fix account powers validation 2023-11-23 12:10:27 +02:00
Andre Staltz 3e4fe864f7
align impl and spec regarding account key purposes 2023-11-16 14:09:55 +02:00
Andre Staltz fc47a4006b
account msgs have "account__" domain prefix 2023-11-16 12:09:00 +02:00
Andre Staltz 1ff84756bc
flatten tagged union in msg AccountData 2023-11-16 11:29:55 +02:00
Andre Staltz ae122c815e
support erase() persistence 2023-11-10 15:46:17 +02:00
Andre Staltz b6d17e947f
log reading methods match log codec type 2023-11-07 10:48:20 +02:00
Andre Staltz db915d0287
replace async-append-only-log with our own log 2023-11-07 09:53:56 +02:00
Andre Staltz 3fccd4d661
rename ghosts.add() opts.max to opts.span 2023-10-26 10:42:08 +03:00
Andre Staltz 4fff37ad02
refuse re-adding a dataful ghost msg 2023-10-25 19:09:19 +03:00
Andre Staltz 8c3800264a
fixup for: change ghosts.add API arguments 2023-10-25 18:47:57 +03:00
Andre Staltz 31bf38e2d2
change ghosts.add API arguments 2023-10-25 18:46:34 +03:00
Andre Staltz 778dbda588
refactor to move files around 2023-10-25 18:39:57 +03:00
Andre Staltz 21c1adbd2a
make ghost read APIs synchronous 2023-10-25 15:22:07 +03:00
Andre Staltz d74695b7e7
add ghosts API 2023-10-18 17:04:50 +03:00
Andre Staltz 6996fb2d20
use polyfill friendly "path" instead of "node:path" 2023-10-18 14:45:06 +03:00
Andre Staltz 39d48ac416
add semantic type MsgID in lib/index.js 2023-10-18 14:44:15 +03:00
Andre Staltz fec2b46a3e
improve types for void callbacks 2023-09-26 15:30:48 +03:00
Andre Staltz 0d9ce50cfe
change getDeletablesAndErasables return type 2023-09-20 14:47:23 +03:00
Andre Staltz 385b34dbd6
tangle.getDeletablesAndErasables() accepts many args 2023-09-14 16:54:43 +03:00
Andre Staltz a5c4847244
small rename 2023-09-14 13:55:08 +03:00
Andre Staltz 5a405be367
add API logStats(cb) 2023-09-13 14:27:53 +03:00
Andre Staltz a6749cafa1
improve feed.publish input assertions 2023-09-07 17:28:43 +03:00
Andre Staltz b92d25c6a2
validation on add() supports encrypted inner msgs 2023-08-31 13:33:13 +03:00
Andre Staltz 222f54ea52
minor refactoring and rename message=>msg 2023-08-29 10:22:52 +03:00