Michael Muré
6d3846ac62
container: add a helper for test only
2025-02-27 14:27:02 +01:00
Steve Moyer
9589cc8b44
feat(tinygo): make 53-bit limits portable across platforms
2025-02-21 11:03:33 -05:00
Michael Muré
fe14765c8d
container: use the correct type in GetAllDelegations
2025-02-03 15:02:31 +01:00
Michael Muré
e1fc838caf
rename testvectors into containertest to match previous namings
2025-01-29 14:46:01 +01:00
Michael Muré
506ed21b94
token: ditch the generic bundle in favor of specialized struct
...
It's kust cleaner that way, the generic has no upside.
2025-01-29 14:28:13 +01:00
Michael Muré
45ead12131
Merge pull request #102 from ucan-wg/cont-keep-sealed
...
container: Reader should keep around and expose the sealed bytes
2025-01-23 18:06:41 +01:00
Michael Muré
9d047f038d
container: Reader should keep around and expose the sealed bytes
2025-01-23 17:13:10 +01:00
Michael Muré
4c5afcb084
container: expose test vectors for easier testing
2025-01-23 17:10:34 +01:00
Michael Muré
e218b49577
Merge pull request #100 from ucan-wg/pol-neq
...
policy: implement the missing '!='
2025-01-23 12:38:17 +01:00
Michael Muré
4c81ac778e
policy: fix tests now that selector evaluation is clearer
...
https://github.com/ucan-wg/delegation/pull/15
https://github.com/ucan-wg/delegation/pull/16
2025-01-23 12:28:02 +01:00
Michael Muré
7ae65e7c8e
policy: fix some code style
2025-01-22 17:30:28 +01:00
Michael Muré
7f9cb6426c
policy: implement the missing '!='
...
https://github.com/ucan-wg/delegation/pull/15
2025-01-22 14:12:41 +01:00
Michael Muré
9c141029c3
container: better naming
2025-01-20 12:14:45 +01:00
Michael Muré
6d7fd28324
container: clarify returned error
2025-01-13 13:50:05 +01:00
Michael Muré
5695609f8b
container: the writer should not ask for a CID, as its discarded
2025-01-13 12:24:04 +01:00
Michael Muré
9cbec37685
container: no extra keys in the packaging allowed
2025-01-08 21:14:30 +01:00
Michael Muré
00dbd975b1
container: add test vectors
2025-01-08 18:59:30 +01:00
Michael Muré
c792a4cce5
container: typo and clarity in the spec
2025-01-08 18:55:08 +01:00
Michael Muré
8f3f1c775e
container: implement header based serialization, also add SPEC test vectors
2025-01-08 17:31:04 +01:00
Michael Muré
704ed25768
container: add a specification
2025-01-07 18:16:27 +01:00
Michael Muré
416345dba9
args,meta: add a Len()
2024-12-12 16:06:01 +01:00
Michael Muré
8bb3a4f4d0
expose secretbox, notably for the GenerateKey() function that should be public
2024-12-12 16:04:31 +01:00
Michael Muré
ce6d163627
container: I/O as strings for base64
2024-12-11 16:05:16 +01:00
Michael Muré
0592717637
(WIP) refine the token constructors:
...
- for invocation, reorder the parameters for a more "natural language" mental model
- for delegation, make "subject" a required parameter to avoid make powerline by mistake
- for delegation, implement powerline
2024-12-09 20:39:47 +01:00
Michael Muré
0f59088d0b
test: improvement on the generator, small fixes
2024-12-04 19:55:29 +01:00
Fabio Bozzo
3688ccea01
fieldRegex to be more restrictive and consistent
2024-12-02 19:18:01 +01:00
Fabio Bozzo
e9105896d7
Merge branch 'main' into fix/extended-field-names
...
# Conflicts:
# pkg/policy/selector/parsing_test.go
2024-12-02 19:05:19 +01:00
Fabio Bozzo
15751c7362
regex to be more restrictive and consistent
2024-12-02 18:30:41 +01:00
Michael Muré
d52218fa5a
Merge pull request #88 from ucan-wg/feat/secretbox-meta-encryption
...
feat(meta): secretbox encryption in place of aes-gcm
2024-12-02 17:34:29 +01:00
Fabio Bozzo
64d3024dec
remove aes comparison and add ciphertext overhead comments
2024-12-02 17:31:19 +01:00
Fabio Bozzo
da806b1bc5
remove TODO comment
2024-12-02 14:32:15 +01:00
Fabio Bozzo
311b942a6d
validate invocation token args
2024-12-02 14:22:42 +01:00
Fabio Bozzo
56eab758ed
move args int validation to their creation
2024-12-02 12:24:06 +01:00
Fabio Bozzo
28272e6900
move int validation to where a error can be returned
2024-12-02 11:59:16 +01:00
Fabio Bozzo
117a75e2c4
cleanup comments
2024-11-29 19:36:00 +01:00
Fabio Bozzo
a25bfbaf45
fix: extended field names
2024-11-29 19:32:31 +01:00
Fabio Bozzo
bff482f73b
add constants.go
2024-11-29 13:04:14 +01:00
Fabio Bozzo
ff79bbb443
go fmt
2024-11-29 13:03:48 +01:00
Fabio Bozzo
3997a86184
fix: prevent overflow of int values
2024-11-29 13:00:00 +01:00
Fabio Bozzo
200d6a8ae2
benchmarks vs aes-gcm
2024-11-28 17:17:10 +01:00
Fabio Bozzo
0349e7e463
feat(meta): secretbox encryption in place of aes-gcm
2024-11-28 16:16:04 +01:00
Steve Moyer
15535d3474
Merge pull request #86 from ucan-wg/test/invocation-verifies-args-vs-pols
...
test(invocation): verify arguments versus aggregated policies
2024-11-27 14:56:05 -05:00
Steve Moyer
170e597e71
feat(args): export fluent builder
2024-11-27 12:05:00 -05:00
Steve Moyer
ce1a4b6e32
test(invocation): verify arguments versus aggregated policies
2024-11-27 10:20:40 -05:00
Michael Muré
d1d047cd9e
Merge pull request #85 from ucan-wg/container-accessor
...
container: add a way to check for a single invocation, also iterator
2024-11-27 16:13:29 +01:00
Michael Muré
3680637090
container: add a way to check for a single invocation, also iterator
2024-11-27 16:13:15 +01:00
Michael Muré
ba4db9bce8
args: add simple value accessor
2024-11-27 12:23:10 +01:00
Michael Muré
943a318b26
Merge commit '60bdc8873b3d259ff297be4873a9623fcebb7f75'
2024-11-26 11:44:27 +01:00
Steve Moyer
60bdc8873b
feat(delegation): make Token constructors resemble invocation.New() signature
2024-11-25 15:12:29 -05:00
Michael Muré
820057e41e
container: streamed and non-streamed IO, documentation
2024-11-21 15:49:29 +01:00