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