(ecdh-shared-secret private-key public-key) -> string
Produces the shared secret that is part of the ECDH key agreement protocol.
Example:
This example was generated on a single machine. As such, it was necessary to create two "KK" variables. This would not be the case in practice. See MOSREF ECDH Affiliation and <ecdh-key>.
>> (define KK-Console (ecdh-shared-secret Cq (import-ecdh Dp))) :: #f >> (define KK-Drone (ecdh-shared-secret Dq (import-ecdh Cp))) :: #f >> (string=? KK-Console KK-Drone) :: #t