modified bitcoin receiver (marco.caressa@eng.it)