File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
utilities/cryptography/signature Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ import logMethods from '#utilities/logs/classLogMethods';
21
21
import path from 'node:path' ;
22
22
import { toBase64Url } from '#crypto/utils.js' ;
23
23
import viat from '#crypto/cipherSuite/viat.js' ;
24
+ const securityTypes = {
25
+ hybrid : viat ,
26
+ quantum : 'quantum' ,
27
+ legacy : 'legacy' ,
28
+ } ;
24
29
export class CryptoID {
25
30
constructor ( config , optionalArg ) {
26
31
if ( config === false ) {
@@ -72,6 +77,7 @@ export class CryptoID {
72
77
async generate ( options ) {
73
78
this . signatureKeypair = await this . cipherSuite . signature . signatureKeypair ( ) ;
74
79
this . keyExchangeKeypair = await this . cipherSuite . keyExchange . keyExchangeKeypair ( ) ;
80
+ options ?. type && ( this . type = options . type ) ;
75
81
this . generateAddress ( ) ;
76
82
// console.log('KEY EXCHANGE', this.keyExchangeKeypair);
77
83
}
You can’t perform that action at this time.
0 commit comments