This proof of concepts takes a CDA2 document in input:
- canonicalizes it
- removes legalAuthenticator node
- calculates the sha256 of the new document
mvn clean package -Dmaven.test.skip=true
java -jar target/fse-cda-hash-0.0.1-SNAPSHOT-jar-with-dependencies.jar CDA_LDO.xml
java -jar target/fse-cda-hash-0.0.1-SNAPSHOT-jar-with-dependencies.jar CDA_LDO2.xml
you can also run the application via mvn
mvn spring-boot:run -Dspring-boot.run.arguments=CDA_LDO.xml
watch for output SHAs