2157 Commits

Author SHA1 Message Date
vanjatomic
19be27036e Fix return type 2022-03-30 14:00:38 +01:00
vanjatomic
fc2b9d0cab Fix nullable type 2022-03-30 13:34:34 +01:00
vanjatomic
4ed5457818 Add dto 2022-03-30 13:22:18 +01:00
vanjatomic
13a3bfb981 Add service hub 2022-03-30 13:21:02 +01:00
vanjatomic
d5611b36d1 Add key verification commands, add decrypt function to interface 2022-03-30 11:24:18 +01:00
stefano
98a43101d1 working end-2-end with conclave 2022-03-25 13:19:52 +00:00
stefano
ca1d6b89c7 hackery pt II 2022-03-24 16:56:15 +00:00
stefano
2a165205c6 do attestation sync always 2022-03-24 09:41:35 +00:00
adam.houston
9a6b8d2417 Encrypt transactions for local format as soon as they are received 2022-03-23 13:04:08 +00:00
stefano
e1a6b5fd09 pass x500 of node to enclave client 2022-03-23 10:47:36 +00:00
adam.houston
f838a969d3 Renamed EnclaveClient to CordaEnclaveClient to avoid clashing with Conclave 2022-03-22 17:24:25 +00:00
adam.houston
7c4e274953 Small fixes to encryptedTransactionService access 2022-03-22 14:21:52 +00:00
lemjclarke
a704cb0b26 Add encrypt for local command and verify signature variants 2022-03-21 17:08:27 +00:00
adam.houston
b36a06b588 Send current transaction encrypted 2022-03-21 16:53:12 +00:00
Stefano Franz
4efc439e7b
refactor enclave interface to provide invocationID for all calls (#7122)
Co-authored-by: stefano <stefano@DESKTOP-VCFJH4G>
2022-03-21 11:42:18 +00:00
adam.houston
fbc06d7f57 Merge branch 'cbdc/poc-encrypt-backchain' of github.com:corda/corda into cbdc/poc-encrypt-backchain 2022-03-18 10:54:39 +00:00
adam.houston
95adf626f9 Updated EnclaveClient interface 2022-03-18 10:53:26 +00:00
stefano
93ae0d939f move Cash commands out of the random inner inner inner class structure 2022-03-17 16:50:28 +00:00
adam.houston
fac5db73f4 Proposed interface changes - DOES NOT BUILD 2022-03-17 14:44:22 +00:00
stefano
aa625ca704 play nice with Conclave within SGX 2022-03-17 10:18:12 +00:00
adam.houston
95b80b37b7 Enclave tests working 2022-03-15 11:53:38 +00:00
adam.houston
ac36d48f77 Fix build issue by removing DeleteForDJVM from SgxSupport 2022-03-14 12:20:27 +00:00
adam.houston
a26a7fcdfe Initial merge 2022-03-14 11:54:12 +00:00
adam.houston
f4b20fe699 Encrypted transactions now stored in their own table 2022-03-11 10:26:52 +00:00
adam.houston
525dc6022b Merge branch 'cbdc/conclave-corda-int' into cbdc/poc-encrypt-backchain-merge
# Conflicts:
#	core/src/main/kotlin/net/corda/core/transactions/EncryptedTransaction.kt
#	settings.gradle
2022-03-10 14:11:01 +00:00
lemjclarke
7822888ad7 Add encryption transaction data model 2022-03-07 15:46:07 +00:00
vanjatomic
8959cced66 Refactor and merge corda branches 2022-03-02 10:37:44 +00:00
vanjatomic
5815713668 Merge remote-tracking branch 'origin/cbdc/conclave-corda-int' into cbdc/poc-encrypt-backchain 2022-03-01 11:18:25 +00:00
adam.houston
684033f99a merge with origin 2022-02-25 17:35:42 +00:00
adam.houston
9e46423465 Collect Signatures now works with encryption 2022-02-25 16:59:57 +00:00
adam.houston
455b191974 Example of encrypted backchain - WIP for investigation purposes 2022-02-25 14:26:17 +00:00
adam.houston
16a4c92677 Store verification signatures - TODO: store as TransactionSignature 2022-02-24 17:17:13 +00:00
pclaura
8fa7efd867 Serialization changes required for Conclave integration 2022-02-24 10:59:58 +00:00
vanjatomic
046c441cbe Required changes for running tx.verify in conclave 2022-02-21 09:31:24 +00:00
adam.houston
d21cefc4bf Merge cbdc/conclave-corda-int (also includes Corda 4.9 commits) 2022-02-18 16:35:34 +00:00
adam.houston
a165c69d3a Example of encrypted backchain - WIP for investigation purposes 2022-02-18 16:24:37 +00:00
vanjatomic
d30b354b19 Corda serialization changes required for conclave integration 2022-02-11 14:13:08 +00:00
Chris Rankin
758a69f904
Validate LedgerTransaction deserialised from AttachmentsClassLoader. (#7049) (#7052) 2022-01-31 09:40:01 +00:00
Adel El-Beik
9444c9b637
ENT-6567: Bump platform version to 11 (#7043)
* ENT-6567: Bump platform version to 11

* ENT-6567: Bump platform version to 11
2022-01-26 11:37:22 +00:00
Ramzi El-Yafi
831f6d60cc Merge remote-tracking branch 'origin/release/os/4.8' into ramzi/os-48-49-merge 2022-01-21 10:55:29 +00:00
Ramzi El-Yafi
caa4de47d3
ENT-6533 Update validating notary flow to be non-idempotent (#7030) 2022-01-19 13:15:51 +00:00
Chris Rankin
552317f2b3 Merge branch 'release/os/4.8' into chrisr3-os48-merge 2022-01-17 11:02:11 +00:00
Chris Rankin
4f1a07cbcc
ENT-6548: Ensure LazyMappedList is realised with correct SerializationContext. (#7028) 2022-01-17 09:57:33 +00:00
Dan Newton
044202550d
ENT-6421 Public version of FlowManagerRPCOps (#7006)
A public version of `FlowManagerRPCOps` which does not live in an
internal package has been added. This new interface shares the same name
as the internal one.

Because of the name sharing, the internal version has been
`@Deprecated`.

`FlowManagerRPCOpsImpl` implements both the new and old interfaces. This
 allows for backwards compatibility, allowing old shells or clients to
 call the old interface on newer nodes without breaking.
2022-01-07 16:40:29 +00:00
Walter Oggioni
efaf1549a9
CORDA-4173 Obfuscated zib bombs used for unit tests, so that antivirus software stop complaining about them (#6989) 2021-12-21 14:08:02 +00:00
Chris Rankin
e93e7c2846
ENT-6412: Upgrade ClassGraph 4.8.90 -> 4.8.135. (#6973) 2021-11-23 09:43:41 +00:00
Chris Rankin
caeafb8201
ENT-6357: Deserialize LedgerTransaction elements for each Contract.verify(). (#6962)
* ENT-6357: Deserialize LedgerTransaction elements for each Contract.verify().

* Lock the LedgerTransaction and NetworkParameters objects down for contract verification.

* Refactor BasicVerifier to be package private instead of public.

* Simplify verifyConstraints() operation.

* Review fixes: replace HashSet with LinkedHashSet, and add signing parties to commands via mapIndexed.

* Ensure tests also run notary nodes "out of process".

* Streamline SerializationContext switching.

* Cache deserialised cryptographic instances during contract verification.

* Invoke Class.forName() instead of ClassLoader.loadClass() to reduce contention on the system classloader's lock.

* Deserialization cache key now pre-computes its hash code.

* Allow AttachmentsClassLoader to be used concurrently.

* Cache all Envelope objects for reuse during contract verification.

* Generate CertPathProxy hash code using conventional algorithm.

* Adjust CustomSerializer.Proxy to allow better access to SerializationContext.
2021-11-10 16:38:40 +00:00
Walter Oggioni
883e794853
ENT-6330 Fixed reading jar entries in memory (#6960)
* ENT-6330 Fixed reading jar entries in memory

This is a trivial fix that is however enough to allow to send zip bombs as attachments without the node crashing, a size limit could be added for increased reliability

* added attachment cumulative size check

* added compression ratio check

* added unit test and moved the code to a standalone verifier object

* removed attachment check from AttachmentClassLoader to minimize performance impact
2021-10-13 09:46:20 +01:00
Ramzi El-Yafi
9146228b0f
NAAS-295 Fix notary flow retries after ETA message sent (#6965) 2021-10-04 17:37:22 +01:00
Agnieszka Szczepanska
0b9513ffa3 Merge branch 'release/os/4.7' into aga/make-recordDependencies-suspendable-4.8 2021-04-27 15:08:13 +01:00