def parse_dict(self, data):
"""
Generate fulfillment payload from a dict
Args:
data (dict): description of the fulfillment
Returns:
Fulfillment
"""
self.public_key = base58.b58decode(data['public_key'])
if data['signature']:
self.signature = base58.b58decode(data['signature'])
# TODO Adapt according to outcomes of
# https://github.com/rfcs/crypto-conditions/issues/16
评论列表
文章目录