tfchain/types/FulfillmentTypes.py
def signature_fulfill(self, public_key, signature):
        """
        Fulfill the signature, once and once only.
        """
        # guarantee base conditions
        if self.fulfilled:
            raise tfchain.errors.DoubleSignError("SignatureRequest is already fulfilled for address {}".format(self.wallet_address))

        # ensure public key is the key of the wallet who owns this request
        if not isinstance(public_key, PublicKey):
            raise TypeError("public key is expected to be of type PublicKey, not {}".format(type(public_key)))
        address = str(public_key.unlockhash)
        if self._unlockhash.type != UnlockHashType.NIL and self.wallet_address != address: # only check if the request is not using a NIL Condition
            raise ValueError("signature request cannot be fulfilled using address {}, expected address {}".format(address, self.wallet_address))

        # add the signature to the callback
        self._callback.signature_add(public_key=public_key, signature=signature)
        # ensure this was the one and only time we signed
        self._signed = True

        Fulfill the signature, once and once only.
        
Fulfill the signature, once and once only.
Fulfill the signature once and once only .
def signature_fulfill(self, public_key, signature):
        if self.fulfilled:
            raise tfchain.errors.DoubleSignError("SignatureRequest is already fulfilled for address {}".format(self.wallet_address))
        if not isinstance(public_key, PublicKey):
            raise TypeError("public key is expected to be of type PublicKey, not {}".format(type(public_key)))
        address = str(public_key.unlockhash)
        if self._unlockhash.type != UnlockHashType.NIL and self.wallet_address != address: 
            raise ValueError("signature request cannot be fulfilled using address {}, expected address {}".format(address, self.wallet_address))
        self._callback.signature_add(public_key=public_key, signature=signature)
        self._signed = True
def signature_fulfill ( self , public_key , signature ) : if self . fulfilled : raise tfchain . errors . DoubleSignError ( "SignatureRequest is already fulfilled for address {}" . format ( self . wallet_address ) ) if not isinstance ( public_key , PublicKey ) : raise TypeError ( "public key is expected to be of type PublicKey, not {}" . format ( type ( public_key ) ) ) address = str ( public_key . unlockhash ) if self . _unlockhash . type != UnlockHashType . NIL and self . wallet_address != address : raise ValueError ( "signature request cannot be fulfilled using address {}, expected address {}" . format ( address , self . wallet_address ) ) self . _callback . signature_add ( public_key = public_key , signature = signature ) self . _signed = True
Fulfill the signature, once and once only.
Fulfill the signature once and once only .
"""
        Fulfill the signature, once and once only.
        """ # guarantee base conditions # ensure public key is the key of the wallet who owns this request # only check if the request is not using a NIL Condition # add the signature to the callback # ensure this was the one and only time we signed
self
public_key
signature