Commit Graph

8331 Commits

Author SHA1 Message Date
Mike Hearn
363b335896 Minor: use "platform.*" as the naming hierarchy for protocols that are supposed to be standardised. 2016-01-12 12:14:46 +01:00
Mike Hearn
717651db45 Minor: remove a TODO that is now done. 2016-01-12 12:14:45 +01:00
Mike Hearn
78849f44d2 Protocols: simplify the two party (dvp) protocol some more, now that we've switched to Quasar. There's no longer any need to define InitialArgs objects. 2016-01-12 12:14:45 +01:00
Mike Hearn
c59603c26f Implement timestamping as a separate service that the two party (dvp) protocol calls out to via a simple client object.
Lots of big changes in this commit:
* Introduction of "network map" and "legally identifiable node" concepts to the networking abstraction.
* State machines framework now lets you send messages to multiple different destinations in the same protocol.
* Timestamping service that can run inside a node is now implemented and unit tested.
* Starting to benefit from the improvements in Quasar (the initialArgs concept can mostly be got rid of now, etc)
2016-01-12 12:14:45 +01:00
Mike Hearn
412212a860 Switch from JavaFlow to Quasar to provide fibers.
Quasar is a more modern, better maintained and more powerful framework. The main improvement is that this lets us avoid the ClassLoader tricks that JavaFlow was requiring, by using an agent. This introduces a requirement to mark methods that might be on a suspended stack as @Suspendable, but means that code interops cleanly. In Java 9 it is hoped that the marking requirement may even go away entirely.
2016-01-12 12:14:39 +01:00
Mike Hearn
018825d7d7 Minor: fix the JDK logging bug workaround 2016-01-07 16:20:44 +01:00
Mike Hearn
9e22cda15c Messaging interface now exposes the nodes own address. 2016-01-07 15:58:26 +01:00
Mike Hearn
5f8dec4ff9 Minor: add an "until" infix function that applies to Temporal's ... the primary purpose of this beyond a trivial bit of extra readability, is null safety. 2016-01-07 15:58:26 +01:00
Mike Hearn
2190fbf2ee Minor: reintroduce using Java serialisation for KeyPair as the JDK customises it and the Kryo serialisation is both bloated and (more problematically) non-deterministic! 2016-01-07 15:58:26 +01:00
Mike Hearn
0a9fffe8b7 Minor: remove unused import 2016-01-07 15:58:26 +01:00
Mike Hearn
0d0e75e6ff Commands must have at least one pubkey. 2016-01-07 15:58:26 +01:00
Mike Hearn
992b56a2b2 Bump Dokka version to fix gradle build 2016-01-05 11:46:26 +01:00
Mike Hearn
5aeab5c933 Minor: move a bit of code around, add some javadocs 2016-01-04 11:24:14 +01:00
Mike Hearn
81812d2f2d Kotlin 1.0.0-beta-4584 (docs) 2015-12-24 17:22:00 +00:00
Mike Hearn
cd7d01917f Kotlin 1.0.0-beta-4584 2015-12-24 17:21:10 +00:00
Mike Hearn
31fbf5e1eb Improve the transactions API a small amount with lazily deserialized access to the WireTransaction inside a SignedTransaction, and id/hash fields (again lazily calculated).
This required bringing back the ImmutableClassSerializer and registration of classes that need it, to ensure the constructors run.
2015-12-22 16:41:25 +00:00
Mike Hearn
3c23c4f53d Minor: move TransactionForVerification to be next to TransactionGroup and rename the file to be more descriptive. 2015-12-22 15:30:49 +00:00
Mike Hearn
049f0aa3b3 Rename PartialTransaction -> TransactionBuilder. The term "partial transaction" should be reserved to mean a transaction that is lacking some signatures as it's in the process of being built up by multiple parties. 2015-12-22 15:28:38 +00:00
Mike Hearn
89b1a5648b Docs: regen HTML + reorganise left hand menu a bit. 2015-12-22 15:15:38 +00:00
Mike Hearn
c217702606 Merged tx-simplifications into master 2015-12-22 15:07:51 +00:00
Mike Hearn
ef12d474d5 Refresh 'overview' page with info about the latest data model. 2015-12-22 15:03:25 +00:00
Mike Hearn
bcc56859af Add a unit test to check before/after processing by the dummy timestamper.
Tweak the timestamping API a bit.
2015-12-22 15:03:11 +00:00
Mike Hearn
77554d619c Merged in Frederic_Dalibard/r3prototyping (pull request #11)
Minor change in doc source (getting-set-up.rst):
2015-12-22 09:36:25 +00:00
Frederic_Dalibard
ba99bfde7c Minor:
- changed Kotlin version
- changed "playground.git" into "r3repository.git"
2015-12-21 22:16:19 +01:00
Mike Hearn
784452ac50 Reorganise how time is handled: timestamping authorities are now oracles who sign the entire transaction.
As a result, TimestampedWireTransaction is gone. Timestamp fields are gone. Timestamp commands contain before/after fields. The notion of time tolerance is now a part of the timestamping interface and timestamp data.

TODO:
- Unit tests to verify the notBefore/notAfter logic
- Documentation update
2015-12-18 19:14:33 +01:00
Mike Hearn
6144ccc2c7 Small cleanup of commands.
1. Rename Command -> CommandData, WireCommand -> Command, PartialTransaction.addArg -> addCommand
2. Add some helper functions to PartialTransaction to make creation of transactions simpler.
2015-12-18 12:38:26 +01:00
Mike Hearn
4cec5dac02 Minor: remove ambiguous c'tor in PartialTransaction and rename addItems -> withItems 2015-12-16 16:25:58 +01:00
Mike Hearn
ab9e026053 Minor: some small serialisation type safety improvements 2015-12-16 15:24:52 +01:00
Mike Hearn
5863d489bc Minor: misc comment/whitespace fixes. 2015-12-15 18:54:22 +01:00
Mike Hearn
d6cdc8b8de Delete the notes directory, it is long since obsoleted by the wiki and the docs site. 2015-12-15 17:19:54 +01:00
Mike Hearn
e3cfe0ae49 Docs: fix a few typos and rewrap a few code samples in the state machines article. 2015-12-15 15:52:07 +01:00
Mike Hearn
bf647f6c15 Docs: regen all docs 2015-12-15 14:27:06 +01:00
jamescarlyle
b38b80b98a Updated README.md with "Cheat-Sheet" pre-requisite details 2015-12-15 13:22:35 +01:00
Mike Hearn
1bb729d329 Merged in asset-trade-protocol (pull request #9)
Asset trade protocol
2015-12-15 13:17:58 +01:00
Mike Hearn
c4549a5ecb Docs: regen HTML 2015-12-15 13:16:20 +01:00
Mike Hearn
06ee9db3f6 Minor: provide a random63BitValue() function and use it instead of the previously duplicated code. Update docs. 2015-12-15 13:16:13 +01:00
Mike Hearn
020a594a60 State machines: thread safety and a few more comments. 2015-12-15 13:01:57 +01:00
Mike Hearn
3c578550a9 State machines: don't leak references to completed state machines. Add an extension function for working with futures. 2015-12-14 21:41:57 +01:00
Mike Hearn
62f7237364 Docs: regen HTML 2015-12-14 18:22:54 +01:00
Mike Hearn
4198de7ff0 Messaging: add docs on the messaging and protocol state machine systems. 2015-12-14 18:22:21 +01:00
Mike Hearn
d43bbe8faa Trading: move session ID into the initial args to avoid possible confusion at the start. 2015-12-14 18:22:00 +01:00
Mike Hearn
f15e24e7be Messaging: Rename MessagingSystem to MessagingService for consistency with other interfaces. 2015-12-14 17:39:48 +01:00
Mike Hearn
3f19e68b3f Messaging: another minor simplification to the state machines framework. This is not the end! 2015-12-14 17:35:20 +01:00
Mike Hearn
9720d4e404 Messaging: more huge simplifications to the state machine framework.
The usage now looks straightforward enough to document and put into a tutorial.
2015-12-11 20:21:22 +01:00
Mike Hearn
89ba996a3c Two party trading: big changes to support and test serialisation, refactorings ... 2015-12-11 15:19:13 +01:00
Mike Hearn
65c5fa7502 Messaging: (mock) in memory network implementation improvements.
- Now supports simulated restart of nodes
- Messages sent to non-running nodes are queued for delivery
- Messages received by a node that don't match any topics are queued until handlers are registered

These improvements help us unit test various robustness features and ensure things work in truly concurrent context where there can be race conditions like receiving a message before the node had a chance to register the right handlers.
2015-12-11 15:19:13 +01:00
Mike Hearn
0ca47156bc Trading protocol work in progress 2015-12-11 15:19:13 +01:00
Mike Hearn
fed0ae5629 Add placeholder interfaces for various service submodules. 2015-12-11 15:17:44 +01:00
Mike Hearn
2df8153cda Minor: rename wallet -> cashStates in the Cash contract spending function. 2015-12-11 15:17:28 +01:00
Mike Hearn
f13b9b00e4 Minor: fix Arrays.asList serialisation by adding the extra serialisers lib as a dependency 2015-12-10 17:14:49 +01:00