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é
78825f4f55
delegationtest: run go fmt, less noisy code
2024-12-05 15:30:23 +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é
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
311b942a6d
validate invocation token args
2024-12-02 14:22:42 +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
a854389e32
validate token timestamps integer limits
2024-12-02 11:37:03 +01:00
Steve Moyer
5b7a63a2c6
style(delegationtest/generator): adopt suggestions from PR
2024-11-28 05:37:05 -05:00
Steve Moyer
7e54be49e1
chore(delegationtest): eliminate dependency on dave/jennifer/jen package
...
Resolves #68
2024-11-27 15:01:16 -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
Steve Moyer
ade2c7f858
feat(invocation): add WithArguments Option to set all arguments at once
2024-11-26 14:39:10 -05: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é
caae2f58bf
meta,args: add missing Include, add iterator to use normal or Readonly the same way
2024-11-21 11:25:15 +01:00
Michael Muré
d90715d1fe
delegation: WIP harmonisation of the constructors, issuer verification
2024-11-20 15:59:13 +01:00
Michael Muré
c19e38356d
delegationtest: make the generator a main()
2024-11-20 15:35:33 +01:00
Michael Muré
aea1880386
tests: lots of small asjustement
2024-11-20 14:55:48 +01:00
Michael Muré
e980d6c0b9
various sanding everywhere towards building the tookit
2024-11-20 12:34:24 +01:00
Steve Moyer
1098e76cba
test(invocation): add command.Covers and subject consistency tests
...
Also improve the maintainability of the tests by a) providing a set of fixed Personas
and then generating a slew of valid delegation tokens, invalid delegation tokens
and proof-chains thereof.
2024-11-19 14:35:46 -05:00
Michael Muré
bb36d61d93
invocation: rework the validation doc, fix missing invocation time check
2024-11-14 16:45:54 +01:00
Michael Muré
417ef78570
fix(invocation): cleanup proof verification algo
2024-11-14 15:03:49 +01:00
Steve Moyer
00d2380f14
fix(invocation): change verifyProof to chain the Issuer field
2024-11-14 07:21:27 -05:00
Steve Moyer
fc4c8f2de1
fix: issues discovered by invocation validation tests
2024-11-13 12:40:25 -05:00
Michael Muré
64b989452f
invocation: split out the delegation chain control
2024-11-13 16:58:48 +01:00
Michael Muré
92065ca0d3
invocation: fix proof documentation
2024-11-13 14:50:59 +01:00
Michael Muré
814cec1495
wip API exploration
2024-11-13 12:47:42 +01:00
Steve Moyer
0f70557309
feat(invocation): validate delegation proof chain
2024-11-13 12:43:30 +01:00
Michael Muré
89e4d5d419
wip API exploration
2024-11-13 12:43:29 +01:00
Fabio Bozzo
d3e97aaa08
AddEncrypted adds ciphertext always as bytes
2024-11-12 16:37:53 +01:00
Fabio Bozzo
fdff79d23a
split WithEncryptedMeta in options.go by type
2024-11-12 16:07:39 +01:00
Fabio Bozzo
81c7a0f80d
Merge branch 'v1' into v1-meta-encryption
...
# Conflicts:
# pkg/meta/meta.go
2024-11-12 15:30:54 +01:00
Fabio Bozzo
3987e8649c
refactor meta/internal/crypto and add key generation method
2024-11-12 15:29:48 +01:00
Fabio Bozzo
7cb0f97b30
Merge branch 'v1' into v1-meta-encryption
...
Signed-off-by: Fabio Bozzo <fabio.bozzo@gmail.com >
2024-11-12 15:07:19 +01:00
Michael Muré
c4a53f42b6
args,meta: harmonize supported types, with fast paths
2024-11-12 13:09:07 +01:00
Michael Muré
522181b16a
args: simplify API + code
2024-11-12 12:14:58 +01:00
Michael Muré
633b3d210a
token: move nonce generation to a shared space
2024-11-12 10:38:25 +01:00
Steve Moyer
1fa2b5e6fc
feat(invocation): use dedicated type for invocation.Token.Arguments
2024-11-07 13:50:20 -05:00
Steve Moyer
a4a8634eb8
Merge branch 'v1' into feat/complete-invocation-stub
2024-11-07 13:14:03 -05:00
Michael Muré
948087744d
literal: fix flacky test
...
also: make tests less noisy everywhere
2024-11-07 12:01:29 +01:00
Michael Muré
bcdaf0cca3
invocation: round of cleanups/fixes
2024-11-06 12:55:45 -05:00
Steve Moyer
d754c5837b
test(invocation): adds schema round-trip test
2024-11-06 12:51:24 -05:00
Steve Moyer
d89fb395e3
feat(invocation): ipld unseal to invocation
2024-11-06 12:48:41 -05:00