diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-19 08:32:55 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-19 08:32:55 -0700 |
commit | 754b098c4cb2aa0645a278c63a807211ac7a0eb8 (patch) | |
tree | 3f941eb9d9d97c4c7f4bf62c761fd3cf50b26dee /src/types.ts | |
parent | b9697f0cfe458530e24524f06c8f6153955b8af2 (diff) |
Move COSEKeys into types
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index 9c69c05..3773a8b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -73,3 +73,15 @@ export type CertificateInfo = { version: number, basicConstraintsCA: boolean, }; + +export enum COSEKEYS { + kty = 1, + alg = 3, + crv = -1, + x = -2, + y = -3, + n = -1, + e = -2, +}; + +export type COSEPublicKey = Map<COSEAlgorithmIdentifier, number | Buffer>; |