This Go library provides types and utilities for working with Device Attestation (DA) tokens as specified in draft-poirier-rats-eat-da.
- DA token type and helpers
- CBOR serialization/deserialization
- Utilities for parsing and validating DA tokens
- Unit tests with example vectors
go get github.com/veraison/daimport "github.com/veraison/da"
// Unmarshal a DA token from CBOR
var token da.Token
err := token.FromCBOR(cborBytes)
// Marshal a DA token to CBOR
cborBytes, err := token.ToCBOR()go test -v ./...Apache-2.0. See LICENSE for details.