def sign_data(self, wif, hexdata):
        """Signing <hexdata> with <wif> private key."""
        data = deserialize.binary(hexdata)
        key = deserialize.key(self.testnet, wif)
        sigdata = control.sign_data(self.testnet, data, key)
        return serialize.signature(sigdata)
def sign_data ( self , wif , hexdata ) : data = deserialize . binary ( hexdata ) key = deserialize . key ( self . testnet , wif ) sigdata = control . sign_data ( self . testnet , data , key ) return serialize . signature ( sigdata )
Signing <hexdata> with <wif> private key.