use of io.nem.core.crypto.KeyPair in project nem2-sdk-java by nemtech.
the class AccountTest method shouldAcceptKeyPairAsConstructor.
@Test
void shouldAcceptKeyPairAsConstructor() {
KeyPair random = KeyPair.random(new Ed25519CryptoEngine());
Account account = new Account(random, NetworkType.MIJIN_TEST);
assertEquals(random.getPrivateKey().toString().toUpperCase(), account.getPrivateKey());
assertEquals(account.getAddress().getNetworkType(), NetworkType.MIJIN_TEST);
}
Aggregations