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
16 lines
477 B
Modula-2
16 lines
477 B
Modula-2
module github.com/ucan-wg/go-ucan
|
|
|
|
go 1.15
|
|
|
|
require (
|
|
github.com/golang-jwt/jwt v3.2.2+incompatible
|
|
github.com/ipfs/go-cid v0.0.7
|
|
github.com/libp2p/go-libp2p-core v0.7.0
|
|
github.com/multiformats/go-multibase v0.0.3
|
|
github.com/multiformats/go-multihash v0.0.14
|
|
github.com/multiformats/go-varint v0.0.6
|
|
github.com/stretchr/testify v1.9.0
|
|
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
|
|
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57 // indirect
|
|
)
|