ed25519.py 文件源码

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

项目:cryptoconditions 作者: bigchaindb 项目源码 文件源码
def to_dict(self):
        """
        Generate a dict of the fulfillment

        Returns:
            dict: representing the fulfillment
        """
        return {
            'type': Ed25519Sha256.TYPE_NAME,
            'public_key': base58.b58encode(self.public_key),
            'signature': base58.b58encode(self.signature) if self.signature else None
        }

    # TODO Adapt according to outcomes of
    # https://github.com/rfcs/crypto-conditions/issues/16
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号