use of bisq.common.crypto.KeyStorage in project bisq-core by bisq-network.
the class EncryptionTest method setup.
@Before
public void setup() throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException, CryptoException {
Security.addProvider(new BouncyCastleProvider());
dir = File.createTempFile("temp_tests", "");
// noinspection ResultOfMethodCallIgnored
dir.delete();
// noinspection ResultOfMethodCallIgnored
dir.mkdir();
KeyStorage keyStorage = new KeyStorage(dir);
keyRing = new KeyRing(keyStorage);
}
use of bisq.common.crypto.KeyStorage in project bisq-core by bisq-network.
the class SigTest method setup.
@Before
public void setup() throws CertificateException, NoSuchAlgorithmException, KeyStoreException, IOException, CryptoException {
Security.addProvider(new BouncyCastleProvider());
dir = File.createTempFile("temp_tests", "");
// noinspection ResultOfMethodCallIgnored
dir.delete();
// noinspection ResultOfMethodCallIgnored
dir.mkdir();
KeyStorage keyStorage = new KeyStorage(dir);
keyRing = new KeyRing(keyStorage);
}
use of bisq.common.crypto.KeyStorage in project bisq-desktop by bisq-network.
the class TradesChartsViewModelTest method setup.
@Before
public void setup() throws IOException {
Security.addProvider(new BouncyCastleProvider());
dir = File.createTempFile("temp_tests1", "");
// noinspection ResultOfMethodCallIgnored
dir.delete();
// noinspection ResultOfMethodCallIgnored
dir.mkdir();
keyRing = new KeyRing(new KeyStorage(dir));
}
Aggregations