Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public constructor(config: CertConfig) {
this.schema = config.schema;
this.merkle = new Merkle({
hasher: async (v: any) => sha(256, toString(v)),
noncer: async (p) => sha(256, p.join('.')),
...config,
});
}