reverted escda publickey extraction
your changes. Lines starting