From d22353c0d0a0e32da9129489dec11c64374a75fb Mon Sep 17 00:00:00 2001 From: wakgill <76528604+wakgill@users.noreply.github.com> Date: Thu, 7 Jan 2021 22:56:28 -0600 Subject: [PATCH] Create 97.md --- docs/forum/bitcoin-forum/97.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/forum/bitcoin-forum/97.md diff --git a/docs/forum/bitcoin-forum/97.md b/docs/forum/bitcoin-forum/97.md new file mode 100644 index 0000000..3d000e1 --- /dev/null +++ b/docs/forum/bitcoin-forum/97.md @@ -0,0 +1,33 @@ +--- +layout: forum +title: 'Re: Exception: 9key_error error' +grand_parent: Forum Posts +parent: Bitcoin Forum +nav_order: 97 +date: 2010-05-16 22:53:59 UTC +original: https://bitcointalk.org/index.php?topic=135.msg1133#msg1133 +--- + +# Re: Exception: 9key_error error + +--- + +``` +Re: Exception: 9key_error error +May 16, 2010, 10:53:59 PM + +Does it happen every time you run it, or just happened once at some random time? + +I've never seen that fail before. It's a call to OpenSSL that I assumed would never fail, but I put an error check there just in case. I can't imagine how it would fail. Out of memory maybe. + +The code is: + +key.h: + EC_KEY* pkey; + + pkey = EC_KEY_new_by_curve_name(NID_secp256k1); + if (pkey == NULL) + throw key_error("CKey::CKey() : EC_KEY_new_by_curve_name failed"); + +NID_secp256k1 is a constant. +```