This is the Java version of the CorDapp template. The Kotlin equivalent is here.
Based on the CBDC report by Auer and Bohme , there are 4 types of architecture being constructed based on the structure of legal claims and the role based access being implemented by the central bank authorities.
-
Direct CBDC :
- operated by the central banks for providing retail services.
- has the direct control by the central bank for managing the liquidity and exchange value .
- centralised silo for maintaining the ledger of transactions and retail payments .
- for instance the current experiments by the BdF and EU .
- For possible intresting use case : trying to issue IOU or bonds for the given bank as securities.
-
Intermediate CBDC
-
Indirect / synthetic CBDC :
See https://docs.corda.net/getting-set-up.html.
See https://docs.corda.net/tutorial-cordapp.html#running-the-example-cordapp.
You can find out more about the node shell here.
Run the runTemplateClient
Gradle task. By default, it connects to the node with RPC address localhost:10006
with
the username user1
and the password test
.
Run the Run Template Client
run configuration. By default, it connects to the node with RPC address localhost:10006
with the username user1
and the password test
.
clients/src/main/java/com/template/webserver/
defines a simple Spring webserver that connects to a node via RPC and
allows you to interact with the node over HTTP.
The API endpoints are defined here:
clients/src/main/java/com/template/webserver/Controller.java
And a static webpage is defined here:
clients/src/main/resources/static/
Run the runTemplateServer
Gradle task. By default, it connects to the node with RPC address localhost:10006
with
the username user1
and the password test
, and serves the webserver on port localhost:10050
.
The static webpage is served on:
http://localhost:10050
While the sole template endpoint is served on:
http://localhost:10050/templateendpoint
For a guided example of how to extend this template, see the Hello, World! tutorial here.