java24 and quantum safety
This commit is contained in:
33
pom.xml
33
pom.xml
@@ -27,13 +27,13 @@
|
||||
<url/>
|
||||
</scm>
|
||||
<properties>
|
||||
<java.version>21</java.version>
|
||||
<java.version>24</java.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
<version>2.17.0</version> </dependency>
|
||||
<version>2.19.0</version> </dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
@@ -58,12 +58,7 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.30</version> <!-- use the latest -->
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webmvc</artifactId>
|
||||
@@ -73,34 +68,14 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<annotationProcessorPaths>
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.1.2</version> <!-- or latest -->
|
||||
<version>3.5.3</version> <!-- or latest -->
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
@@ -164,6 +164,10 @@ public class BlockRevisionResult
|
||||
newDistributedLedgerAccountList = DistributedLedgerAccount.assignDelegation(newDistributedLedgerAccountList,validatorMessageDataContract.getVotingDelegationSet());
|
||||
//get the ledgerParameters
|
||||
newStatusDataContract.setLedgerParameters(newStatusDataContract.getNextLedgerParameters());
|
||||
//the next block parameters must be known to gather valid transactions,
|
||||
// therefore the new resulting ledger parameters cannot be valid immediatelu
|
||||
// but will have one block of wait to allow the validators to be sure of the validity
|
||||
// of the transactions that they are gathering to be processed in the subsequent block
|
||||
newStatusDataContract.setNextLedgerParameters(this.getResultingLedgerParameters());
|
||||
|
||||
if(!newStatusDataContract.getNextLedgerParameters().getDistributedLedgerAccountReassignProposals().isEmpty())
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.hypernode.ledger.encryptionInterfaces;
|
||||
import java.math.BigInteger;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.*;
|
||||
import java.security.spec.NamedParameterSpec;
|
||||
import java.security.spec.X509EncodedKeySpec;
|
||||
import java.util.Base64;
|
||||
|
||||
@@ -15,8 +16,11 @@ public class Encryption {
|
||||
public static KeyPair createNewKey() {
|
||||
KeyPair keyPair = null;
|
||||
try {
|
||||
keyPair = KeyPairGenerator.getInstance(KEY_ALGORITHM).generateKeyPair();
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
//keyPair = KeyPairGenerator.getInstance(KEY_ALGORITHM).generateKeyPair();//RSA
|
||||
//KeyPairGenerator g = KeyPairGenerator.getInstance(KEY_ALGORITHM);
|
||||
//g.initialize(NamedParameterSpec.ML_DSA_44);
|
||||
//keyPair = g.generateKeyPair();
|
||||
} catch (Exception e) {
|
||||
// throw new RuntimeException(e);
|
||||
}
|
||||
return keyPair;
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
@@ -12,7 +12,7 @@ import java.net.http.HttpRequest;
|
||||
import java.net.http.HttpResponse;
|
||||
import java.time.Duration;
|
||||
|
||||
@Slf4j
|
||||
//@Slf4j
|
||||
public class WebServiceCaller {
|
||||
private static final ObjectMapper objectmapper = new ObjectMapper();
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.hypernode.ledger.contracts.*;
|
||||
import com.hypernode.ledger.contracts.DistributedLedgerAccount;
|
||||
import com.hypernode.ledger.encryptionInterfaces.Encryption;
|
||||
import com.hypernode.ledger.encryptionInterfaces.EncryptionEntity_BaseInterface;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
//import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -20,7 +20,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import static java.time.Instant.now;
|
||||
|
||||
|
||||
@Slf4j
|
||||
//@Slf4j
|
||||
@Service
|
||||
public class WebServiceEngine {
|
||||
private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor();
|
||||
@@ -305,7 +305,7 @@ public class WebServiceEngine {
|
||||
|
||||
if(this.pendingNextMessage.getPaymentSet().size() + validPayments.size() > this.statusDataContract.getNextLedgerParameters().getMaxTransactionsPerBlock())
|
||||
{
|
||||
return null;//TODO return string saying list is full?
|
||||
return new ArrayList<ExternalPayment>(0);//TODO return string saying list is full?
|
||||
}
|
||||
|
||||
this.pendingNextMessage.getPaymentSet().addAll(validPayments.stream().map(Payment::createFromExternalPayment).toList());
|
||||
|
||||
@@ -88,7 +88,11 @@ and the move toward a postmodern federalist system based on the respect of each
|
||||
and the freedom of association via mutual consent.
|
||||
|
||||
The pure globalist project has been upheld as an universal truth, turning into a modernist narrative,
|
||||
and like all modernist narratives it has now reached its logical conclusion and therefore its demise.
|
||||
and like all modernist narratives it has now reached its logical conclusion and therefore its demise
|
||||
as it was applied beyond its validity scope (instead of using relativism as a way for communities to communicate
|
||||
it became a tool to destroy cultures and communities not with force but with a fake epistemiology
|
||||
that flattened the part of lived experience that made communities exist and replaces them with convenient simulacras
|
||||
to be sold back to them, as the simbol of the hollowing of their culture and reduction to a fashion statement).
|
||||
It is time to embrace a new chapter in line with the new spirit of the time,
|
||||
allowing self sufficient groups to define their own goals while remembering the lesson from the World Wars:
|
||||
Post modernism is the consequence of the overdose of modernism,
|
||||
@@ -100,4 +104,6 @@ It is more situational than imagined, but is also the foundation of every societ
|
||||
My hope is that by having this awareness the communities can describe their idea of beauty
|
||||
and instead of bickering against each other every community can reach their version of apotheosis
|
||||
|
||||
Shinji Ikari
|
||||
Shinji Ikari
|
||||
Dark Zizek
|
||||
|
||||
|
||||
Reference in New Issue
Block a user