import data from './certs.json' ; export interface CertInfo { subject : string ; issuer : string ; notbefore : number ; notafter : number ; pubkey : string ; rawX509data : string ; } export class Trustlist { static instance = new Trustlist ( ) ; private initialized = false ; private certInfos : CertInfo [ ] = [ ] ; async getCertInfos ( ) { if ( ! this . initialized ) { this . initialized = true ; const certs = data . certs as CertInfo [ ] ; this . certInfos . push ( ... certs ) ; } return this . certInfos ; } }