ecdh method
Gets ecdh key
Implementation
Uint8List ecdh() {
if (this.curve!.id == Curve.CI_SECP521R1) {
return PDUtil.concat([PDUtil.hexToBytes('0400'), this.x, this.y]);
}
return PDUtil.concat([PDUtil.hexToBytes('04'), this.x, this.y]);
}