Alan Shaw
19b8dc5e48
fix: dag json encoding and simplify type system loading
2025-11-03 09:55:25 +00:00
Alan Shaw
77dce827d3
feat: add tests using invocation test vectors
2025-11-02 21:48:46 +00:00
Michael Muré
0647e4ff8a
adjust the toolkit to the new location
2025-08-07 14:28:16 +02:00
Michael Muré
5891bdcd5d
update go-varsig, go-did-it, add missing resolution options
2025-08-05 16:54:18 +02:00
Michael Muré
e7edccdd71
wire the DID resolution options
2025-07-31 17:49:01 +02:00
Michael Muré
33e8a8a821
Integrate go-varsig and go-did-it
...
- go-varsig provides a varsig V1 implementation
- go-did-it provides a complete and extensible DID implementation
2025-07-31 15:00:31 +02:00
Steve Moyer
3faf9d598c
fix(invocation): also update docs and examples
2025-03-11 13:14:53 -04:00
Steve Moyer
fbf55e98ba
Update token/invocation/options.go
...
Co-authored-by: Michael Muré <batolettre@gmail.com >
Signed-off-by: Steve Moyer <smoyer64@gmail.com >
2025-03-11 12:57:08 -04:00
Steve Moyer
05c2573d95
Update token/invocation/options.go
...
Co-authored-by: Michael Muré <batolettre@gmail.com >
Signed-off-by: Steve Moyer <smoyer64@gmail.com >
2025-03-11 12:56:49 -04:00
Steve Moyer
d7472621ce
Update token/invocation/invocation.go
...
Co-authored-by: Michael Muré <batolettre@gmail.com >
Signed-off-by: Steve Moyer <smoyer64@gmail.com >
2025-03-11 12:56:34 -04:00
Steve Moyer
7b44f480ee
fix(invocation): iat incorrectly named InvokedAt instead of IssuedAt
2025-03-11 12:41:24 -04:00
Michael Muré
68469db91a
minor cleanups
2025-02-27 14:35:53 +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é
5695609f8b
container: the writer should not ask for a CID, as its discarded
2025-01-13 12:24:04 +01:00
Michael Muré
5660df32b5
delegation,invocation: proper String() function
2024-12-10 12:20:18 +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é
d0d4ec3abe
delegation,invocation: meta can be nil in the model, but not in the view
2024-12-04 19:53:05 +01:00
Fabio Bozzo
311b942a6d
validate invocation token args
2024-12-02 14:22:42 +01:00
Fabio Bozzo
5b816ccc62
streamline int overflow check for token timestamps
2024-12-02 12:06:06 +01: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é
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
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
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
Michael Muré
c4a53f42b6
args,meta: harmonize supported types, with fast paths
2024-11-12 13:09:07 +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
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
Steve Moyer
4932e32052
feat(invocation): produce example output similar to spec
2024-11-06 12:44:48 -05:00
Steve Moyer
a52b48cf47
feat(invocation): provide New constructor and encoding to wire-format
2024-11-06 12:41:36 -05:00
Steve Moyer
ce7f653ab0
chore(invocation): clean up left-over (and unneeded) conversion of prf
2024-11-06 12:16:49 -05:00
Michael Muré
7d4f973171
invocation: round of cleanups/fixes
2024-11-06 12:16:48 -05:00