@sd-jwt/types
Advanced tools
Comparing version 0.9.2-next.3 to 0.9.2-next.6
@@ -9,3 +9,4 @@ declare const SD_SEPARATOR = "~"; | ||
type DisclosureData<T> = [string, string, T] | [string, T]; | ||
type HashAlgorithm = 'sha-256' | 'sha-256-128' | 'sha-256-120' | 'sha-256-96' | 'sha-256-64' | 'sha-256-32' | 'sha-384' | 'sha-512' | 'sha3-224' | 'sha3-256' | 'sha3-384' | 'sha3-512' | 'blake2s-256' | 'blake2b-256' | 'blake2b-512' | 'k12-256' | 'k12-512'; | ||
declare const IANA_HASH_ALGORITHMS: readonly ["sha-256", "sha-256-128", "sha-256-120", "sha-256-96", "sha-256-64", "sha-256-32", "sha-384", "sha-512", "sha3-224", "sha3-256", "sha3-384", "sha3-512", "blake2s-256", "blake2b-256", "blake2b-512", "k12-256", "k12-512"]; | ||
type HashAlgorithm = (typeof IANA_HASH_ALGORITHMS)[number]; | ||
type SDJWTConfig = { | ||
@@ -187,2 +188,2 @@ omitTyp?: boolean; | ||
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Extensible, type HashAlgorithm, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, type JwtPayload, type KBOptions, KB_JWT_TYP, type KbVerifier, type OrPromise, type PresentationFrame, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload }; | ||
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Extensible, type HashAlgorithm, type Hasher, type HasherAndAlg, type HasherAndAlgSync, type HasherSync, IANA_HASH_ALGORITHMS, type JwtPayload, type KBOptions, KB_JWT_TYP, type KbVerifier, type OrPromise, type PresentationFrame, type SD, type SDJWTCompact, type SDJWTConfig, SD_DECOY, SD_DIGEST, SD_LIST_KEY, SD_SEPARATOR, type SaltGenerator, type SaltGeneratorSync, type Signer, type SignerSync, type Verifier, type VerifierSync, type kbHeader, type kbPayload }; |
@@ -23,2 +23,3 @@ "use strict"; | ||
__export(src_exports, { | ||
IANA_HASH_ALGORITHMS: () => IANA_HASH_ALGORITHMS, | ||
KB_JWT_TYP: () => KB_JWT_TYP, | ||
@@ -38,4 +39,24 @@ SD_DECOY: () => SD_DECOY, | ||
var KB_JWT_TYP = "kb+jwt"; | ||
var IANA_HASH_ALGORITHMS = [ | ||
"sha-256", | ||
"sha-256-128", | ||
"sha-256-120", | ||
"sha-256-96", | ||
"sha-256-64", | ||
"sha-256-32", | ||
"sha-384", | ||
"sha-512", | ||
"sha3-224", | ||
"sha3-256", | ||
"sha3-384", | ||
"sha3-512", | ||
"blake2s-256", | ||
"blake2b-256", | ||
"blake2b-512", | ||
"k12-256", | ||
"k12-512" | ||
]; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
IANA_HASH_ALGORITHMS, | ||
KB_JWT_TYP, | ||
@@ -42,0 +63,0 @@ SD_DECOY, |
{ | ||
"name": "@sd-jwt/types", | ||
"version": "0.9.2-next.3+06e3319", | ||
"version": "0.9.2-next.6+5e64551", | ||
"description": "sd-jwt draft 7 implementation in typescript", | ||
@@ -56,3 +56,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "06e3319e4293845cd830fbe41d3607fee4e493f8" | ||
"gitHead": "5e6455158648525d09320dd562422d9f9f33ffaa" | ||
} |
@@ -13,21 +13,24 @@ export const SD_SEPARATOR = '~'; | ||
// based on https://www.iana.org/assignments/named-information/named-information.xhtml | ||
export type HashAlgorithm = | ||
| 'sha-256' | ||
| 'sha-256-128' | ||
| 'sha-256-120' | ||
| 'sha-256-96' | ||
| 'sha-256-64' | ||
| 'sha-256-32' | ||
| 'sha-384' | ||
| 'sha-512' | ||
| 'sha3-224' | ||
| 'sha3-256' | ||
| 'sha3-384' | ||
| 'sha3-512' | ||
| 'blake2s-256' | ||
| 'blake2b-256' | ||
| 'blake2b-512' | ||
| 'k12-256' | ||
| 'k12-512'; | ||
export const IANA_HASH_ALGORITHMS = [ | ||
'sha-256', | ||
'sha-256-128', | ||
'sha-256-120', | ||
'sha-256-96', | ||
'sha-256-64', | ||
'sha-256-32', | ||
'sha-384', | ||
'sha-512', | ||
'sha3-224', | ||
'sha3-256', | ||
'sha3-384', | ||
'sha3-512', | ||
'blake2s-256', | ||
'blake2b-256', | ||
'blake2b-512', | ||
'k12-256', | ||
'k12-512', | ||
] as const; | ||
export type HashAlgorithm = (typeof IANA_HASH_ALGORITHMS)[number]; | ||
export type SDJWTConfig = { | ||
@@ -34,0 +37,0 @@ omitTyp?: boolean; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
38029
592