@bsv/sdk 1.9.18 → 1.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ import { SHA256HMAC } from './Hash.js';
8
8
  * @param nonce - Initial nonce either in number array or hexadecimal string.
9
9
  *
10
10
  * @throws Throws an error message 'Not enough entropy. Minimum is 256 bits' when entropy's length is less than 32.
11
+ * @throws Thrown an error message 'Nonce must be exactly 32 bytes (256 bits)' when nonce's length is less than 32.
11
12
  *
12
13
  * @example
13
14
  * const drbg = new DRBG('af12de...', '123ef...');
@@ -37,7 +38,7 @@ export default class DRBG {
37
38
  * @example
38
39
  * drbg.update('e13af...');
39
40
  */
40
- update(seed?: any): void;
41
+ update(seed?: number[]): void;
41
42
  /**
42
43
  * Generates deterministic random hexadecimal string of given length.
43
44
  * In every generation process, it also updates the internal state `K` and `V`.
@@ -1 +1 @@
1
- {"version":3,"file":"DRBG.d.ts","sourceRoot":"","sources":["../../../../src/primitives/DRBG.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAGtC;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,OAAO,IAAI;IACvB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;gBAEE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAkBjE;;;;;;;;OAQG;IACH,IAAI,IAAK,UAAU;IAInB;;;;;;;;;;OAUG;IACH,MAAM,CAAE,IAAI,CAAC,KAAA,GAAG,IAAI;IAepB;;;;;;;;;;OAUG;IACH,QAAQ,CAAE,GAAG,EAAE,MAAM,GAAG,MAAM;CAW/B"}
1
+ {"version":3,"file":"DRBG.d.ts","sourceRoot":"","sources":["../../../../src/primitives/DRBG.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAGtC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,OAAO,IAAI;IACvB,CAAC,EAAE,MAAM,EAAE,CAAA;IACX,CAAC,EAAE,MAAM,EAAE,CAAA;gBAEE,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAwBjE;;;;;;;;OAQG;IACH,IAAI,IAAK,UAAU;IAInB;;;;;;;;;;OAUG;IACH,MAAM,CAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI;IAe9B;;;;;;;;;;OAUG;IACH,QAAQ,CAAE,GAAG,EAAE,MAAM,GAAG,MAAM;CAW/B"}