chris
7fb837645f
Synchronisation now shouldn't fail if the trusted host has no new messages
...
- fixed tests for Gradle builds
- fixed SerializationTest
2015-09-25 23:35:31 +02:00
chris
d67c932fb2
Added synchronization code and unit test.
...
Synchronisation fails if the trusted host has no new messages - this needs to be fixed (but shouldn't be an issue for real world applications)
2015-09-24 08:09:20 +02:00
chris
f89d1a342e
Fixed a few problems:
...
- some bugs that creeped in when I moved security into its own adapter
- improved some DB code as it doesn't work in Android anyway
- all entities should be serializable (very useful in Android)
2015-08-28 13:48:01 +02:00
chris
4911c268c2
Changed repositories to work with SQLDroid, which seems to have very limited support for blobs, at least it didn't work when I used stream.
2015-08-05 19:55:53 +02:00
chris
b8546e28af
Moving "Security" to a separate port, so there can be a Bouncycastle and a Spongycastle implementation. (BC doesn't work on Android, SC can't be used on Oracle's JVM)
2015-08-05 19:52:18 +02:00
chris
6f50c200ee
Added import/export to the demo app
...
- discovered private key length was wrong - fixed
- as things are broken anyway, refactored flyway migrations - you'll need to delete ~/jabit.*.db
2015-07-03 11:28:06 +02:00
chris
65fdd7d408
Dropped obsolete table and set lower POW target for test (there is no need)
2015-07-03 09:04:35 +02:00
chris
7f4c67f43e
Removing IV of received objects from requested objects list (I forgot that one)
2015-07-03 07:56:18 +02:00
chris
2c4d95af2f
smarter network code, fixed various issues
...
- deciding on the stream at creation time is just silly - it should be done based on the identities (this part is TODO)
- changed NodeRegistry so it doesn't store nodes - this should help to connect faster
- inventory items shouldn't be advertised to nodes that are already aware of them (issue #13 )
- objects shouldn't be requested more than once (issue #9 )
2015-07-01 06:57:30 +02:00
chris
c8960df2b3
issues #11 and #12 - import and export for Wallet Import Format
2015-06-27 07:52:28 +02:00
chris
b150d08188
Fixed NPE
2015-06-23 22:29:44 +02:00
chris
fefefe6809
Added some stuff necessary to publish to maven central - I hope it still builds on travis
2015-06-21 08:58:49 +02:00
chris
027efe43df
Version 0.1.2 bump - fixed problem where IPv4 Addresses weren't converted correctly.
2015-06-20 08:09:51 +02:00
chris
72d0fbe550
Version 0.1.0 bump
...
Updated Gradle file structure so the version and a few other things are only defined once
2015-06-18 21:26:08 +02:00
chris
1eb6851798
Updated and fixed JavaDoc
2015-06-18 18:25:47 +02:00
chris
6be8d51f6d
Distributable JAR build
...
- connection manager should now be rock stable
- does try to create new connections as long as there are less than eight active connections, which might result in more than eight outgoing connections, but this shouldn't be a problem
- some minor improvements and bug fixes
2015-06-18 13:41:11 +02:00
chris
9b0de83706
Issue # 5: initialize node repository if there are no nodes in DB
2015-06-17 06:00:03 +02:00
chris
c0a7acc609
Greatly improved network code - the "manage the node repository" part of issue #5 should now be OK
2015-06-16 06:41:59 +02:00
chris
ed0d1c2911
issue #4 : prevent connections to self, select random nodes to connect to
2015-06-13 17:37:55 +02:00
chris
bd5bf76904
Improved connection management, preventing multiple connections to the same node, and improved broadcast handling.
2015-06-12 06:57:20 +02:00
chris
b40d2e9f73
Fixed issue #8 - search for MAGIC bytes instead of just checking
...
(NOW it should work)
2015-06-11 20:00:37 +02:00
chris
a053b64fe6
Fixed issue #8 - search for MAGIC bytes instead of just checking
2015-06-11 19:42:44 +02:00
chris
effb2ac2fb
Fixing issue #4 - leading zeroes must be omitted on writing the coordinate components
2015-06-10 02:46:45 +02:00
chris
0566b27ce3
Fixed sending broadcasts
2015-06-10 01:02:03 +02:00
chris
35996019a2
There's something wrong with the V5 broadcast signature. I'm not quite shure what it is, so I made a test.
2015-06-10 00:49:44 +02:00
chris
b4683bba68
Broadcasts. Receiving seems to work, but there still seems to be a problem with sending them.
2015-06-09 22:45:24 +02:00
chris
f76864eebd
Added tests for all repositories, fixed some bugs and made database configurable
2015-06-05 13:43:56 +02:00
chris
274c16b748
Implemented sending messages (and fixed a few bugs on the way)
...
This closes issue #3
2015-05-29 13:17:00 +02:00
chris
593eebb33b
Added some JavaDoc
2015-05-27 19:06:46 +02:00
chris
f0d4f3f81f
Updated version to 0.0.1 (I don't know why 1.0 is default for new projects/modules)
2015-05-26 17:30:45 +02:00
chris
245ca22743
Updated documentation, added German translation
2015-05-24 21:55:37 +02:00
chris
b347214b66
Introduced some custom exceptions
2015-05-23 16:01:18 +02:00
chris
b793526f2f
Inventory items are now saved only if processing didn't fail. Receiving messages works, but there seems to be a problem with the POW check in some circumstances.
2015-05-23 10:27:05 +02:00
chris
6b3b361aa3
A simple command line application (WIP), and a few tests. Unfotrunately, receiving messages doesn't seem to work yet.
2015-05-22 20:51:57 +02:00
chris
1fbc4a1d74
Major refactoring
2015-05-19 19:16:20 +02:00
chris
07f185be35
Finally fixed address creation and private key import
2015-05-16 16:33:26 +02:00
chris
cb1392e0f4
Signatures work
2015-05-15 15:25:06 +02:00
chris
ed14e95d70
Signature check works
2015-05-15 12:36:57 +02:00
chris
b996774ffb
Some code cleanup
2015-05-12 19:37:42 +02:00
chris
46bb00c0aa
I don't believe it - encryption works!!!
2015-05-12 19:04:00 +02:00
chris
f23f432f07
Decryption works now!
...
(well, for v4 pubkeys at least)
2015-05-09 17:27:45 +02:00
chris
5d6484cdf3
Pubkey import now works properly
...
(well theoretically - practically we still need client support to store them)
2015-05-06 20:36:42 +02:00
chris
fde6398156
Fixed some stuff and broke some other - my goal is to solely use the java.security API
2015-05-05 20:48:42 +02:00
chris
a65907f13b
Some work on addresses and private keys that still doesn't work. As a side effect, sending objects now works basically.
2015-05-01 17:14:43 +02:00
chris
08c46b3a97
Some work on addresses, unfortunately it doesn't work yet.
2015-04-29 20:08:59 +02:00
chris
00bd6a08b7
Added SerializationTest for object payload (which is probably the most important)
2015-04-28 18:36:07 +02:00
chris
f00c6018e7
Some refactoring
...
- I didn't like the way the context was initialized
- The DatabaseRepository got too complicated
2015-04-24 11:11:08 +02:00
chris
d3499c9627
Added some address generation and handling
2015-04-24 09:53:58 +02:00
chris
51c1ecfd41
Minor refactoring
...
I think having the read method in the same place as the write method might help preventing some errors
There are some people who are strictly against using static methods. I suppose I'm not experienced enough yet.
2015-04-18 16:44:00 +02:00
chris
2cd857dd36
If we compare IVs, they of course must properly implement the equals method
...
This fixes the bug where we would request objects again that were already stored.
2015-04-18 14:34:04 +02:00