36717a0826
refactor(token): migrate from ucan-wg to code.sonr.org/go
go continuous benchmark / Run Go continuous benchmark (push) Has been cancelled
Go Test / ubuntu (go 1.22.x) (push) Has been cancelled
Go Test / ubuntu (go 1.23.x) (push) Has been cancelled
2026-01-08 15:46:02 -05:00
ec4cc024d4
refactor(invocation): migrate from MetaMask/go-did-it to code.sonr.org/go/did-it
2026-01-08 15:45:57 -05:00
b23a6de775
refactor(delegation): migrate from github.com/ucan-wg to code.sonr.org/go
2026-01-08 15:45:53 -05: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é
6fb25481ce
delegation: add interop testing
2025-08-04 16:45:49 +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é
2bddab8b0c
delegation: add predicates to check if a delegation is a root or powerline
2025-01-29 14:07:49 +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é
7f9cb6426c
policy: implement the missing '!='
...
https://github.com/ucan-wg/delegation/pull/15
2025-01-22 14:12:41 +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
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é
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