Skip to content

Make sure explicit digest labeling when not aligning with alg in pay #35

Description

@zamicol

All digest values in paymust align with alg unless explicitly denoted. (Digest serialization)

I don't think this library is covering that or needs to, but I should double check. We may want to write a canary test.

For example, these example values in pay need to be correctly interpreted by external systems, but not necessarily Coz, which poses a difficult question: if Coz isn't handling it, what's the best practice for third parties?

ES256:U5XUZots-WmQYcQWmsO751Xk0yeVi9XUKWQ2mGz6Aqg
SHA-256:oDBDAg4xplHQby6iQ2lZMS1Jz4Op0bNoD5LK3KxEUZo

Perhaps including a ParseDigest function that handles <alg>:<digest> is warranted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions