Exemplo n.º 1
0
        /// <summary>
        /// Verifies the given keys.
        /// </summary>
        /// <param name="keys">The keys to verifiy</param>
        /// <returns>True, if the keys are valid; false, if not</returns>
        public bool VerifyKeys(Keys keys)
        {
            io.storj.libstorj.Keys javaKeys = new io.storj.libstorj.Keys(keys.User, keys.Password, keys.Mnemonic);

            return(_storjJava.verifyKeys(javaKeys) == 0);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Imports the given keys using the passphrase.
 /// </summary>
 /// <param name="keys">The keys to import</param>
 /// <param name="passphrase">The passphrase for the keys</param>
 /// <returns>True, if the import was successfull; false, if not</returns>
 public bool ImportKeys(Keys keys, string passphrase)
 {
     io.storj.libstorj.Keys javaKeys = new io.storj.libstorj.Keys(keys.User, keys.Password, keys.Mnemonic);
     return(_storjJava.importKeys(javaKeys, passphrase));
 }