On the class group pairing on elliptic curves