public Bytes32 calculateECDHKeyAgreement(final SECPPublicKey partyKey) {
    return securityModule.calculateECDHKeyAgreement(
        () -> ECPointUtil.fromBouncyCastleECPoint(signatureAlgorithm.publicKeyAsEcPoint(partyKey)));
  }
Calculate ecdh key agreement.

@param partyKey the party key
@return the bytes32
crypto/services/src/main/java/org/hyperledger/besu/cryptoservices/NodeKey.java