add omitted error check
set ECDH public key for local side