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é
0c6717cfbc
Merge pull request #98 from ucan-wg/container-err
...
container: clarify returned error
2025-01-13 13:54:06 +01:00
Michael Muré
6d7fd28324
container: clarify returned error
2025-01-13 13:50:05 +01:00
Michael Muré
ccc0120e78
Merge pull request #99 from ucan-wg/persona-fix
...
didtest: offset persona constants
2025-01-13 13:44:18 +01:00
Michael Muré
bf27b97a57
didtest: offset persona constants
...
It seems like having a persona with a zero value confuses some static checker into warning against a possible nil pointer deref.
An easy fix is to just not have zero.
2025-01-13 13:30:03 +01:00
Michael Muré
10dd4fa6d1
Merge pull request #97 from ucan-wg/ctn-writer-no-cid
...
container: the writer should not ask for a CID, as its discarded
2025-01-13 12:41:10 +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é
b7ddead7c8
Merge pull request #96 from ucan-wg/container-spec
...
container: add a specification
2025-01-09 13:30:48 +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é
95bdbc4fc5
Merge pull request #95 from ucan-wg/minor-impro
...
Minor impro
2024-12-12 16:36:17 +01:00
Michael Muré
416345dba9
args,meta: add a Len()
2024-12-12 16:06:01 +01:00
Michael Muré
042d6dc52f
didtest: complete the set of function, finish removing the dependency on testing.T
2024-12-12 16:05:13 +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é
47156a8ad6
Merge pull request #94 from ucan-wg/base64-string
...
container: I/O as strings for base64
v1.0.0-preview
2024-12-11 16:12:48 +01:00
Michael Muré
ce6d163627
container: I/O as strings for base64
2024-12-11 16:05:16 +01:00
Michael Muré
c3c2c96008
Merge pull request #93 from ucan-wg/proof-rephrase
...
invocation: rephrase slightly the proof rules to be less confusing down the line
2024-12-10 13:27:12 +01:00
Steve Moyer
903632695f
test(delegation): calculate newCID from new.dagjson so tests are not brittle
2024-12-10 07:14:36 -05:00
Steve Moyer
f2d75b7815
test(delegation): fix newCID after new.dagjson update (brittle)
2024-12-10 07:03:06 -05:00
Steve Moyer
4f09829abe
feat(delegationtest): update generator to changed delegation.New constructor
2024-12-10 06:53:01 -05:00
Michael Muré
5660df32b5
delegation,invocation: proper String() function
2024-12-10 12:20:18 +01:00
Michael Muré
2f2a74c7ec
delegation: fix following constructor updates
2024-12-10 12:19:47 +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é
80c2d60ab3
invocation: rephrase slightly the proof rules to be less confusing down the line
2024-12-09 18:53:38 +01:00
Michael Muré
c518c6657a
Merge pull request #92 from ucan-wg/generator-cleanup
...
delegationtest: run go fmt, less noisy code
2024-12-05 15:36:23 +01:00
Michael Muré
78825f4f55
delegationtest: run go fmt, less noisy code
2024-12-05 15:30:23 +01:00
Michael Muré
7f1adbd945
Merge pull request #91 from ucan-wg/fix-everything
...
Fix everything
2024-12-04 20:09:28 +01:00
Michael Muré
0f59088d0b
test: improvement on the generator, small fixes
2024-12-04 19:55:29 +01:00
Michael Muré
72e0f353e7
delegation: add a Bundle to carry around decoded, sealed and Cid
2024-12-04 19:54:46 +01:00
Michael Muré
d0d4ec3abe
delegation,invocation: meta can be nil in the model, but not in the view
2024-12-04 19:53:05 +01:00
Michael Muré
bb24081b28
Merge pull request #90 from ucan-wg/fix/extended-field-names
...
Add support for extended field names in selectors
2024-12-03 11:43:38 +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
Michael Muré
78d37d92ef
Merge pull request #89 from ucan-wg/fix/prevent-int-overflow
...
fix: prevent overflow of int values
2024-12-02 14:41:12 +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
105323b989
moved unit test
2024-12-02 12:13:56 +01:00
Fabio Bozzo
5b816ccc62
streamline int overflow check for token timestamps
2024-12-02 12:06: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
a854389e32
validate token timestamps integer limits
2024-12-02 11:37:03 +01:00
Fabio Bozzo
117a75e2c4
cleanup comments
2024-11-29 19:36:00 +01:00