Skip to content

Commit

Permalink
add header params from new rfcs
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Aug 13, 2024
1 parent 6038fc2 commit ed574d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cose/Params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export const PayloadLocation = -6801;
export const PayloadPreImageContentType = -6802;
export const PayloadHashAlgorithm = -6800;


export const CWTClaims = 15
export const Type = 16

export const Protected = {
...HeaderParameters,
PartyUIdentity,
Expand All @@ -50,6 +54,9 @@ export const Protected = {
PayloadHashAlgorithm, // new COSE Hash Envelop
PayloadPreImageContentType,
PayloadLocation,

Type, // https://datatracker.ietf.org/doc/html/rfc9596
CWTClaims // https://datatracker.ietf.org/doc/html/rfc9597
}

export const Unprotected = {
Expand Down

0 comments on commit ed574d4

Please sign in to comment.