Skip to content

Commit cba2dee

Browse files
committed
feat
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent ed84738 commit cba2dee

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/enums/externalReferenceType.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export enum ExternalReferenceType {
6060
ElectronicSignature = 'electronic-signature',
6161
DigitalSignature = 'digital-signature',
6262
RFC9116 = 'rfc-9116',
63+
Citation = 'citation',
64+
Patent = 'patent',
65+
PatentAssertion = 'patent-assertion',
66+
PatentFamily = 'patent-family',
6367

6468
// --
6569

src/enums/hashAlogorithm.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ export enum HashAlgorithm {
3030
'BLAKE2b-384' = 'BLAKE2b-384',
3131
'BLAKE2b-512' = 'BLAKE2b-512',
3232
BLAKE3 = 'BLAKE3',
33+
'Streebog-256' = 'Streebog-256',
34+
'Streebog-512' = 'Streebog-512',
3335
}

src/spec/consts.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,9 @@ export const Spec1dot7: Readonly<_SpecProtocol> = Object.freeze(new _Spec(
471471
HashAlgorithm['BLAKE2b-256'],
472472
HashAlgorithm['BLAKE2b-384'],
473473
HashAlgorithm['BLAKE2b-512'],
474-
HashAlgorithm.BLAKE3
474+
HashAlgorithm.BLAKE3,
475+
HashAlgorithm['Streebog-256'],
476+
HashAlgorithm['Streebog-512'],
475477
],
476478
/^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/,
477479
[
@@ -517,6 +519,11 @@ export const Spec1dot7: Readonly<_SpecProtocol> = Object.freeze(new _Spec(
517519
ExternalReferenceType.ElectronicSignature,
518520
ExternalReferenceType.DigitalSignature,
519521
ExternalReferenceType.RFC9116,
522+
ExternalReferenceType.Citation,
523+
ExternalReferenceType.Patent,
524+
ExternalReferenceType.PatentAssertion,
525+
ExternalReferenceType.PatentFamily,
526+
ExternalReferenceType.RFC9116,
520527
ExternalReferenceType.Other
521528
],
522529
true,

0 commit comments

Comments
 (0)