docs(delegation): add Go doc for Tag

This commit is contained in:
Steve Moyer
2024-09-24 09:00:59 -04:00
parent 0d9955b7b0
commit 4974fed931

View File

@@ -14,8 +14,14 @@ import (
"github.com/ucan-wg/go-ucan/pkg/meta" "github.com/ucan-wg/go-ucan/pkg/meta"
) )
// [Tag] is the string used as a key within the SigPayload that identifies
// that the TokenPayload is a delegation.
//
// [Tag]: https://github.com/ucan-wg/delegation/tree/v1_ipld#type-tag
const Tag = "ucan/dlg@1.0.0-rc.1" const Tag = "ucan/dlg@1.0.0-rc.1"
// TODO: update the above Tag URL once the delegation specification is merged.
//go:embed delegation.ipldsch //go:embed delegation.ipldsch
var schemaBytes []byte var schemaBytes []byte