From 78fad8ec511d7010f966c8ec730d382fa0fa485c Mon Sep 17 00:00:00 2001 From: mr-zwets <53938059+mr-zwets@users.noreply.github.com> Date: Mon, 7 Feb 2022 15:39:38 +0100 Subject: [PATCH] Documentation fix for generatePrivateKey generatePrivateKey() only takes one argument, not ```secp256k1``` as first parameter so I removed it. --- src/lib/key/key-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/key/key-utils.ts b/src/lib/key/key-utils.ts index 62c5fcca..f4b9bf01 100644 --- a/src/lib/key/key-utils.ts +++ b/src/lib/key/key-utils.ts @@ -51,14 +51,14 @@ export const validateSecp256k1PrivateKey = (privateKey: Uint8Array) => { * import { randomBytes } from 'crypto'; * import { generatePrivateKey } from '@bitauth/libauth'; * - * const key = generatePrivateKey(secp256k1, () => randomBytes(32)); + * const key = generatePrivateKey(() => randomBytes(32)); * ``` * * **Browser Usage** * ```ts * import { generatePrivateKey } from '@bitauth/libauth'; * - * const key = generatePrivateKey(secp256k1, () => + * const key = generatePrivateKey(() => * window.crypto.getRandomValues(new Uint8Array(32)) * ); * ```