Commit Graph

198 Commits

Author SHA1 Message Date
Andre Staltz 07c2168f97
identity.add() can implicitly also create the consent 2023-07-11 10:49:33 +03:00
Andre Staltz 2347592aac
update protospec to mention consent sigs 2023-07-10 15:55:35 +03:00
Andre Staltz 0899ac5818
add identity.consent() API 2023-07-10 15:52:18 +03:00
Andre Staltz a3fcb641eb
tests for identity.find() etc 2023-07-10 15:41:28 +03:00
Andre Staltz a442a26c2a
tiny refactor around msgv3.createIdentity() 2023-06-25 20:50:02 +03:00
Andre Staltz df98d499f1
identity tangle always has metadata.identity=self 2023-06-25 20:48:20 +03:00
Andre Staltz 674e2ba66c
use TypeScript in JSDoc 2023-06-25 18:48:24 +03:00
Andre Staltz aab707f5da
export msg-v3 file 2023-06-25 16:52:32 +03:00
Andre Staltz 1ee69de573
replace ssb-caps with ppppp-caps 2023-06-25 11:38:19 +03:00
Andre Staltz d97d29fca0
rename type=>domain, group=>identity 2023-06-25 11:07:22 +03:00
Andre Staltz 08d3450f20
replace buffer with b4a 2023-06-15 14:55:23 +03:00
Andre Staltz aa5d49d512
replace tape with node:test 2023-06-14 11:56:00 +03:00
Andre Staltz fa16916e82
use ppppp-keypair instead of ssb-keys 2023-06-14 10:48:54 +03:00
Andre Staltz 78a6f2216c
fix a test that was still using feed-v1 2023-06-14 10:27:42 +03:00
Andre Staltz 302bfa81f8
also remove feed-v1 tests 2023-06-13 16:00:39 +03:00
Andre Staltz f66807a774
remove feed-v1 (it can be found in git tag "rev1") 2023-06-13 15:57:47 +03:00
Andre Staltz e52368b92f
fix package.json main field 2023-06-09 13:50:02 +03:00
André Staltz 6e7fca8e6a
Update protospec.md 2023-05-29 16:00:25 +03:00
Andre Staltz 5c24ffc498
add MsgV2 to protospec.md 2023-05-26 16:58:35 +03:00
Andre Staltz 5ece075c79
test that you can publish with a key added to a group 2023-05-26 14:59:15 +03:00
Andre Staltz a3f37381cd
test group.create() and group.add() 2023-05-26 14:37:15 +03:00
Andre Staltz ce5acb849e
properly implement group.add() 2023-05-26 14:37:04 +03:00
Andre Staltz d91c2a0180
test feed.getId() 2023-05-26 14:24:52 +03:00
Andre Staltz 90395b8bd3
rename feed.getRoot() to feed.getId() 2023-05-26 14:24:39 +03:00
Andre Staltz 0772aa4883
remove validateTangle 2023-05-26 14:20:31 +03:00
Andre Staltz e0a136065e
allow passing test nonce to group.create() 2023-05-26 14:02:13 +03:00
Andre Staltz a4e94f1702
add msg-v2 exports in package.json 2023-05-25 17:50:29 +03:00
Andre Staltz 393c0e4827
validate group tangle 2023-05-25 17:10:42 +03:00
Andre Staltz e957a4a578
more msg-v2 tests 2023-05-25 16:11:20 +03:00
Andre Staltz 248e14da42
small facepalm in msg-v2 validation 2023-05-25 16:06:07 +03:00
Andre Staltz 8d0d3cf175
msg-v2 with group tangles 2023-05-25 15:52:11 +03:00
Andre Staltz 975769134c
rename some test files 2023-05-24 10:42:39 +03:00
Andre Staltz 510ebbd6ff
not lgpl 2023-05-23 16:22:27 +03:00
Mikey 301cc6ff41
use json-canon instead of canonicalize (#7) 2023-05-12 15:35:26 +03:00
Mikey e66483391b
alphabetize tangles (#5)
Co-authored-by: André Staltz <andre@staltz.com>
2023-05-09 10:31:44 +03:00
Mikey f8bc73d52b
use "JSON Canonicalization Scheme" (JSC) as deterministic JSON stringify (#4) 2023-05-09 10:27:47 +03:00
Mikey d1247afb06
more strict validation (#1)
in an attempt to preempt problems with non-deterministic (de-)serialization.
2023-05-09 10:19:00 +03:00
Andre Staltz dc636c01c0
add feedv1 protospec 2023-05-05 14:21:28 +03:00
Andre Staltz 0948eadac0
move some tests around 2023-05-05 13:24:38 +03:00
Andre Staltz 029e893a4e
make initializeFeed an internal API 2023-04-28 15:22:25 +03:00
Andre Staltz 52a79e7dff
boring license headers 2023-04-28 14:09:23 +03:00
Andre Staltz d39ee6b017
refactor: use initializeFeed() inside create() 2023-04-28 11:27:15 +03:00
Andre Staltz 9dd5f92ce8
test initializeFeed idempotency 2023-04-28 11:27:00 +03:00
Andre Staltz 6ab3182613
initializeFeed() API 2023-04-28 11:22:46 +03:00
Andre Staltz 65622ac961
Tangle.precedes(a,b) API 2023-04-27 15:51:31 +03:00
Andre Staltz ba0a78b277
fix format-code script 2023-04-26 14:31:14 +03:00
Andre Staltz 3880877726
format code 2023-04-26 14:30:02 +03:00
Andre Staltz 1680719fb8
fix tests to use correct plugin js 2023-04-21 14:54:16 +03:00
Andre Staltz a5574b7133
improve package.json files and exports 2023-04-21 14:51:44 +03:00
Andre Staltz 10e74ea8da
fix package.json files to include feed-v1 2023-04-21 14:45:12 +03:00