Ejemplo n.º 1
0
 /// <summary>
 /// Generates the Public Key for this Private Key
 /// </summary>
 /// <param name="secretKey">My Private Key</param>
 internal PublicKey(SecretKey secretKey)
 {
     KeyValue = AlgorithmService.GetPublicKey(secretKey: secretKey.KeyValue);
     Uid      = Guid.NewGuid();
 }
 public void GetPublicKeySegments() => Assert.IsTrue(NaCL_Curve25519TestVectors.BobPublicKey
                                                     .SequenceEqual(AlgorithmService.GetPublicKey(NaCL_Curve25519TestVectors.BobPrivateKey)));