public static KeyPair GenerateKeyPair() { byte[] publicKey = new byte[32]; byte[] array = new byte[32]; SodiumLibrary.crypto_box_keypair(publicKey, array); return(new KeyPair(publicKey, array)); }