How to use the bls-wasm.bls.SecretKey function in bls-wasm

To help you get started, we’ve selected a few bls-wasm 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 spacemeshos / app / src / services / signatures.ts View on Github external
public GenerateSecretDerivedKey(sec: bls.SecretKey, idx: number) : bls.SecretKey {
      // todo: implement key deriviation
      const sec1 = bls.SecretKey();
      sec1.setByCPRNG();
      return sec1;
  }
github spacemeshos / app / src / services / signatures.ts View on Github external
public NewSecretKeyFromSeed(hexStr: string) : bls.SecretKey {
      const sec = bls.SecretKey();
      const a = bls.fromHexStr(hexStr);
      sec.setLittleEndian(a);
      return sec;
  }
github spacemeshos / app / src / services / signatures.ts View on Github external
public NewSecretKeyFromHex(hexStr: string) : bls.SecretKey {
      const sec = bls.SecretKey();
      sec.deserialize(hexStr);
      return sec;
  }

bls-wasm

BLS signature for Node.js by WebAssembly

BSD-3-Clause
Latest version published 2 months ago

Package Health Score

65 / 100
Full package analysis