Skip to content

Make a marshallable interface/type constraint #292

@chrisfenner

Description

@chrisfenner
  • Marshal takes interface{} so will panic if you accidentally pass something that is not marshallable.

    • Possible improvements:

      • Define an interface for types that can be Marshalled in a compact way that minimizes code bloat.
  • Type annotations are a bit magic.

    • Someone working on this code might get the gotpm: type annotations incorrect or slightly incorrect. It would be interesting to look into ways to make it more obvious what to do when introducing new TPM structures from the spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    tpmdirectIssues specific to the tpmdirect development work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions