Error gen_key_pair('secp256k1')


I am trying to use the gen_key_pair method from the python documentation and I am getting an error.

I am using the following code: zymkey.client.gen_key_pair(‘secp256k1’)
The key_type was found in the codebase as it is not documented so I am not sure if I am using the correct key_type.

The error is:
File “/usr/local/lib/python2.7/dist-packages/zymkey/”, line 582, in gen_key_pair
raise AssertionError(‘bad return code %d’ % ret)
AssertionError: bad return code -1

Can anybody help please?

@bradders -

Unfortunately, that also is not supported in the current product. It will be supported in the HSM6 product early 2021. Apologies that the python api doc needs updating. You can check function/method support in the C or C++ API document(s) for now.