@Before public void setUp() throws Exception { cryptoAmount = 1; destinationAddress = new CryptoAddress("asdasd", CryptoCurrency.BITCOIN); walletPublicKey = AsymmectricCryptography.derivePublicKey(AsymmectricCryptography.createPrivateKey()); notes = "NOTE"; deliveredByActorId = new ECCKeyPair().getPublicKey(); deliveredByActorType = Actors.EXTRA_USER; deliveredToActorId = new ECCKeyPair().getPublicKey(); deliveredToActorType = Actors.INTRA_USER; walletModuleCryptoWallet = new CryptoWalletWalletModuleManager(); walletModuleCryptoWallet.setErrorManager(errorManager); walletModuleCryptoWallet.setCryptoAddressBookManager(cryptoAddressBookManager); walletModuleCryptoWallet.setWalletContactsManager(walletContactsManager); walletModuleCryptoWallet.setOutgoingExtraUserManager(outgoingExtraUserManager); walletModuleCryptoWallet.initialize(); }
@Ignore @Test public void ConnectionRequest_SendValidRequest_ResponseSignatureVerified() throws Exception { setUpConnections(6); FMPPacket response = requestConnection(); boolean signatureVerification = AsymmectricCryptography.verifyMessageSignature( response.getSignature(), response.getMessage(), response.getSender()); assertThat(signatureVerification).isTrue(); }