How to use @0xcert/merkle - 1 common examples

To help you get started, we’ve selected a few @0xcert/merkle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 0xcert / framework / packages / 0xcert-cert / src / core / cert.ts View on Github external
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,
    });
  }

@0xcert/merkle

Implementation of basic functions of binary Merkle tree.

MIT
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis

Popular @0xcert/merkle functions