From a38ee183ad8a16388afaaa2d44b2b08bfd308cd6 Mon Sep 17 00:00:00 2001 From: Christian Baltzer Date: Sun, 14 Jul 2019 16:20:51 +0200 Subject: [PATCH] =?UTF-8?q?Block=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/ugsbo/com/buchhaltung/Block.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/ugsbo/com/buchhaltung/Block.java b/src/main/java/ugsbo/com/buchhaltung/Block.java index e51464a..ecf4bd7 100644 --- a/src/main/java/ugsbo/com/buchhaltung/Block.java +++ b/src/main/java/ugsbo/com/buchhaltung/Block.java @@ -1,14 +1,24 @@ package ugsbo.com.buchhaltung; +import java.security.MessageDigest; + public class Block { int data; int kontostand; Block vorher; + String ownHash; + String previousHash; public Block(int Data) { data = Data; vorher = null; + ownHash = createNewHash(); + previousHash = null; + } + + private String createNewHash() { + return null; } }