keys.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:bitcoin_tools 作者: sr-gi 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号