def generate_keys():
""" Gets a new elliptic curve key pair using the SECP256K1 elliptic curve (the one used by Bitcoin).
:return: elliptic curve key pair.
:rtype: list
"""
# Generate the key pair from a SECP256K1 elliptic curve.
sk = SigningKey.generate(curve=SECP256k1)
pk = sk.get_verifying_key()
return sk, pk
评论列表
文章目录