ae0cb176ae5a4282e8cf9d6b88fc51dd28870f8c
This is probably overkill but most of the code is needed to validate the command string. My thought was that this could then be used in the delegation and invocation structs to provide a stronger type. The Command struct itself is a bit more convenient with segments represented by []string but this might need to be changed to simply string to simplify IPLD encoding/decoding
UCAN Tokens in Go
Originally by @b5 as one of the first from scratch implementations of UCAN outside of the Fission teams initial work in TypeScript / Haskell.
If you're interested in updating this codebase to the 1.0 version of the UCAN spec, get involved in the discussion »
About UCAN Tokens
User Controlled Authorization Networks (UCANs) are a way of doing authorization where users are fully in control. OAuth is designed for a centralized world, UCAN is the distributed user controlled version.
UCAN Gopher
Artwork by Bruno Monts. Thank you Renee French for creating the Go Gopher
Description
Languages
Go
100%
