Michael Muré
bb4725d87c
rename tokens to token
2024-10-01 17:02:49 +02:00
Michael Muré
8782554a7b
cleanup some obsolete testdata
2024-10-01 16:24:17 +02:00
Michael Muré
a8302ad441
Merge pull request #31 from ucan-wg/read-arbitrary
...
Read arbitrary
2024-10-01 15:32:47 +02:00
Michael Muré
b4dd8c0757
envelope: fuzz Inspect and FindTag
2024-10-01 15:04:46 +02:00
Michael Muré
4201ab2dca
tokens: expose Inspect and FindTag
2024-10-01 14:51:44 +02:00
Michael Muré
1b7059c029
token/read: add the usual collections of readers
2024-10-01 14:17:02 +02:00
Michael Muré
f3a5209cec
tokens: read arbitrary token
2024-10-01 13:51:56 +02:00
Steve Moyer
a2822f02c7
feat(envelope): expose an Inspect function
2024-09-30 09:58:08 -04:00
Steve Moyer
79955057a3
Merge branch 'v1' into feat/delegation/examples
2024-09-25 15:14:37 -04:00
Steve Moyer
59cebf8e74
style(delegation): display DAG-CBOR encoded as base64
2024-09-25 15:08:42 -04:00
Michael Muré
952a6bb922
did: add a MustParse function
2024-09-25 15:46:01 +02:00
Steve Moyer
2089aa2a6a
docs(delegation): add examples for New(), Root() and delegation.Token.FromSeald()
2024-09-24 15:31:34 -04:00
Steve Moyer
4a655506f9
Merge pull request #29 from ucan-wg/feat/reorganize-packages
...
feat: reorganize packages
2024-09-24 12:52:39 -04:00
Steve Moyer
93dd3ef719
refactor(delegation): merge in options file creation
2024-09-24 11:49:03 -04:00
Steve Moyer
6075c19957
feat: reorganize packages
2024-09-24 11:40:28 -04:00
Michael Muré
6161f2e440
delegation: split options into their own file for API readability
2024-09-24 15:43:46 +02:00
Steve Moyer
5202056cc7
Merge pull request #26 from ucan-wg/feat/calculate-cid
...
feat(cid): calculate the CID for decoded and newly created Tokeners
2024-09-24 09:39:53 -04:00
Steve Moyer
f779477118
chore(envelope): clean up TODOs
2024-09-24 09:08:07 -04:00
Steve Moyer
4974fed931
docs(delegation): add Go doc for Tag
2024-09-24 09:00:59 -04:00
Steve Moyer
0d9955b7b0
refactor(delegation): align Seal/Unseal names to rest of encode/decode names
2024-09-24 08:49:31 -04:00
Steve Moyer
6dd6f8a229
Merge branch 'feat/calculate-cid' of github.com:ucan-wg/go-ucan into feat/calculate-cid
2024-09-24 08:21:23 -04:00
Steve Moyer
5509cce513
docs: finish Go docs for CID and delegation.Token
2024-09-24 08:20:42 -04:00
Michael Muré
f4ad97679c
delegation: add bench for the round-trip steps
2024-09-24 14:09:56 +02:00
Steve Moyer
41c8bc7218
Merge pull request #28 from ucan-wg/feat/calculate-cid2
...
delegation/envelope: small cleanups
2024-09-24 07:13:36 -04:00
Michael Muré
371bf3b9f5
delegation/envelope: small cleanups
2024-09-24 13:03:35 +02:00
Steve Moyer
b14671009c
refactor(delegate): calculate CID in methods that explicitly state that they include that function
2024-09-24 06:46:48 -04:00
Steve Moyer
043c9b160d
feat(cid): calculate the CID for decoded and newly created Tokeners
2024-09-19 13:29:33 -04:00
Michael Muré
130168809b
Merge pull request #25 from ucan-wg/tune-validation
...
delegation: tune the validation step
2024-09-19 12:36:41 +02:00
Michael Muré
20886f1b5f
Merge pull request #24 from ucan-wg/meta-delegation
...
delegation: use the fancy Meta
2024-09-19 12:28:42 +02:00
Michael Muré
684c21c7a4
delegation: tune the validation step
...
- avoid a double parsing when the flow already parsed (command, policy)
- don't require a did:key, as other types are legal (but might require a resolver, TODO)
- make the command a struct instead of a pointer: we don't need to avoid copy, and the pointer can be interpreted as nil
- make the nonce parameter optional, but generate one if none is given
2024-09-19 11:16:33 +02:00
Michael Muré
4749243e3c
delegation: use the fancy Meta
2024-09-19 10:48:25 +02:00
Steve Moyer
c7f6034376
test(delegation): move the other relevant tests from the envelope branch
2024-09-18 15:54:46 -04:00
Steve Moyer
55070dcb43
fix(delegation): finish (haha) validation for tokens coming off the wire and for newly constructed tokens
2024-09-18 15:53:29 -04:00
Steve Moyer
fe594e9906
feat(delegation): copy Option plus New and Root constructors from the envelope branch
2024-09-18 15:48:07 -04:00
Steve Moyer
0781b84937
chore(delegation): remove empty file
2024-09-18 15:43:29 -04:00
Steve Moyer
f44b6ec2c3
feat(delegation): Rename View -> Token and make immutable (unexported fields and accessors)
2024-09-18 14:21:53 -04:00
Steve Moyer
abe8a8150a
feat(delegation): make model(s) unexported
2024-09-18 13:57:40 -04:00
Steve Moyer
f44b5cb921
feat(delegation): update to provide encoding/decoding straight from/to View
2024-09-18 12:20:54 -04:00
Steve Moyer
baf3edcf88
Merge pull request #23 from ucan-wg/envelope2
...
refactor(envelope): more tests/docs and functions not a type
2024-09-18 12:14:36 -04:00
Steve Moyer
7107d6bc85
fix(envelope): address PR comments RE IPLD iteration
2024-09-18 12:12:44 -04:00
Steve Moyer
c66dd5b2a4
feat(envelope): decode functions also return the Envelope's CID
2024-09-18 08:22:28 -04:00
Steve Moyer
70dc12d68e
refactor(envelope): more tests/docs and functions not a type
2024-09-18 07:50:02 -04:00
Michael Muré
dd1f54694f
Merge pull request #20 from ucan-wg/v1-fuzz-match-and-simple-glob
...
Rewrite simple glob match + FuzzMatch
2024-09-18 11:30:47 +02:00
Michael Muré
ac73cae3ec
glob: a bit of reshaping, and a benchmark
2024-09-18 11:24:37 +02:00
Fabio Bozzo
a19d3505fe
validateGlobPattern is now responsibility of the caller
2024-09-18 11:12:46 +02:00
Michael Muré
526a34b45d
Merge pull request #21 from ucan-wg/meta
...
add a pkg to handle meta values
2024-09-18 10:02:59 +02:00
Michael Muré
989f409fd0
add a pkg to handle meta values
2024-09-18 10:02:17 +02:00
Steve Moyer
40488dfc3d
Merge branch 'v1' of github.com:ucan-wg/go-ucan into v1
2024-09-17 11:19:05 -04:00
Steve Moyer
84122e57bc
fix(did): correct UCAN package name
2024-09-17 11:18:50 -04:00
Steve Moyer
4e15349c5e
fix(did): correct UCAN package name
2024-09-17 11:17:24 -04:00