def get( participant: HexAddress, channel_identifier: ChannelID, msg_type: MessageTypeId, balance_hash: BalanceHash, nonce: Nonce, additional_hash: AdditionalHash, original_signature: Signature, v: int = 27, other_token_network: Optional[Contract] = None, ) -> bytes: _token_network = other_token_network or token_network private_key = get_private_key(participant) non_closing_signature = sign_balance_proof_message( private_key, _token_network.address, _token_network.functions.chain_id().call(), channel_identifier, msg_type, balance_hash, nonce, additional_hash, original_signature, v, ) return non_closing_signature
def get( participant: HexAddress, channel_identifier: ChannelID, v: int = 27, other_token_network: Optional[Contract] = None, ) -> bytes: _token_network = other_token_network or token_network private_key = get_private_key(participant) non_closing_signature = sign_balance_proof_message( private_key, _token_network.address, _token_network.functions.chain_id().call(), channel_identifier, MessageTypeId.BALANCE_PROOF, EMPTY_BALANCE_HASH, Nonce(0), EMPTY_ADDITIONAL_HASH, EMPTY_SIGNATURE, v, ) return non_closing_signature