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
评论列表
文章目录