@sd-jwt/types
Advanced tools
Comparing version 0.9.2-next.1 to 0.9.2-next.2
@@ -9,6 +9,7 @@ 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'; | ||
type SDJWTConfig = { | ||
omitTyp?: boolean; | ||
hasher?: Hasher; | ||
hashAlg?: string; | ||
hashAlg?: HashAlgorithm; | ||
saltGenerator?: SaltGenerator; | ||
@@ -186,2 +187,2 @@ signer?: Signer; | ||
export { type Base64urlString, type DECOY, type DisclosureData, type DisclosureFrame, type Extensible, 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, 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 }; |
{ | ||
"name": "@sd-jwt/types", | ||
"version": "0.9.2-next.1+d6f70c3", | ||
"version": "0.9.2-next.2+3c85e8e", | ||
"description": "sd-jwt draft 7 implementation in typescript", | ||
@@ -56,3 +56,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "d6f70c37efaafe5123b7ffd1115069ba6e0e4e6e" | ||
"gitHead": "3c85e8e283fa53e871a14c321b3a04fc4380b875" | ||
} |
@@ -12,6 +12,26 @@ 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 type SDJWTConfig = { | ||
omitTyp?: boolean; | ||
hasher?: Hasher; | ||
hashAlg?: string; | ||
hashAlg?: HashAlgorithm; | ||
saltGenerator?: SaltGenerator; | ||
@@ -18,0 +38,0 @@ signer?: Signer; |
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
37103
548