예제 #1
0
 public static byte[] GetEd25519PublicKey(byte[] privateKey)
 {
     byte[] publicKey = PublicKeyAuth.ExtractEd25519PublicKeyFromEd25519SecretKey(privateKey);
     return(Utilities.ConcatArrays(Constants.Ed25519KeyHeader, publicKey));
 }
예제 #2
0
 public static byte[] GetCurve25519PublicKey(byte[] privateKey)
 {
     byte[] publicKey = ScalarMult.Base(privateKey);
     return(Utilities.ConcatArrays(Constants.Curve25519KeyHeader, publicKey));
 }