35 KiB
Changelog
Unreleased
Here are brief summaries of what's changed between each snapshot release. This includes guidance on how to upgrade code from the previous milestone release.
Serializing an inner class (non-static nested class in Java, inner class in Kotlin) will be rejected explicitly by the serialization framework. Prior to this change it didn't work, but the error thrown was opaque (complaining about too few arguments to a constructor). Whilst this was possible in the older Kryo implementation (Kryo passing null as the synthesised reference to the outer class) as per the Java documentation here we are disallowing this as the paradigm in general makes little sense for Contract States
Fix CORDA-1258. Custom serializers were spuriously registered every time a serialization factory was fetched from the cache rather than only once when it was created. Whilst registering serializers that already exist is essentially a no-op, it's a performance overhead for a very frequent operation that hits a synchronisation point (and is thus flagged as contended by our perfomance suite)
Update the fast-classpath-scanner dependent library version from 2.0.21 to 2.12.3
Note
Whilst this is not the latest version of this library, that being 2.18.1 at time of writing, versions later
than 2.12.3 (including 2.12.4) exhibit a different issue.
Node can be shut down abruptly by
shutdown
function in CordaRPCOps or gracefully (draining flows first) throughgracefulShutdown
command from shell.Carpenter Exceptions will be caught internally by the Serializer and rethrown as a
NotSerializableException
- Specific details of the error encountered are logged to the node's log file. More information can be enabled by setting the debug level to
trace
; this will cause the full stack trace of the error to be dumped into the log.
- Specific details of the error encountered are logged to the node's log file. More information can be enabled by setting the debug level to
Parsing of
NodeConfiguration
will now fail if unknown configuration keys are found.The web server now has its own
web-server.conf
file, separate fromnode.conf
.Introduced a placeholder for custom properties within
node.conf
; the property key is "custom".Property keys with double quotes (e.g. "key") in
node.conf
are no longer allowed, for rationale refer tocorda-configuration-file
.java.math.BigInteger serialization support added.
java.security.cert.CRLReason added to the default Whitelist.
java.security.cert.X509CRL serialization support added.
Added
NetworkMapCache.getNodesByLegalName
for querying nodes belonging to a distributed service such as a notary cluster where they all share a common identity.NetworkMapCache.getNodeByLegalName
has been tightened to throw if more than one node with the legal name is found.Per CorDapp configuration is now exposed.
CordappContext
now exposes aCordappConfig
object that is populated at CorDapp context creation time from a file source during runtime.Introduced Flow Draining mode, in which a node continues executing existing flows, but does not start new. This is to support graceful node shutdown/restarts. In particular, when this mode is on, new flows through RPC will be rejected, scheduled flows will be ignored, and initial session messages will not be consumed. This will ensure that the number of checkpoints will strictly diminish with time, allowing for a clean shutdown.
Make the serialisation finger-printer a pluggable entity rather than hard wiring into the factory
Removed blacklisted word checks in Corda X.500 name to allow "Server" or "Node" to be use as part of the legal name.
Separated our pre-existing Artemis broker into an RPC broker and a P2P broker.
Refactored
NodeConfiguration
to exposeNodeRpcOptions
(using top-level "rpcAddress" property still works with warning).Modified
CordaRPCClient
constructor to take aSSLConfiguration?
additional parameter, defaulted tonull
.Introduced
CertificateChainCheckPolicy.UsernameMustMatchCommonName
sub-type, allowing customers to optionally enforce username == CN condition on RPC SSL certificates.Modified
DriverDSL
and sub-types to allow specifying RPC settings for the Node.Modified the
DriverDSL
to start Cordformation nodes allowing automatic generation of "rpcSettings.adminAddress" in case "rcpSettings.useSsl" isfalse
(the default).Introduced
UnsafeCertificatesFactory
allowing programmatic generation of X509 certificates for test purposes.JPA Mapping annotations for States extending
CommonSchemaV1.LinearState
andCommonSchemaV1.FungibleState
on the participants collection need to be moved to the actual class. This allows to properly specify the unique table name per a collection. See: DummyDealStateSchemaV1.PersistentDummyDealStateJPA Mapping annotations for States extending
CommonSchemaV1.LinearState
andCommonSchemaV1.FungibleState
on the participants collection need to be moved to the actual State class. This allows developers to properly specify the table name for the participants collection. For an example on how the mapping can be done, see: DummyDealStateSchemaV1.PersistentDummyDealStateJDBC drivers for SQL server and PostgresSQL are no longer bundled as part of Corda releases. If you are running a node on such databases you need to provide the associated driver as described in
node-database
.
R3 Corda 3.0 Developer Preview
X.509 certificates now have an extension that specifies the Corda role the certificate is used for, and the role hierarchy is now enforced in the validation code. See
net.corda.core.internal.CertRole
for the current implementation until final documentation is prepared. Certificates atNODE_CA
,WELL_KNOWN_SERVICE_IDENTITY
and above must only ever be issued by network services and therefore issuance constraints are not relevant to end users. TheTLS
andWELL_KNOWN_LEGAL_IDENTITY
roles must be issued by theNODE_CA
certificate issued by the Doorman, andCONFIDENTIAL_IDENTITY
certificates must be issued from aWELL_KNOWN_LEGAL_IDENTITY
certificate. For a detailed specification of the extension please seepermissioning
.The network map service concept has been re-designed. More information can be found in
network-map
.- The previous design was never intended to be final but was rather a quick implementation in the earliest days of the Corda project to unblock higher priority items. It suffered from numerous disadvantages including lack of scalability, as one node was expected to hold open and manage connections to every node on the network; not reliable; hard to defend against DoS attacks; etc.
- There is no longer a special network map node for distributing the network map to the other nodes. Instead the network map is now a collection of signed
NodeInfo
files distributed via HTTP. - The
certificateSigningService
config has been replaced bycompatibilityZoneURL
which is the base URL for the doorman registration and for downloading the network map. There is also an end-point for the node to publish its node-info object, which the node does each time it changes.networkMapService
config has been removed. - To support local and test deployments, the node polls the
additional-node-infos
directory for these signedNodeInfo
objects which are stored in its local cache. On startup the node generates its own signed file with the filename format "nodeInfo-*". This can be copied to every node'sadditional-node-infos
directory that is part of the network. - Cordform (which is the
deployNodes
gradle task) does this copying automatically for the demos. TheNetworkMap
parameter is no longer needed. - For test deployments we've introduced a bootstrapping tool (see
setting-up-a-corda-network
). extraAdvertisedServiceIds
,notaryNodeAddress
,notaryClusterAddresses
andbftSMaRt
configs have been removed. The configuration of notaries has been simplified into a singlenotary
config object. Seecorda-configuration-file
for more details.- Introducing the concept of network parameters which are a set of constants which all nodes on a network must agree on to correctly interop. These can be retrieved from
ServiceHub.networkParameters
. - One of these parameters,
maxTransactionSize
, limits the size of a transaction, including its attachments, so that all nodes have sufficient memory to validate transactions. - The set of valid notaries has been moved to the network parameters. Notaries are no longer identified by the CN in their X.500 name.
- Single node notaries no longer have a second separate notary identity. Their main identity is their notary identity. Use
NetworkMapCache.notaryIdentities
to get the list of available notaries.
- Added
NetworkMapCache.getNodesByLegalName
for querying nodes belonging to a distributed service such as a notary cluster where they all share a common identity.NetworkMapCache.getNodeByLegalName
has been tightened to throw if more than one node with the legal name is found.
- The common name in the node's X.500 legal name is no longer reserved and can be used as part of the node's name.
- Moved
NodeInfoSchema
to internal package as the node info's database schema is not part of the public API. This was needed to allow changes to the schema.
Support for external user credentials data source and password encryption [CORDA-827].
- * Integrate database migration tool: http://www.liquibase.org/ :
- The migration files are split per
MappedSchemas
. (added new property: migrationResource used to point to the resource file containing the db changes corresponding to the JPA entities) - config flag
database.initialiseSchema
was renamed to:database.runMigration
(if true then the migration is run during startup just before hibernate is initialised.) - config flag:
database.serverNameTablePrefix
was removed as we no longer use table prefixes - New command line argument:
—just-generate-db-migration outputSqlFile
: this will generate the delta from the last release, and will output the resulting sql into the outputSqlFile. It will not write to the db. It will not start the node! - New command line argument:
--just-run-db-migration
: this will only run the db migration. It will not start the node!
- The migration files are split per
- * Exporting additional JMX metrics (artemis, hibernate statistics) and loading Jolokia agent at JVM startup when using
DriverDSL and/or cordformation node runner.
- * Removed confusing property
database.initDatabase
, enabling its guarded behaviour with the dev-mode. In devMode Hibernate will try to create or update database schemas, otherwise it will expect relevant schemas to be present in the database (pre configured via DDL scripts or equivalent), and validate these are correct.
ConfigUtilities
now read system properties for a node. This allow to specify data source properties at runtime.AttachmentStorage
now allows providing metadata on attachments upload - username and filename, currently as plain strings. Those can be then used for querying, utilizingqueryAttachments
method of the same interface.SSH Server
- The node can now expose shell via SSH server with proper authorization and permissioning built in.CordaRPCOps
implementation now checks permissions for any function invocation, rather than just when starting flows.wellKnownPartyFromAnonymous()
now always resolve the key to aParty
, then the party to the well known party. Previously if it was passed aParty
it would use its name as-is without verifying the key matched that name.OpaqueBytes.bytes
now returns a clone of its underlyingByteArray
, and has been redeclared asfinal
. This is a minor change to the public API, but is required to ensure that classes likeSecureHash
are immutable.- Experimental support for PostgreSQL: CashSelection done using window functions
FlowLogic
now exposes a series of function calledreceiveAll(...)
allowing to joinreceive(...)
instructions.- Renamed "plugins" directory on nodes to "cordapps"
- The
Cordformation
gradle plugin has been split intocordformation
andcordapp
. The former builds and deploys nodes for development and testing, the latter turns a project into a cordapp project that generates JARs in the standard CorDapp format. Cordapp
now has a name field for identifying CorDapps and all CorDapp names are printed to console at startup.- Enums now respect the whitelist applied to the Serializer factory serializing / deserializing them. If the enum isn't either annotated with the @CordaSerializable annotation or explicitly whitelisted then a NotSerializableException is thrown.
- Gradle task
deployNodes
can have an additional parameterconfigFile
with the path to a properties file to be appended to node.conf. - Cordformation node building DSL can have an additional parameter
configFile
with the path to a properties file to be appended to node.conf. FlowLogic
now has a static method calledsleep
which can be used in certain circumstances to help with resolving contention over states in flows. This should be used in place of any other sleep primitive since these are not compatible with flows and their use will be prevented at some point in the future. Pay attention to the warnings and limitations described in the documentation for this method. This helps resolve a bug inCash
coin selection. A new static propertycurrentTopLevel
returns the top mostFlowLogic
instance, or null if not in a flow.CordaService
annotated classes should be upgraded to take a constructor parameter of typeAppServiceHub
which allows services to start flows marked with theStartableByService
annotation. For backwards compatability service classes with onlyServiceHub
constructors will still work.TimeWindow
now has alength
property that returns the length of the time-window as ajava.time.Duration
object, ornull
if the time-window isn't closed.- A new
SIGNERS_GROUP
with ordinal 6 has been added toComponentGroupEnum
that corresponds to theCommand
signers. PartialMerkleTree
is equipped with aleafIndex
function that returns the index of a hash (leaf) in the partial Merkle tree structure.- A new function
checkCommandVisibility(publicKey: PublicKey)
has been added toFilteredTransaction
to check if every command that a signer should receive (e.g. an Oracle) is indeed visible. - Changed the AMQP serialiser to use the officially assigned R3 identifier rather than a placeholder.
- The
ReceiveTransactionFlow
can now be told to record the transaction at the same time as receiving it. Using this feature, better support for observer/regulator nodes has been added. Seetutorial-observer-nodes
. - Added an overload of
TransactionWithSignatures.verifySignaturesExcept
which takes in a collection ofPublicKey
s. DriverDSLExposedInterface
has been renamed toDriverDSL
and thewaitForAllNodesToFinish()
method has instead become a parameter on driver creation.- Values for the
database.transactionIsolationLevel
config now follow thejava.sql.Connection
int constants but without the "TRANSACTION" prefix, i.e. "NONE", "READ_UNCOMMITTED", etc. - Peer-to-peer communications is now via AMQP 1.0 as default. Although the legacy Artemis CORE bridging can still be used by setting the
useAMQPBridges
configuration property to false. - The Artemis topics used for peer-to-peer communication have been changed to be more consistent with future cryptographic agility and to open up the future possibility of sharing brokers between nodes. This is a breaking wire level change as it means that nodes after this change will not be able to communicate correctly with nodes running the previous version. Also, any pending enqueued messages in the Artemis message store will not be delivered correctly to their original target. However, assuming a clean reset of the artemis data and that the nodes are consistent versions, data persisted via the AMQP serializer will be forward compatible.
- The ability for CordaServices to register callbacks so they can be notified of shutdown and clean up resource such as open ports.
- Enterprise Corda only: Compatibility with SQL Server 2017 and SQL Azure databases.
- Enterprise Corda only: node configuration property
database.schema
and documented existing database properties. - Enterprise Corda only: Compatibility with PostgreSQL 9.6 database.
- Enterprise Corda only: Compatibility with Oracle 11g RC2 and 12c database.
- Move to a message based control of peer to peer bridge formation to allow for future out of process bridging components. This removes the legacy Artemis bridges completely, so the
useAMQPBridges
configuration property has been removed. - A
CordaInternal
attribute has been added to identify properties that are not intended to form part of the public api and as such are not intended for public use. This is alongside the existingDoNotImplement
attribute for classes which provide Corda functionality to user applications, but should not be implemented by consumers, and any classes which are defined in.internal
packages, which are also not for public use. - Marked
stateMachine
onFlowLogic
asCordaInternal
to make clear that is it not part of the public api and is only for internal use - Provided experimental support for specifying your own webserver to be used instead of the default development webserver in
Cordform
using thewebserverJar
argument - Created new
StartedMockNode
andUnstartedMockNode
classes which are wrappers around our MockNode implementation that expose relevant methods for testing without exposing internals, create these using aMockNetwork
. - The test utils in
Expect.kt
,SerializationTestHelpers.kt
,TestConstants.kt
andTestUtils.kt
have moved from thenet.corda.testing
package to thenet.corda.testing.core
package, andFlowStackSnapshot.kt
has moved to thenet.corda.testing.services
package. Moving existing classes out of thenet.corda.testing.*
package will help make it clearer which parts of the api are stable. Scripts have been provided to smooth the upgrade process for existing projects in thetools\scripts
directory of the Corda repo.
Corda 2.0
OpaqueBytes.bytes
now returns a clone of its underlyingByteArray
, and has been redeclared asfinal
. This is a minor change to the public API, but is required to ensure that classes likeSecureHash
are immutable.FlowLogic
now has a static method calledsleep
which can be used in certain circumstances to help with resolving contention over states in flows. This should be used in place of any other sleep primitive since these are not compatible with flows and their use will be prevented at some point in the future. Pay attention to the warnings and limitations described in the documentation for this method. This helps resolve a bug inCash
coin selection. A new static property currentTopLevel returns the top most FlowLogic instance, or null if not in a flow.
Corda 1.0
Unification of VaultQuery And VaultService APIs Developers now only need to work with a single Vault Service API for all needs.
Java 8 lambdas now work property with Kryo during check-pointing.
Java 8 serializable lambdas now work property with Kryo during check-pointing.
String constants have been marked as
const
type in Kotlin, eliminating cases where functions of the formget<constant name>()
were created for the Java API. These can now be referenced by their name directly.FlowLogic
communication has been extensively rewritten to use functions onFlowSession
as the base for communication between nodes.- Calls to
send()
,receive()
andsendAndReceive()
on FlowLogic should be replaced with calls to the function of the same name onFlowSession
. Note that the replacement functions do not take in a destination parameter, as this is defined in the session. - Initiated flows now take in a
FlowSession
instead ofParty
in their constructor. If you need to access the counterparty identity, it is in thecounterparty
property of the flow session.
- Calls to
Added X509EdDSAEngine to intercept and rewrite EdDSA public keys wrapped in X509Key instances. This corrects an issue with verifying certificate paths loaded from a Java Keystore where they contain EdDSA keys.
Confidential identities are now complete:
- The identity negotiation flow is now called
SwapIdentitiesFlow
, renamed fromTransactionKeyFlow
. - generateSpend() now creates a new confidential identity for the change address rather than using the identity of the input state owner.
- Please see the documentation
key-concepts-identity
andapi-identity
for more details.
- The identity negotiation flow is now called
Remove the legacy web front end from the SIMM demo.
NodeInfo
andNetworkMapCache
changes:- Removed
NodeInfo::legalIdentity
in preparation for handling of multiple identities. We left list ofNodeInfo::legalIdentitiesAndCerts
, the first identity still plays a special role of main node identity. - We no longer support advertising services in network map. Removed
NodeInfo::advertisedServices
,serviceIdentities
andnotaryIdentity
. - Removed service methods from
NetworkMapCache
:partyNodes
,networkMapNodes
,notaryNodes
,regulatorNodes
,getNodesWithService
,getPeersWithService
,getRecommended
,getNodesByAdvertisedServiceIdentityKey
,getAnyNotary
,notaryNode
,getAnyServiceOfType
. To get all knownNodeInfo
's callallNodes
. - In preparation for
NetworkMapService
redesign and distributing notaries throughNetworkParameters
we addedNetworkMapCache::notaryIdentities
list to enable to lookup for notary parties known to the network. RelatedCordaRPCOps::notaryIdentities
was introduced. Other special nodes parties like Oracles or Regulators need to be specified directly in CorDapp or flow. - Moved
ServiceType
andServiceInfo
tonet.corda.nodeapi
package as services are only required on node startup.
- Removed
Adding enum support to the class carpenter
ContractState::contract
has been movedTransactionState::contract
and it's type has changed toString
in order to support dynamic classloading of contract and contract constraints.CorDapps that contain contracts are now automatically loaded into the attachment storage - for CorDapp developers this now means that contracts should be stored in separate JARs to flows, services and utilities to avoid large JARs being auto imported to the attachment store.
About half of the code in test-utils has been moved to a new module
node-driver
, and the test scope modules are now located in atesting
directory.CordaPluginRegistry
has been renamed toSerializationWhitelist
and moved to thenet.corda.core.serialization
package. The API for whitelisting types that can't be annotated was slightly simplified. This class used to contain many things, but as we switched to annotations and classpath scanning over time it hollowed out until this was the only functionality left. You also need to rename your services resource file to the new class name. An associated property onMockNode
was renamed fromtestPluginRegistries
totestSerializationWhitelists
.Contract Upgrades: deprecated RPC authorisation / deauthorisation API calls in favour of equivalent flows in ContractUpgradeFlow. Implemented contract upgrade persistence using JDBC backed persistent map.
Vault query common attributes (state status and contract state types) are now handled correctly when using composite criteria specifications. State status is overridable. Contract states types are aggregatable.
Cash selection algorithm is now pluggable (with H2 being the default implementation)
Removed usage of Requery ORM library (repalced with JPA/Hibernate)
Vault Query performance improvement (replaced expensive per query SQL statement to obtain concrete state types with single query on start-up followed by dynamic updates using vault state observable))
Vault Query fix: filter by multiple issuer names in
FungibleAssetQueryCriteria
Following deprecated methods have been removed:
- In
DataFeed
first
andcurrent
, replaced bysnapshot
second
andfuture
, replaced byupdates
- In
CordaRPCOps
stateMachinesAndUpdates
, replaced bystateMachinesFeed
verifiedTransactions
, replaced byverifiedTransactionsFeed
stateMachineRecordedTransactionMapping
, replaced bystateMachineRecordedTransactionMappingFeed
networkMapUpdates
, replaced bynetworkMapFeed
- In
Due to security concerns and the need to remove the concept of state relevancy (which isn't needed in Corda),
ResolveTransactionsFlow
has been made internal. Instead merge the receipt of theSignedTransaction
and the subsequent sub-flow call toResolveTransactionsFlow
with a single call toReceiveTransactionFlow
. The flow running on the counterparty must useSendTransactionFlow
at the correct place. There is alsoReceiveStateAndRefFlow
andSendStateAndRefFlow
for dealing withStateAndRef
's.Vault query soft locking enhancements and deprecations
- removed original
VaultService
`softLockedStates query mechanism. - introduced improved
SoftLockingCondition
filterable attribute inVaultQueryCriteria
to enable specification of different soft locking retrieval behaviours (exclusive of soft locked states, soft locked states only, specified by set of lock ids)
- removed original
Trader demo now issues cash and commercial paper directly from the bank node, rather than the seller node self-issuing commercial paper but labelling it as if issued by the bank.
Merged handling of well known and confidential identities in the identity service. Registration now takes in an identity (either type) plus supporting certificate path, and de-anonymisation simply returns the issuing identity where known. If you specifically need well known identities, use the network map, which is the authoritative source of current well known identities.
Currency-related API in
net.corda.core.contracts.ContractsDSL
has moved to`net.corda.finance.CurrencyUtils
.Remove IssuerFlow as it allowed nodes to request arbitrary amounts of cash to be issued from any remote node. Use CashIssueFlow instead.
Some utility/extension functions (
sumOrThrow
,sumOrNull
,sumOrZero
onAmount
andCommodity
) have moved to be static methods on the classes themselves. This improves the API for Java users who no longer have to see or known about file-level FooKt style classes generated by the Kotlin compile, but means that IntelliJ no longer auto-suggests these extension functions in completion unless you add import lines for them yourself (this is Kotlin IDE bug KT-15286).:finance
module now acting as a CorDapp with regard to flow registration, schemas and serializable types.WebServerPluginRegistry
now has acustomizeJSONSerialization
which can be overridden to extend the REST JSON serializers. In particular the IRS demos must now register theBusinessCalendar
serializers.Moved
:finance
gradle project files into anet.corda.finance
package namespace. This may require adjusting imports of Cash flow references and also ofStartFlow
permission ingradle.build
files.Removed the concept of relevancy from
LinearState
. TheContractState
's relevancy to the vault can be determined by the flow context, the vault will process any transaction from a flow which is not derived from transaction resolution verification.Removed the tolerance attribute from
TimeWindowChecker
and thus, there is no extra tolerance on the notary side anymore.The
FungibleAsset
interface has been made simpler. TheCommands
grouping interface that included theMove
,Issue
andExit
interfaces have all been removed, while themove
function has been renamed towithNewOwnerAndAmount
to be consistent with thewithNewOwner
function of theOwnableState
.The
IssueCommand
interface has been removed fromStructures
, because, due to the introduction of nonces per transaction component, the issue command does not need a nonce anymore and it does not require any other attributes.As a consequence of the above and the simpler
FungibleAsset
format, fungible assets likeCash
now useclass Issue : TypeOnlyCommandData()
, because it's only its presence (Issue
) that matters.A new PrivacySalt transaction component is introduced, which is now an attribute in
TraversableTransaction
and inherently inWireTransaction
.A new
nonces: List<SecureHash>
feature has been added toFilteredLeaves
.Due to the
nonces
andPrivacySalt
introduction, new functions have been added toMerkleTransaction
:fun <T : Any> serializedHash(x: T, privacySalt: PrivacySalt?, index: Int): SecureHash
fun <T : Any> serializedHash(x: T, nonce: SecureHash): SecureHash
fun computeNonce(privacySalt: PrivacySalt, index: Int)
.A new
SignatureMetadata
data class is introduced with two attributes,platformVersion: Int
andschemeNumberID: Int
(the signature scheme used).As part of the metadata support in signatures, a new
data class SignableData(val txId: SecureHash, val signatureMetadata: SignatureMetadata)
is introduced, which represents the object actually signed.The unused
MetaData
andSignatureType
incrypto
package have been removed.The
class TransactionSignature(bytes: ByteArray, val by: PublicKey, val signatureMetadata:
SignatureMetadata): DigitalSignature(bytes)
class is now utilised Vs the oldDigitalSignature.WithKey
for Corda transaction signatures. Practically, it takes thesignatureMetadata
as an extra input, in order to support signing both the transaction and the extra metadata.To reflect changes in the signing process, the
Crypto
object is now equipped with the:fun doSign(keyPair: KeyPair, signableData: SignableData): TransactionSignature
andfun doVerify(txId: SecureHash, transactionSignature: TransactionSignature): Boolean
functions.SerializationCustomization.addToWhitelist()
now accepts multiple classes via varargs.Two functions to easily sign a
FilteredTransaction
have been added toServiceHub
:createSignature(filteredTransaction: FilteredTransaction, publicKey: PublicKey)
andcreateSignature(filteredTransaction: FilteredTransaction)
to sign with the legal identity key.A new helper method
buildFilteredTransaction(filtering: Predicate<Any>)
is added toSignedTransaction
to directly build aFilteredTransaction
using provided filtering functions, without first accessing thetx: WireTransaction
.Test type
NodeHandle
now has methodstop(): CordaFuture<Unit>
that terminates the referenced node.- Fixed some issues in IRS demo:
- Fixed leg and floating leg notional amounts were not displayed for created deals neither in single nor in list view.
- Parties were not displayed for created deals in single view.
- Non-default notional amounts caused the creation of new deals to fail.
Warning
Renamed configuration property key basedir to baseDirectory. This will require updating existing configuration files.
- Removed deprecated parts of the API.
- Removed
PluginServiceHub
. Replace withServiceHub
for@CordaService
constructors. X509CertificateHolder
has been removed from the public API, replaced byjava.security.X509Certificate
.- Moved
CityDatabase
out ofcore
and intofinance
- All of the
serializedHash
andcomputeNonce
functions have been removed fromMerkleTransaction
. TheserializedHash(x: T)
andcomputeNonce
were moved toCryptoUtils
. - Two overloaded methods
componentHash(opaqueBytes: OpaqueBytes, privacySalt: PrivacySalt,
componentGroupIndex: Int, internalIndex: Int): SecureHash
andcomponentHash(nonce: SecureHash, opaqueBytes: OpaqueBytes): SecureHash
have been added toCryptoUtils
. Similarly tocomputeNonce
, they internally use SHA256d for nonce and leaf hash computations. - The
verify(node: PartialTree, usedHashes: MutableList<SecureHash>): SecureHash
inPartialMerkleTree
has been renamed torootAndUsedHashes
and is now public, as it is required in the verify function ofFilteredTransaction
. TraversableTransaction
is now an abstract class extendingCoreTransaction
.WireTransaction
andFilteredTransaction
now extendTraversableTransaction
.- Two classes,
ComponentGroup(open val groupIndex: Int, open val components: List<OpaqueBytes>)
andFilteredComponentGroup(override val groupIndex: Int, override val components:
List<OpaqueBytes>, val nonces: List<SecureHash>, val partialMerkleTree:
PartialMerkleTree): ComponentGroup(groupIndex, components)
have been added, which are properties of theWireTransaction
andFilteredTransaction
, respectively. checkAllComponentsVisible(componentGroupEnum: ComponentGroupEnum)
is added toFilteredTransaction
, a new function to check if all components are visible in a specific component-group.- To allow for backwards compatibility,
WireTransaction
andFilteredTransaction
have new fields and constructors:WireTransaction(componentGroups: List<ComponentGroup>, privacySalt: PrivacySalt = PrivacySalt())
,FilteredTransaction private constructor(id: SecureHash,filteredComponentGroups:
List<FilteredComponentGroup>, groupHashes: List<SecureHash>
.FilteredTransaction
is still built viabuildFilteredTransaction(wtx: WireTransaction, filtering: Predicate<Any>)
. FilteredLeaves
class have been removed and as a result we can directly call the components fromFilteredTransaction
, such asftx.inputs
Vs the oldftx.filteredLeaves.inputs
.- A new
ComponentGroupEnum
is added with the following enum items:INPUTS_GROUP
,OUTPUTS_GROUP
,COMMANDS_GROUP
,ATTACHMENTS_GROUP
,NOTARY_GROUP
,TIMEWINDOW_GROUP
. ContractUpgradeFlow.Initiator
has been renamed toContractUpgradeFlow.Initiate
@RPCSinceVersion
,RPCException
andPermissionException
have moved tonet.corda.client.rpc
.- Current implementation of SSL in
CordaRPCClient
has been removed until we have a better solution which doesn't rely on the node's keystore.