Exemple #1
0
    def get(participant,
            channel_identifier,
            balance_hash,
            nonce,
            additional_hash,
            closing_signature,
            v=27):
        private_key = get_private_key(participant)

        non_closing_signature = sign_balance_proof_update_message(
            private_key, token_network.address,
            int(token_network.call().chain_id()), channel_identifier,
            balance_hash, nonce, additional_hash, closing_signature, v)
        return non_closing_signature
Exemple #2
0
    def get(participant,
            channel_identifier,
            balance_hash,
            nonce,
            additional_hash,
            closing_signature,
            v=27,
            other_token_network=None):
        _token_network = other_token_network or token_network
        private_key = get_private_key(participant)

        non_closing_signature = sign_balance_proof_update_message(
            private_key, _token_network.address,
            int(_token_network.functions.chain_id().call()),
            channel_identifier, balance_hash, nonce, additional_hash,
            closing_signature, v)
        return non_closing_signature