Tennessee Gibbs 6 anos atrás
pai
commit
0757d6fd5e
50 arquivos alterados com 635 adições e 4339 exclusões
  1. BIN
      .DS_Store
  2. 635
    12
      .idea/workspace.xml
  3. 0
    113
      0.1.iml
  4. 0
    0
      README.md
  5. 0
    2859
      application.log
  6. 0
    225
      mvnw
  7. 0
    143
      mvnw.cmd
  8. 0
    79
      pom.xml
  9. BIN
      src/.DS_Store
  10. BIN
      src/main/.DS_Store
  11. BIN
      src/main/java/.DS_Store
  12. BIN
      src/main/java/com/.DS_Store
  13. BIN
      src/main/java/com/buecoin01/.DS_Store
  14. 0
    15
      src/main/java/com/buecoin01/Application.java
  15. 0
    30
      src/main/java/com/buecoin01/ProcessLoader.java
  16. 0
    11
      src/main/java/com/buecoin01/Repositories/BlockRepository.java
  17. 0
    13
      src/main/java/com/buecoin01/Repositories/TransactionRepository.java
  18. 0
    11
      src/main/java/com/buecoin01/Repositories/WalletRepository.java
  19. 0
    56
      src/main/java/com/buecoin01/controller/BlockController.java
  20. 0
    57
      src/main/java/com/buecoin01/controller/TransactionController.java
  21. 0
    55
      src/main/java/com/buecoin01/controller/WalletController.java
  22. 0
    96
      src/main/java/com/buecoin01/model/Block.java
  23. 0
    95
      src/main/java/com/buecoin01/model/BlockchainVerification.java
  24. 0
    122
      src/main/java/com/buecoin01/model/Transaction.java
  25. 0
    136
      src/main/java/com/buecoin01/model/Wallet.java
  26. 0
    55
      src/main/java/com/buecoin01/utility/Encryption.java
  27. 0
    34
      src/main/java/com/buecoin01/utility/Mining.java
  28. 0
    30
      src/main/java/com/buecoin01/utility/TransactionInput.java
  29. 0
    54
      src/main/java/com/buecoin01/utility/TransactionOutput.java
  30. 0
    11
      src/main/resources/application.properties
  31. 0
    16
      src/test/java/com/buecoin01/ApplicationTests.java
  32. 0
    11
      target/classes/application.properties
  33. BIN
      target/classes/com/buecoin01/Application.class
  34. BIN
      target/classes/com/buecoin01/ProcessLoader.class
  35. BIN
      target/classes/com/buecoin01/Repositories/BlockRepository.class
  36. BIN
      target/classes/com/buecoin01/Repositories/TransactionRepository.class
  37. BIN
      target/classes/com/buecoin01/Repositories/WalletRepository.class
  38. BIN
      target/classes/com/buecoin01/controller/BlockController$UserController.class
  39. BIN
      target/classes/com/buecoin01/controller/BlockController.class
  40. BIN
      target/classes/com/buecoin01/controller/WalletController.class
  41. BIN
      target/classes/com/buecoin01/model/Block.class
  42. BIN
      target/classes/com/buecoin01/model/Blockchain.class
  43. BIN
      target/classes/com/buecoin01/model/BlockchainVerification.class
  44. BIN
      target/classes/com/buecoin01/model/Transaction.class
  45. BIN
      target/classes/com/buecoin01/model/Wallet.class
  46. BIN
      target/classes/com/buecoin01/utility/Encryption.class
  47. BIN
      target/classes/com/buecoin01/utility/Mining.class
  48. BIN
      target/classes/com/buecoin01/utility/TransactionInput.class
  49. BIN
      target/classes/com/buecoin01/utility/TransactionOutput.class
  50. BIN
      target/test-classes/com/buecoin01/ApplicationTests.class

BIN
.DS_Store Ver arquivo


+ 635
- 12
.idea/workspace.xml Ver arquivo

@@ -2,12 +2,16 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="86492085-3833-4394-8353-122bd8bc6cb0" name="Default" comment="">
5
+<<<<<<< HEAD
5 6
       <change beforePath="$PROJECT_DIR$/application.log" beforeDir="false" afterPath="$PROJECT_DIR$/application.log" afterDir="false" />
6 7
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" afterDir="false" />
7 8
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" afterDir="false" />
8 9
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java" afterDir="false" />
9 10
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transaction.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transaction.java" afterDir="false" />
10 11
       <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" afterDir="false" />
12
+=======
13
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" afterDir="false" />
14
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
11 15
     </list>
12 16
     <ignored path="$PROJECT_DIR$/target/" />
13 17
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -19,6 +23,7 @@
19 23
   </component>
20 24
   <component name="FileEditorManager">
21 25
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
26
+<<<<<<< HEAD
22 27
       <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
23 28
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
24 29
           <provider selected="true" editor-type-id="text-editor">
@@ -47,28 +52,125 @@
47 52
                 <element signature="e#1651#1652#0" expanded="true" />
48 53
                 <element signature="e#1679#1680#0" expanded="true" />
49 54
               </folding>
55
+=======
56
+      <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
57
+        <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
58
+          <provider selected="true" editor-type-id="text-editor">
59
+            <state relative-caret-position="45">
60
+              <caret line="3" column="36" selection-start-line="3" selection-start-column="36" selection-end-line="3" selection-end-column="36" />
61
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
50 62
             </state>
51 63
           </provider>
52 64
         </entry>
53 65
       </file>
54
-      <file leaf-file-name="BlockchainVerification.java" pinned="false" current-in-tab="false">
55
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java">
66
+      <file leaf-file-name="ProcessLoader.java" pinned="false" current-in-tab="false">
67
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
56 68
           <provider selected="true" editor-type-id="text-editor">
69
+<<<<<<< HEAD
57 70
             <state relative-caret-position="675">
58 71
               <caret line="53" column="30" selection-start-line="53" selection-start-column="30" selection-end-line="53" selection-end-column="30" />
59 72
               <folding>
60 73
                 <element signature="e#1933#1934#0" expanded="true" />
61 74
                 <element signature="e#1973#1974#0" expanded="true" />
75
+=======
76
+            <state relative-caret-position="390">
77
+              <caret line="26" selection-start-line="26" selection-end-line="26" />
78
+              <folding>
79
+                <element signature="imports" expanded="true" />
80
+              </folding>
81
+            </state>
82
+          </provider>
83
+        </entry>
84
+      </file>
85
+      <file leaf-file-name="Block.java" pinned="false" current-in-tab="false">
86
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java">
87
+          <provider selected="true" editor-type-id="text-editor">
88
+            <state relative-caret-position="28">
89
+              <caret line="24" column="16" lean-forward="true" selection-start-line="24" selection-end-line="25" />
90
+            </state>
91
+          </provider>
92
+        </entry>
93
+      </file>
94
+      <file leaf-file-name="Transactions.java" pinned="false" current-in-tab="true">
95
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
96
+          <provider selected="true" editor-type-id="text-editor">
97
+            <state relative-caret-position="202">
98
+              <caret line="31" column="114" selection-start-line="31" selection-start-column="114" selection-end-line="31" selection-end-column="114" />
99
+              <folding>
100
+                <element signature="imports" expanded="true" />
101
+                <element signature="e#854#855#0" expanded="true" />
102
+                <element signature="e#879#880#0" expanded="true" />
103
+                <element signature="e#913#914#0" expanded="true" />
104
+                <element signature="e#941#942#0" expanded="true" />
105
+                <element signature="e#981#982#0" expanded="true" />
106
+                <element signature="e#1017#1018#0" expanded="true" />
107
+                <element signature="e#1075#1076#0" expanded="true" />
108
+                <element signature="e#1125#1126#0" expanded="true" />
109
+                <element signature="e#1158#1159#0" expanded="true" />
110
+                <element signature="e#1187#1188#0" expanded="true" />
111
+                <element signature="e#1231#1232#0" expanded="true" />
112
+                <element signature="e#1267#1268#0" expanded="true" />
113
+                <element signature="e#1298#1299#0" expanded="true" />
114
+                <element signature="e#1325#1326#0" expanded="true" />
115
+                <element signature="e#1365#1366#0" expanded="true" />
116
+                <element signature="e#1397#1398#0" expanded="true" />
117
+                <element signature="e#1429#1430#0" expanded="true" />
118
+                <element signature="e#1458#1459#0" expanded="true" />
119
+                <element signature="e#1501#1502#0" expanded="true" />
120
+                <element signature="e#1537#1538#0" expanded="true" />
121
+                <element signature="e#1580#1581#0" expanded="true" />
122
+                <element signature="e#1612#1613#0" expanded="true" />
123
+                <element signature="e#1669#1670#0" expanded="true" />
124
+                <element signature="e#1711#1712#0" expanded="true" />
125
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
62 126
               </folding>
63 127
             </state>
64 128
           </provider>
65 129
         </entry>
66 130
       </file>
131
+<<<<<<< HEAD
67 132
       <file leaf-file-name="WalletController.java" pinned="false" current-in-tab="true">
68 133
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
69 134
           <provider selected="true" editor-type-id="text-editor">
70 135
             <state relative-caret-position="255">
71 136
               <caret line="17" column="8" selection-start-line="17" selection-start-column="8" selection-end-line="17" selection-end-column="8" />
137
+=======
138
+      <file leaf-file-name="Wallet.java" pinned="false" current-in-tab="false">
139
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
140
+          <provider selected="true" editor-type-id="text-editor">
141
+            <state relative-caret-position="966">
142
+              <caret line="121" column="45" lean-forward="true" selection-start-line="121" selection-start-column="45" selection-end-line="121" selection-end-column="45" />
143
+              <folding>
144
+                <element signature="imports" expanded="true" />
145
+                <element signature="e#925#926#0" expanded="true" />
146
+                <element signature="e#952#953#0" expanded="true" />
147
+                <element signature="e#992#993#0" expanded="true" />
148
+                <element signature="e#1024#1025#0" expanded="true" />
149
+                <element signature="e#1123#1124#0" expanded="true" />
150
+                <element signature="e#1156#1157#0" expanded="true" />
151
+                <element signature="e#1195#1196#0" expanded="true" />
152
+                <element signature="e#1227#1228#0" expanded="true" />
153
+                <element signature="e#1258#1259#0" expanded="true" />
154
+                <element signature="e#1287#1288#0" expanded="true" />
155
+                <element signature="e#1329#1330#0" expanded="true" />
156
+                <element signature="e#1365#1366#0" expanded="true" />
157
+                <element signature="e#1481#1482#0" expanded="true" />
158
+                <element signature="e#1521#1522#0" expanded="true" />
159
+                <element signature="e#1548#1549#0" expanded="true" />
160
+                <element signature="e#1573#1574#0" expanded="true" />
161
+                <element signature="e#1607#1608#0" expanded="true" />
162
+                <element signature="e#1635#1636#0" expanded="true" />
163
+              </folding>
164
+            </state>
165
+          </provider>
166
+        </entry>
167
+      </file>
168
+      <file leaf-file-name="WalletController.java" pinned="false" current-in-tab="false">
169
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
170
+          <provider selected="true" editor-type-id="text-editor">
171
+            <state relative-caret-position="210">
172
+              <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
173
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
72 174
               <folding>
73 175
                 <element signature="imports" expanded="true" />
74 176
               </folding>
@@ -76,11 +178,22 @@
76 178
           </provider>
77 179
         </entry>
78 180
       </file>
181
+<<<<<<< HEAD
79 182
       <file leaf-file-name="ProcessLoader.java" pinned="false" current-in-tab="false">
80 183
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
81 184
           <provider selected="true" editor-type-id="text-editor">
82 185
             <state relative-caret-position="108">
83 186
               <caret line="18" column="27" lean-forward="true" selection-start-line="18" selection-start-column="27" selection-end-line="18" selection-end-column="27" />
187
+=======
188
+      <file leaf-file-name="TransactionController.java" pinned="false" current-in-tab="false">
189
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java">
190
+          <provider selected="true" editor-type-id="text-editor">
191
+            <state relative-caret-position="210">
192
+              <caret line="14" column="42" lean-forward="true" selection-start-line="14" selection-start-column="42" selection-end-line="14" selection-end-column="42" />
193
+              <folding>
194
+                <element signature="imports" expanded="true" />
195
+              </folding>
196
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
84 197
             </state>
85 198
           </provider>
86 199
         </entry>
@@ -88,26 +201,53 @@
88 201
       <file leaf-file-name="Transaction.java" pinned="false" current-in-tab="false">
89 202
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transaction.java">
90 203
           <provider selected="true" editor-type-id="text-editor">
204
+<<<<<<< HEAD
91 205
             <state relative-caret-position="200">
92 206
               <caret line="25" column="26" selection-start-line="25" selection-start-column="26" selection-end-line="25" selection-end-column="26" />
207
+=======
208
+            <state relative-caret-position="639">
209
+              <caret line="47" column="40" selection-start-line="47" selection-start-column="40" selection-end-line="47" selection-end-column="40" />
210
+              <folding>
211
+                <element signature="imports" expanded="true" />
212
+              </folding>
213
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
93 214
             </state>
94 215
           </provider>
95 216
         </entry>
96 217
       </file>
218
+<<<<<<< HEAD
97 219
       <file leaf-file-name="application.properties" pinned="false" current-in-tab="false">
98 220
         <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
99 221
           <provider selected="true" editor-type-id="text-editor">
100 222
             <state relative-caret-position="150">
101 223
               <caret line="10" column="31" selection-start-line="10" selection-start-column="31" selection-end-line="10" selection-end-column="31" />
224
+=======
225
+      <file leaf-file-name="TransactionRepository.java" pinned="false" current-in-tab="false">
226
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
227
+          <provider selected="true" editor-type-id="text-editor">
228
+            <state relative-caret-position="180">
229
+              <caret line="12" column="17" selection-start-line="12" selection-start-column="17" selection-end-line="12" selection-end-column="17" />
230
+              <folding>
231
+                <element signature="imports" expanded="true" />
232
+              </folding>
233
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
102 234
             </state>
103 235
           </provider>
104 236
         </entry>
105 237
       </file>
238
+<<<<<<< HEAD
106 239
       <file leaf-file-name="Application.java" pinned="false" current-in-tab="false">
107 240
         <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
108 241
           <provider selected="true" editor-type-id="text-editor">
109 242
             <state relative-caret-position="120">
110 243
               <caret line="10" selection-start-line="10" selection-end-line="10" />
244
+=======
245
+      <file leaf-file-name="BlockRepository.java" pinned="false" current-in-tab="false">
246
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/BlockRepository.java">
247
+          <provider selected="true" editor-type-id="text-editor">
248
+            <state relative-caret-position="75">
249
+              <caret line="8" column="1" selection-start-line="8" selection-end-line="9" />
250
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
111 251
             </state>
112 252
           </provider>
113 253
         </entry>
@@ -119,6 +259,7 @@
119 259
       <list>
120 260
         <option value="Interface" />
121 261
         <option value="Class" />
262
+        <option value="AnnotationType" />
122 263
       </list>
123 264
     </option>
124 265
   </component>
@@ -137,6 +278,7 @@
137 278
   <component name="IdeDocumentHistory">
138 279
     <option name="CHANGED_PATHS">
139 280
       <list>
281
+<<<<<<< HEAD
140 282
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java" />
141 283
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/WalletRepository.java" />
142 284
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" />
@@ -146,6 +288,22 @@
146 288
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transaction.java" />
147 289
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" />
148 290
         <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" />
291
+=======
292
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/WalletRepository.java" />
293
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/BlockController.java" />
294
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java" />
295
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java" />
296
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transaction.java" />
297
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java" />
298
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java" />
299
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/EnableMongoRepositories.java" />
300
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java" />
301
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java" />
302
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java" />
303
+        <option value="$PROJECT_DIR$/src/main/resources/application.properties" />
304
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java" />
305
+        <option value="$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java" />
306
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
149 307
       </list>
150 308
     </option>
151 309
   </component>
@@ -165,9 +323,9 @@
165 323
   <component name="NodePackageJsonFileManager">
166 324
     <packageJsonPaths />
167 325
   </component>
168
-  <component name="ProjectFrameBounds" extendedState="6">
169
-    <option name="width" value="1440" />
170
-    <option name="height" value="900" />
326
+  <component name="ProjectFrameBounds" extendedState="6" fullScreen="true">
327
+    <option name="width" value="1920" />
328
+    <option name="height" value="1080" />
171 329
   </component>
172 330
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
173 331
   <component name="ProjectView">
@@ -263,6 +421,7 @@
263 421
       </pane>
264 422
       <pane id="PackagesPane" />
265 423
       <pane id="AndroidView" />
424
+      <pane id="Scope" />
266 425
     </panes>
267 426
   </component>
268 427
   <component name="PropertiesComponent">
@@ -273,6 +432,11 @@
273 432
     <property name="WebServerToolWindowFactoryState" value="false" />
274 433
     <property name="aspect.path.notification.shown" value="true" />
275 434
   </component>
435
+  <component name="RecentsManager">
436
+    <key name="CreateClassDialog.RecentsKey">
437
+      <recent name="com.buecoin01" />
438
+    </key>
439
+  </component>
276 440
   <component name="RunDashboard">
277 441
     <option name="ruleStates">
278 442
       <list>
@@ -285,7 +449,18 @@
285 449
       </list>
286 450
     </option>
287 451
   </component>
288
-  <component name="RunManager">
452
+  <component name="RunManager" selected="Spring Boot.Application">
453
+    <configuration name="BlockchainVerification" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
454
+      <option name="MAIN_CLASS_NAME" value="com.buecoin01.model.BlockchainVerification" />
455
+      <module name="0.1" />
456
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
457
+      <extension name="coverage">
458
+        <pattern>
459
+          <option name="PATTERN" value="com.buecoin01.model.*" />
460
+          <option name="ENABLED" value="true" />
461
+        </pattern>
462
+      </extension>
463
+    </configuration>
289 464
     <configuration default="true" type="Application" factoryName="Application">
290 465
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
291 466
     </configuration>
@@ -331,6 +506,15 @@
331 506
       <properties />
332 507
       <listeners />
333 508
     </configuration>
509
+    <list>
510
+      <item itemvalue="Spring Boot.Application" />
511
+      <item itemvalue="Application.BlockchainVerification" />
512
+    </list>
513
+    <recent_temporary>
514
+      <list>
515
+        <item itemvalue="Application.BlockchainVerification" />
516
+      </list>
517
+    </recent_temporary>
334 518
   </component>
335 519
   <component name="SvnConfiguration">
336 520
     <configuration />
@@ -347,10 +531,17 @@
347 531
     <servers />
348 532
   </component>
349 533
   <component name="TimeTrackingManager">
534
+<<<<<<< HEAD
350 535
     <option name="totallyTimeSpent" value="4624000" />
351 536
   </component>
352 537
   <component name="ToolWindowManager">
353 538
     <frame x="0" y="0" width="1440" height="827" extended-state="6" />
539
+=======
540
+    <option name="totallyTimeSpent" value="9498000" />
541
+  </component>
542
+  <component name="ToolWindowManager">
543
+    <frame x="0" y="0" width="1280" height="800" extended-state="6" />
544
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
354 545
     <editor active="true" />
355 546
     <layout>
356 547
       <window_info anchor="right" id="Palette" order="3" />
@@ -365,26 +556,71 @@
365 556
       <window_info id="UI Designer" order="2" />
366 557
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
367 558
       <window_info anchor="bottom" id="TODO" order="6" />
559
+<<<<<<< HEAD
368 560
       <window_info anchor="bottom" id="Messages" weight="0.3281471" />
561
+=======
562
+      <window_info anchor="bottom" id="Messages" order="9" weight="0.27492878" />
563
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
369 564
       <window_info anchor="right" id="Palette&#9;" order="3" />
370 565
       <window_info id="Image Layers" order="2" />
371 566
       <window_info anchor="bottom" id="Java Enterprise" order="7" />
372 567
       <window_info anchor="right" id="Capture Analysis" order="3" />
373 568
       <window_info anchor="bottom" id="Version Control" order="7" />
569
+<<<<<<< HEAD
374 570
       <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.3946252" />
375 571
       <window_info anchor="bottom" id="Spring" order="7" />
376 572
       <window_info anchor="bottom" id="Terminal" order="7" />
377 573
       <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24177396" />
574
+=======
575
+      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32763532" />
576
+      <window_info anchor="bottom" id="Spring" order="7" weight="0.3299389" />
577
+      <window_info anchor="bottom" id="Terminal" order="7" weight="0.32905984" />
578
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2536349" />
579
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
378 580
       <window_info anchor="right" id="Bean Validation" order="3" />
379 581
       <window_info id="Web" order="2" side_tool="true" />
380 582
       <window_info anchor="right" id="Theme Preview" order="3" />
381 583
       <window_info id="Favorites" order="2" side_tool="true" />
584
+<<<<<<< HEAD
382 585
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
383 586
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
384 587
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
385 588
       <window_info anchor="bottom" id="Message" order="0" />
386 589
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
387 590
       <window_info anchor="bottom" id="Find" order="1" />
591
+=======
592
+      <window_info anchor="bottom" id="Message" order="0" />
593
+      <window_info anchor="bottom" id="Run" order="2" />
594
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
595
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.30329043" />
596
+      <window_info id="Favorites" order="5" side_tool="true" />
597
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
598
+      <window_info anchor="bottom" id="Java Enterprise" order="10" />
599
+      <window_info anchor="right" id="Bean Validation" order="6" />
600
+      <window_info anchor="bottom" id="Terminal" order="10" />
601
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
602
+      <window_info anchor="right" id="Palette" order="6" />
603
+      <window_info anchor="right" id="Palette&#9;" order="6" />
604
+      <window_info anchor="right" id="Maven Projects" order="6" />
605
+      <window_info id="Web" order="5" side_tool="true" />
606
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
607
+      <window_info anchor="bottom" id="Spring" order="10" />
608
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
609
+      <window_info id="Image Layers" order="5" />
610
+      <window_info anchor="right" id="Theme Preview" order="6" />
611
+      <window_info anchor="right" id="Database" order="6" />
612
+      <window_info id="Capture Tool" order="5" />
613
+      <window_info anchor="bottom" id="Version Control" order="10" />
614
+      <window_info anchor="right" id="Capture Analysis" order="6" />
615
+      <window_info anchor="bottom" id="TODO" order="6" />
616
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
617
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
618
+      <window_info id="UI Designer" order="5" />
619
+      <window_info anchor="bottom" id="Find" order="1" />
620
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
621
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
622
+      <window_info id="Designer" order="5" />
623
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
388 624
     </layout>
389 625
     <layout-to-restore>
390 626
       <window_info id="Designer" order="0" />
@@ -428,6 +664,7 @@
428 664
   </component>
429 665
   <component name="editorHistoryManager">
430 666
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
667
+<<<<<<< HEAD
431 668
       <provider selected="true" editor-type-id="text-editor">
432 669
         <state relative-caret-position="75">
433 670
           <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
@@ -442,19 +679,82 @@
442 679
             <element signature="e#1933#1934#0" expanded="true" />
443 680
             <element signature="e#1973#1974#0" expanded="true" />
444 681
           </folding>
682
+=======
683
+      <provider selected="true" editor-type-id="text-editor">
684
+        <state relative-caret-position="360">
685
+          <caret line="24" column="29" selection-start-line="24" selection-start-column="29" selection-end-line="24" selection-end-column="29" />
686
+          <folding>
687
+            <element signature="e#581#582#0" expanded="true" />
688
+            <element signature="e#621#622#0" expanded="true" />
689
+            <element signature="e#653#654#0" expanded="true" />
690
+          </folding>
691
+        </state>
692
+      </provider>
693
+    </entry>
694
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/CoinRepository.java" />
695
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/buecoin01/ApplicationTests.java">
696
+      <provider selected="true" editor-type-id="text-editor">
697
+        <state relative-caret-position="90">
698
+          <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
699
+        </state>
700
+      </provider>
701
+    </entry>
702
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java">
703
+      <provider selected="true" editor-type-id="text-editor">
704
+        <state relative-caret-position="945">
705
+          <caret line="78" selection-start-line="78" selection-end-line="78" />
706
+        </state>
707
+      </provider>
708
+    </entry>
709
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
710
+      <provider selected="true" editor-type-id="text-editor">
711
+        <state relative-caret-position="255">
712
+          <caret line="26" column="71" selection-start-line="26" selection-start-column="71" selection-end-line="26" selection-end-column="71" />
713
+          <folding>
714
+            <element signature="imports" expanded="true" />
715
+          </folding>
716
+        </state>
717
+      </provider>
718
+    </entry>
719
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Coin.java" />
720
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
721
+      <provider selected="true" editor-type-id="text-editor">
722
+        <state relative-caret-position="75">
723
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
724
+        </state>
725
+      </provider>
726
+    </entry>
727
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
728
+      <provider selected="true" editor-type-id="text-editor" />
729
+    </entry>
730
+    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
731
+      <provider selected="true" editor-type-id="text-editor">
732
+        <state relative-caret-position="150">
733
+          <caret line="10" column="31" selection-start-line="10" selection-start-column="31" selection-end-line="10" selection-end-column="31" />
734
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
445 735
         </state>
446 736
       </provider>
447 737
     </entry>
448 738
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
449 739
       <provider selected="true" editor-type-id="text-editor">
740
+<<<<<<< HEAD
450 741
         <state relative-caret-position="450">
451 742
           <caret line="37" column="42" selection-start-line="37" selection-start-column="42" selection-end-line="37" selection-end-column="42" />
452 743
           <folding>
453 744
             <element signature="imports" expanded="true" />
745
+=======
746
+        <state relative-caret-position="360">
747
+          <caret line="24" column="29" selection-start-line="24" selection-start-column="29" selection-end-line="24" selection-end-column="29" />
748
+          <folding>
749
+            <element signature="e#581#582#0" expanded="true" />
750
+            <element signature="e#621#622#0" expanded="true" />
751
+            <element signature="e#653#654#0" expanded="true" />
752
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
454 753
           </folding>
455 754
         </state>
456 755
       </provider>
457 756
     </entry>
757
+<<<<<<< HEAD
458 758
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/WalletRepository.java">
459 759
       <provider selected="true" editor-type-id="text-editor">
460 760
         <state relative-caret-position="75">
@@ -473,6 +773,27 @@
473 773
       <provider selected="true" editor-type-id="text-editor">
474 774
         <state relative-caret-position="600">
475 775
           <caret line="47" column="40" selection-start-line="47" selection-start-column="40" selection-end-line="47" selection-end-column="40" />
776
+=======
777
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/CoinRepository.java" />
778
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/buecoin01/ApplicationTests.java">
779
+      <provider selected="true" editor-type-id="text-editor">
780
+        <state relative-caret-position="90">
781
+          <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
782
+        </state>
783
+      </provider>
784
+    </entry>
785
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java">
786
+      <provider selected="true" editor-type-id="text-editor">
787
+        <state relative-caret-position="1046">
788
+          <caret line="78" selection-start-line="78" selection-end-line="78" />
789
+        </state>
790
+      </provider>
791
+    </entry>
792
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
793
+      <provider selected="true" editor-type-id="text-editor">
794
+        <state relative-caret-position="293">
795
+          <caret line="26" column="71" selection-start-line="26" selection-start-column="71" selection-end-line="26" selection-end-column="71" />
796
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
476 797
           <folding>
477 798
             <element signature="imports" expanded="true" />
478 799
           </folding>
@@ -486,6 +807,7 @@
486 807
         </state>
487 808
       </provider>
488 809
     </entry>
810
+<<<<<<< HEAD
489 811
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java">
490 812
       <provider selected="true" editor-type-id="text-editor">
491 813
         <state relative-caret-position="150">
@@ -507,6 +829,217 @@
507 829
           <folding>
508 830
             <element signature="imports" expanded="true" />
509 831
           </folding>
832
+=======
833
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Coin.java" />
834
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
835
+      <provider selected="true" editor-type-id="text-editor" />
836
+    </entry>
837
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
838
+      <provider selected="true" editor-type-id="text-editor">
839
+        <state relative-caret-position="75">
840
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
841
+        </state>
842
+      </provider>
843
+    </entry>
844
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
845
+      <provider selected="true" editor-type-id="text-editor">
846
+        <state relative-caret-position="345">
847
+          <caret line="31" column="11" lean-forward="true" selection-start-line="31" selection-start-column="11" selection-end-line="31" selection-end-column="11" />
848
+        </state>
849
+      </provider>
850
+    </entry>
851
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Coin.java" />
852
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/CoinRepository.java" />
853
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java">
854
+      <provider selected="true" editor-type-id="text-editor">
855
+        <state relative-caret-position="567">
856
+          <caret line="50" selection-start-line="50" selection-end-line="50" />
857
+        </state>
858
+      </provider>
859
+    </entry>
860
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
861
+      <provider selected="true" editor-type-id="text-editor">
862
+        <state relative-caret-position="1695">
863
+          <caret line="123" column="30" selection-start-line="123" selection-start-column="30" selection-end-line="123" selection-end-column="30" />
864
+        </state>
865
+      </provider>
866
+    </entry>
867
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
868
+      <provider selected="true" editor-type-id="text-editor">
869
+        <state relative-caret-position="318">
870
+          <caret line="117" column="26" selection-start-line="117" selection-start-column="26" selection-end-line="117" selection-end-column="26" />
871
+          <folding>
872
+            <element signature="imports" expanded="true" />
873
+            <element signature="e#854#855#0" expanded="true" />
874
+            <element signature="e#879#880#0" expanded="true" />
875
+            <element signature="e#913#914#0" expanded="true" />
876
+            <element signature="e#941#942#0" expanded="true" />
877
+            <element signature="e#981#982#0" expanded="true" />
878
+            <element signature="e#1017#1018#0" expanded="true" />
879
+            <element signature="e#1075#1076#0" expanded="true" />
880
+            <element signature="e#1125#1126#0" expanded="true" />
881
+            <element signature="e#1158#1159#0" expanded="true" />
882
+            <element signature="e#1187#1188#0" expanded="true" />
883
+            <element signature="e#1231#1232#0" expanded="true" />
884
+            <element signature="e#1267#1268#0" expanded="true" />
885
+            <element signature="e#1298#1299#0" expanded="true" />
886
+            <element signature="e#1325#1326#0" expanded="true" />
887
+            <element signature="e#1365#1366#0" expanded="true" />
888
+            <element signature="e#1397#1398#0" expanded="true" />
889
+            <element signature="e#1429#1430#0" expanded="true" />
890
+            <element signature="e#1458#1459#0" expanded="true" />
891
+            <element signature="e#1501#1502#0" expanded="true" />
892
+            <element signature="e#1537#1538#0" expanded="true" />
893
+            <element signature="e#1580#1581#0" expanded="true" />
894
+            <element signature="e#1612#1613#0" expanded="true" />
895
+            <element signature="e#1669#1670#0" expanded="true" />
896
+            <element signature="e#1711#1712#0" expanded="true" />
897
+          </folding>
898
+        </state>
899
+      </provider>
900
+    </entry>
901
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/utility/TransactionInput.java">
902
+      <provider selected="true" editor-type-id="text-editor">
903
+        <state relative-caret-position="120">
904
+          <caret line="8" column="10" selection-start-line="8" selection-start-column="10" selection-end-line="8" selection-end-column="10" />
905
+          <folding>
906
+            <element signature="e#237#238#0" expanded="true" />
907
+            <element signature="e#299#300#0" expanded="true" />
908
+            <element signature="e#556#557#0" expanded="true" />
909
+            <element signature="e#598#599#0" expanded="true" />
910
+            <element signature="e#668#669#0" expanded="true" />
911
+            <element signature="e#730#731#0" expanded="true" />
912
+            <element signature="e#772#773#0" expanded="true" />
913
+            <element signature="e#799#800#0" expanded="true" />
914
+            <element signature="e#850#851#0" expanded="true" />
915
+            <element signature="e#882#883#0" expanded="true" />
916
+          </folding>
917
+        </state>
918
+      </provider>
919
+    </entry>
920
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/utility/TransactionOutput.java">
921
+      <provider selected="true" editor-type-id="text-editor">
922
+        <state relative-caret-position="314">
923
+          <caret line="25" column="38" selection-start-line="25" selection-start-column="38" selection-end-line="25" selection-end-column="38" />
924
+          <folding>
925
+            <element signature="e#651#652#0" expanded="true" />
926
+            <element signature="e#676#677#0" expanded="true" />
927
+            <element signature="e#712#713#0" expanded="true" />
928
+            <element signature="e#740#741#0" expanded="true" />
929
+            <element signature="e#813#814#0" expanded="true" />
930
+            <element signature="e#868#869#0" expanded="true" />
931
+            <element signature="e#912#913#0" expanded="true" />
932
+            <element signature="e#943#944#0" expanded="true" />
933
+            <element signature="e#971#972#0" expanded="true" />
934
+            <element signature="e#1012#1013#0" expanded="true" />
935
+            <element signature="e#1046#1047#0" expanded="true" />
936
+            <element signature="e#1092#1093#0" expanded="true" />
937
+            <element signature="e#1134#1135#0" expanded="true" />
938
+            <element signature="e#1204#1205#0" expanded="true" />
939
+            <element signature="e#1266#1267#0" expanded="true" />
940
+            <element signature="e#717#718#0" expanded="true" />
941
+            <element signature="e#762#763#0" expanded="true" />
942
+          </folding>
943
+        </state>
944
+      </provider>
945
+    </entry>
946
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/utility/Encryption.java">
947
+      <provider selected="true" editor-type-id="text-editor">
948
+        <state relative-caret-position="-26">
949
+          <caret line="18" column="49" selection-start-line="18" selection-start-column="49" selection-end-line="18" selection-end-column="49" />
950
+          <folding>
951
+            <element signature="imports" expanded="true" />
952
+            <element signature="e#1724#1725#0" expanded="true" />
953
+          </folding>
954
+        </state>
955
+      </provider>
956
+    </entry>
957
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Blockchain.java">
958
+      <provider selected="true" editor-type-id="text-editor">
959
+        <state relative-caret-position="347">
960
+          <caret line="34" selection-start-line="34" selection-end-line="34" />
961
+          <folding>
962
+            <element signature="imports" expanded="true" />
963
+            <element signature="e#1854#1855#0" expanded="true" />
964
+          </folding>
965
+        </state>
966
+      </provider>
967
+    </entry>
968
+    <entry file="file://$PROJECT_DIR$/pom.xml">
969
+      <provider selected="true" editor-type-id="text-editor">
970
+        <state relative-caret-position="990">
971
+          <caret line="66" column="19" selection-start-line="66" selection-start-column="19" selection-end-line="66" selection-end-column="19" />
972
+        </state>
973
+      </provider>
974
+    </entry>
975
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
976
+      <provider selected="true" editor-type-id="text-editor">
977
+        <state relative-caret-position="870">
978
+          <caret line="133" column="30" selection-start-line="133" selection-start-column="30" selection-end-line="133" selection-end-column="30" />
979
+        </state>
980
+      </provider>
981
+    </entry>
982
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/CoinRepository.java" />
983
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/buecoin01/ApplicationTests.java">
984
+      <provider selected="true" editor-type-id="text-editor">
985
+        <state relative-caret-position="90">
986
+          <caret line="9" column="13" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="13" />
987
+        </state>
988
+      </provider>
989
+    </entry>
990
+    <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
991
+      <provider selected="true" editor-type-id="text-editor">
992
+        <state relative-caret-position="150">
993
+          <caret line="10" column="31" selection-start-line="10" selection-start-column="31" selection-end-line="10" selection-end-column="31" />
994
+        </state>
995
+      </provider>
996
+    </entry>
997
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Coin.java" />
998
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
999
+      <provider selected="true" editor-type-id="text-editor">
1000
+        <state relative-caret-position="75">
1001
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
1002
+        </state>
1003
+      </provider>
1004
+    </entry>
1005
+    <entry file="file://$PROJECT_DIR$/.idea/workspace.xml">
1006
+      <provider selected="true" editor-type-id="text-editor" />
1007
+    </entry>
1008
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Coin.java" />
1009
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java">
1010
+      <provider selected="true" editor-type-id="text-editor">
1011
+        <state relative-caret-position="285">
1012
+          <caret line="19" column="2" selection-start-line="19" selection-start-column="2" selection-end-line="19" selection-end-column="2" />
1013
+          <folding>
1014
+            <element signature="imports" expanded="true" />
1015
+            <element signature="e#1872#1873#0" expanded="true" />
1016
+            <element signature="e#1900#1901#0" expanded="true" />
1017
+            <element signature="e#1973#1974#0" expanded="true" />
1018
+            <element signature="e#2025#2026#0" expanded="true" />
1019
+            <element signature="e#2074#2075#0" expanded="true" />
1020
+            <element signature="e#2107#2108#0" expanded="true" />
1021
+            <element signature="e#2162#2163#0" expanded="true" />
1022
+            <element signature="e#2199#2200#0" expanded="true" />
1023
+            <element signature="e#2251#2252#0" expanded="true" />
1024
+            <element signature="e#2291#2292#0" expanded="true" />
1025
+            <element signature="e#2331#2332#0" expanded="true" />
1026
+            <element signature="e#2371#2372#0" expanded="true" />
1027
+          </folding>
1028
+        </state>
1029
+      </provider>
1030
+    </entry>
1031
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/EnableMongoRepositories.java">
1032
+      <provider selected="true" editor-type-id="text-editor">
1033
+        <state relative-caret-position="30">
1034
+          <caret line="2" column="18" selection-start-line="2" selection-start-column="18" selection-end-line="2" selection-end-column="18" />
1035
+        </state>
1036
+      </provider>
1037
+    </entry>
1038
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
1039
+      <provider selected="true" editor-type-id="text-editor">
1040
+        <state relative-caret-position="60">
1041
+          <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
1042
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
510 1043
         </state>
511 1044
       </provider>
512 1045
     </entry>
@@ -514,7 +1047,17 @@
514 1047
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/WalletRepository.java">
515 1048
       <provider selected="true" editor-type-id="text-editor">
516 1049
         <state relative-caret-position="75">
517
-          <caret line="8" column="73" selection-start-line="8" selection-start-column="73" selection-end-line="8" selection-end-column="73" />
1050
+          <caret line="8" lean-forward="true" selection-start-line="8" selection-end-line="8" />
1051
+        </state>
1052
+      </provider>
1053
+    </entry>
1054
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
1055
+      <provider selected="true" editor-type-id="text-editor">
1056
+        <state relative-caret-position="180">
1057
+          <caret line="12" column="17" selection-start-line="12" selection-start-column="17" selection-end-line="12" selection-end-column="17" />
1058
+          <folding>
1059
+            <element signature="imports" expanded="true" />
1060
+          </folding>
518 1061
         </state>
519 1062
       </provider>
520 1063
     </entry>
@@ -527,8 +1070,13 @@
527 1070
     </entry>
528 1071
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
529 1072
       <provider selected="true" editor-type-id="text-editor">
1073
+<<<<<<< HEAD
530 1074
         <state relative-caret-position="165">
531 1075
           <caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
1076
+=======
1077
+        <state relative-caret-position="210">
1078
+          <caret line="14" column="42" lean-forward="true" selection-start-line="14" selection-start-column="42" selection-end-line="14" selection-end-column="42" />
1079
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
532 1080
           <folding>
533 1081
             <element signature="imports" expanded="true" />
534 1082
           </folding>
@@ -537,7 +1085,11 @@
537 1085
     </entry>
538 1086
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/BlockController.java">
539 1087
       <provider selected="true" editor-type-id="text-editor">
1088
+<<<<<<< HEAD
540 1089
         <state relative-caret-position="673">
1090
+=======
1091
+        <state relative-caret-position="639">
1092
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
541 1093
           <caret line="47" column="40" selection-start-line="47" selection-start-column="40" selection-end-line="47" selection-end-column="40" />
542 1094
           <folding>
543 1095
             <element signature="imports" expanded="true" />
@@ -545,6 +1097,7 @@
545 1097
         </state>
546 1098
       </provider>
547 1099
     </entry>
1100
+<<<<<<< HEAD
548 1101
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/BlockchainVerification.java">
549 1102
       <provider selected="true" editor-type-id="text-editor">
550 1103
         <state relative-caret-position="675">
@@ -574,19 +1127,52 @@
574 1127
       <provider selected="true" editor-type-id="text-editor">
575 1128
         <state relative-caret-position="442">
576 1129
           <caret line="135" column="14" lean-forward="true" selection-start-line="135" selection-start-column="14" selection-end-line="135" selection-end-column="14" />
1130
+=======
1131
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Wallet.java">
1132
+      <provider selected="true" editor-type-id="text-editor">
1133
+        <state relative-caret-position="966">
1134
+          <caret line="121" column="45" lean-forward="true" selection-start-line="121" selection-start-column="45" selection-end-line="121" selection-end-column="45" />
1135
+          <folding>
1136
+            <element signature="imports" expanded="true" />
1137
+            <element signature="e#925#926#0" expanded="true" />
1138
+            <element signature="e#952#953#0" expanded="true" />
1139
+            <element signature="e#992#993#0" expanded="true" />
1140
+            <element signature="e#1024#1025#0" expanded="true" />
1141
+            <element signature="e#1123#1124#0" expanded="true" />
1142
+            <element signature="e#1156#1157#0" expanded="true" />
1143
+            <element signature="e#1195#1196#0" expanded="true" />
1144
+            <element signature="e#1227#1228#0" expanded="true" />
1145
+            <element signature="e#1258#1259#0" expanded="true" />
1146
+            <element signature="e#1287#1288#0" expanded="true" />
1147
+            <element signature="e#1329#1330#0" expanded="true" />
1148
+            <element signature="e#1365#1366#0" expanded="true" />
1149
+            <element signature="e#1481#1482#0" expanded="true" />
1150
+            <element signature="e#1521#1522#0" expanded="true" />
1151
+            <element signature="e#1548#1549#0" expanded="true" />
1152
+            <element signature="e#1573#1574#0" expanded="true" />
1153
+            <element signature="e#1607#1608#0" expanded="true" />
1154
+            <element signature="e#1635#1636#0" expanded="true" />
1155
+          </folding>
1156
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
577 1157
         </state>
578 1158
       </provider>
579 1159
     </entry>
580 1160
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/WalletController.java">
581 1161
       <provider selected="true" editor-type-id="text-editor">
1162
+<<<<<<< HEAD
582 1163
         <state relative-caret-position="113">
583 1164
           <caret line="37" column="42" selection-start-line="37" selection-start-column="42" selection-end-line="37" selection-end-column="42" />
1165
+=======
1166
+        <state relative-caret-position="210">
1167
+          <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
1168
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
584 1169
           <folding>
585 1170
             <element signature="imports" expanded="true" />
586 1171
           </folding>
587 1172
         </state>
588 1173
       </provider>
589 1174
     </entry>
1175
+<<<<<<< HEAD
590 1176
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/controller/TransactionController.java">
591 1177
       <provider selected="true" editor-type-id="text-editor">
592 1178
         <state relative-caret-position="136">
@@ -612,6 +1198,12 @@
612 1198
       <provider selected="true" editor-type-id="text-editor">
613 1199
         <state relative-caret-position="241">
614 1200
           <caret line="46" selection-start-line="46" selection-end-line="46" />
1201
+=======
1202
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/ProcessLoader.java">
1203
+      <provider selected="true" editor-type-id="text-editor">
1204
+        <state relative-caret-position="390">
1205
+          <caret line="26" selection-start-line="26" selection-end-line="26" />
1206
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
615 1207
           <folding>
616 1208
             <element signature="imports" expanded="true" />
617 1209
             <element signature="e#971#972#0" expanded="true" />
@@ -640,11 +1232,12 @@
640 1232
     </entry>
641 1233
     <entry file="file://$PROJECT_DIR$/src/main/resources/application.properties">
642 1234
       <provider selected="true" editor-type-id="text-editor">
643
-        <state relative-caret-position="150">
644
-          <caret line="10" column="31" selection-start-line="10" selection-start-column="31" selection-end-line="10" selection-end-column="31" />
1235
+        <state relative-caret-position="45">
1236
+          <caret line="3" column="36" selection-start-line="3" selection-start-column="36" selection-end-line="3" selection-end-column="36" />
645 1237
         </state>
646 1238
       </provider>
647 1239
     </entry>
1240
+<<<<<<< HEAD
648 1241
     <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Application.java">
649 1242
       <provider selected="true" editor-type-id="text-editor">
650 1243
         <state relative-caret-position="120">
@@ -692,15 +1285,45 @@
692 1285
       <provider selected="true" editor-type-id="text-editor">
693 1286
         <state relative-caret-position="150">
694 1287
           <caret line="10" column="31" selection-start-line="10" selection-start-column="31" selection-end-line="10" selection-end-column="31" />
1288
+=======
1289
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Block.java">
1290
+      <provider selected="true" editor-type-id="text-editor">
1291
+        <state relative-caret-position="28">
1292
+          <caret line="24" column="16" lean-forward="true" selection-start-line="24" selection-end-line="25" />
1293
+>>>>>>> 8f54c3eecc5bed7d04144a96ce991b00bf0a29ef
695 1294
         </state>
696 1295
       </provider>
697 1296
     </entry>
698
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/Repositories/TransactionRepository.java">
1297
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/buecoin01/model/Transactions.java">
699 1298
       <provider selected="true" editor-type-id="text-editor">
700
-        <state relative-caret-position="195">
701
-          <caret line="13" lean-forward="true" selection-start-line="13" selection-end-line="13" />
1299
+        <state relative-caret-position="202">
1300
+          <caret line="31" column="114" selection-start-line="31" selection-start-column="114" selection-end-line="31" selection-end-column="114" />
702 1301
           <folding>
703 1302
             <element signature="imports" expanded="true" />
1303
+            <element signature="e#854#855#0" expanded="true" />
1304
+            <element signature="e#879#880#0" expanded="true" />
1305
+            <element signature="e#913#914#0" expanded="true" />
1306
+            <element signature="e#941#942#0" expanded="true" />
1307
+            <element signature="e#981#982#0" expanded="true" />
1308
+            <element signature="e#1017#1018#0" expanded="true" />
1309
+            <element signature="e#1075#1076#0" expanded="true" />
1310
+            <element signature="e#1125#1126#0" expanded="true" />
1311
+            <element signature="e#1158#1159#0" expanded="true" />
1312
+            <element signature="e#1187#1188#0" expanded="true" />
1313
+            <element signature="e#1231#1232#0" expanded="true" />
1314
+            <element signature="e#1267#1268#0" expanded="true" />
1315
+            <element signature="e#1298#1299#0" expanded="true" />
1316
+            <element signature="e#1325#1326#0" expanded="true" />
1317
+            <element signature="e#1365#1366#0" expanded="true" />
1318
+            <element signature="e#1397#1398#0" expanded="true" />
1319
+            <element signature="e#1429#1430#0" expanded="true" />
1320
+            <element signature="e#1458#1459#0" expanded="true" />
1321
+            <element signature="e#1501#1502#0" expanded="true" />
1322
+            <element signature="e#1537#1538#0" expanded="true" />
1323
+            <element signature="e#1580#1581#0" expanded="true" />
1324
+            <element signature="e#1612#1613#0" expanded="true" />
1325
+            <element signature="e#1669#1670#0" expanded="true" />
1326
+            <element signature="e#1711#1712#0" expanded="true" />
704 1327
           </folding>
705 1328
         </state>
706 1329
       </provider>

+ 0
- 113
0.1.iml Ver arquivo

@@ -1,113 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
-  <component name="FacetManager">
4
-    <facet type="Spring" name="Spring">
5
-      <configuration />
6
-    </facet>
7
-    <facet type="web" name="Web">
8
-      <configuration>
9
-        <webroots />
10
-        <sourceRoots>
11
-          <root url="file://$MODULE_DIR$/src/main/java" />
12
-          <root url="file://$MODULE_DIR$/src/main/resources" />
13
-        </sourceRoots>
14
-      </configuration>
15
-    </facet>
16
-  </component>
17
-  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
18
-    <output url="file://$MODULE_DIR$/target/classes" />
19
-    <output-test url="file://$MODULE_DIR$/target/test-classes" />
20
-    <content url="file://$MODULE_DIR$">
21
-      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
22
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
23
-      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
24
-      <excludeFolder url="file://$MODULE_DIR$/target" />
25
-    </content>
26
-    <orderEntry type="inheritedJdk" />
27
-    <orderEntry type="sourceFolder" forTests="false" />
28
-    <orderEntry type="library" name="Maven: org.ow2.util.bundles:bouncycastle-java5-136:1.0.0" level="project" />
29
-    <orderEntry type="library" name="Maven: bouncycastle:bcprov-jdk15:136" level="project" />
30
-    <orderEntry type="library" name="Maven: com.bluecatcode.guava:guava-19.0-extended:1.1.0" level="project" />
31
-    <orderEntry type="library" name="Maven: com.google.guava:guava:19.0" level="project" />
32
-    <orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.1" level="project" />
33
-    <orderEntry type="library" name="Maven: commons-codec:commons-codec:1.4" level="project" />
34
-    <orderEntry type="library" name="Maven: com.google.code.gson:gson:2.8.5" level="project" />
35
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-jpa:2.0.3.RELEASE" level="project" />
36
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.0.3.RELEASE" level="project" />
37
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.0.3.RELEASE" level="project" />
38
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.0.3.RELEASE" level="project" />
39
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.0.3.RELEASE" level="project" />
40
-    <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
41
-    <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
42
-    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.10.0" level="project" />
43
-    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.10.0" level="project" />
44
-    <orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.25" level="project" />
45
-    <orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
46
-    <orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.19" level="project" />
47
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.0.3.RELEASE" level="project" />
48
-    <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.0.7.RELEASE" level="project" />
49
-    <orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.8.13" level="project" />
50
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.0.3.RELEASE" level="project" />
51
-    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:2.7.9" level="project" />
52
-    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.0.7.RELEASE" level="project" />
53
-    <orderEntry type="library" name="Maven: org.hibernate:hibernate-core:5.2.17.Final" level="project" />
54
-    <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
55
-    <orderEntry type="library" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final" level="project" />
56
-    <orderEntry type="library" name="Maven: org.javassist:javassist:3.22.0-GA" level="project" />
57
-    <orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
58
-    <orderEntry type="library" name="Maven: org.jboss:jandex:2.0.3.Final" level="project" />
59
-    <orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.4" level="project" />
60
-    <orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
61
-    <orderEntry type="library" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.0.1.Final" level="project" />
62
-    <orderEntry type="library" name="Maven: javax.transaction:javax.transaction-api:1.2" level="project" />
63
-    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:2.0.8.RELEASE" level="project" />
64
-    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.0.8.RELEASE" level="project" />
65
-    <orderEntry type="library" name="Maven: org.springframework:spring-orm:5.0.7.RELEASE" level="project" />
66
-    <orderEntry type="library" name="Maven: org.springframework:spring-context:5.0.7.RELEASE" level="project" />
67
-    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.0.7.RELEASE" level="project" />
68
-    <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.0.7.RELEASE" level="project" />
69
-    <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" />
70
-    <orderEntry type="library" name="Maven: org.springframework:spring-aspects:5.0.7.RELEASE" level="project" />
71
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.0.3.RELEASE" level="project" />
72
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.0.3.RELEASE" level="project" />
73
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.6" level="project" />
74
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
75
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.6" level="project" />
76
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.6" level="project" />
77
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.6" level="project" />
78
-    <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.6" level="project" />
79
-    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.0.3.RELEASE" level="project" />
80
-    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:8.5.31" level="project" />
81
-    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:8.5.31" level="project" />
82
-    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:8.5.31" level="project" />
83
-    <orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.10.Final" level="project" />
84
-    <orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
85
-    <orderEntry type="library" name="Maven: org.springframework:spring-web:5.0.7.RELEASE" level="project" />
86
-    <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.0.7.RELEASE" level="project" />
87
-    <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.0.7.RELEASE" level="project" />
88
-    <orderEntry type="library" scope="RUNTIME" name="Maven: mysql:mysql-connector-java:5.1.46" level="project" />
89
-    <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-starter-test:2.0.3.RELEASE" level="project" />
90
-    <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test:2.0.3.RELEASE" level="project" />
91
-    <orderEntry type="library" scope="TEST" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.0.3.RELEASE" level="project" />
92
-    <orderEntry type="library" scope="TEST" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
93
-    <orderEntry type="library" scope="TEST" name="Maven: net.minidev:json-smart:2.3" level="project" />
94
-    <orderEntry type="library" scope="TEST" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
95
-    <orderEntry type="library" scope="TEST" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
96
-    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
97
-    <orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:3.9.1" level="project" />
98
-    <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:2.15.0" level="project" />
99
-    <orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy:1.7.11" level="project" />
100
-    <orderEntry type="library" scope="TEST" name="Maven: net.bytebuddy:byte-buddy-agent:1.7.11" level="project" />
101
-    <orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:2.6" level="project" />
102
-    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
103
-    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
104
-    <orderEntry type="library" scope="TEST" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
105
-    <orderEntry type="library" scope="TEST" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
106
-    <orderEntry type="library" name="Maven: org.springframework:spring-core:5.0.7.RELEASE" level="project" />
107
-    <orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.0.7.RELEASE" level="project" />
108
-    <orderEntry type="library" scope="TEST" name="Maven: org.springframework:spring-test:5.0.7.RELEASE" level="project" />
109
-    <orderEntry type="library" scope="TEST" name="Maven: org.xmlunit:xmlunit-core:2.5.1" level="project" />
110
-    <orderEntry type="library" name="Maven: org.ow2.util.bundles:bouncycastle-java5-136:1.0.0" level="project" />
111
-    <orderEntry type="library" name="Maven: bouncycastle:bcprov-jdk15:136" level="project" />
112
-  </component>
113
-</module>

+ 0
- 0
README.md Ver arquivo


+ 0
- 2859
application.log
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 225
mvnw Ver arquivo

@@ -1,225 +0,0 @@
1
-#!/bin/sh
2
-# ----------------------------------------------------------------------------
3
-# Licensed to the Apache Software Foundation (ASF) under one
4
-# or more contributor license agreements.  See the NOTICE file
5
-# distributed with this work for additional information
6
-# regarding copyright ownership.  The ASF licenses this file
7
-# to you under the Apache License, Version 2.0 (the
8
-# "License"); you may not use this file except in compliance
9
-# with the License.  You may obtain a copy of the License at
10
-#
11
-#    http://www.apache.org/licenses/LICENSE-2.0
12
-#
13
-# Unless required by applicable law or agreed to in writing,
14
-# software distributed under the License is distributed on an
15
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
-# KIND, either express or implied.  See the License for the
17
-# specific language governing permissions and limitations
18
-# under the License.
19
-# ----------------------------------------------------------------------------
20
-
21
-# ----------------------------------------------------------------------------
22
-# Maven2 Start Up Batch script
23
-#
24
-# Required ENV vars:
25
-# ------------------
26
-#   JAVA_HOME - location of a JDK home dir
27
-#
28
-# Optional ENV vars
29
-# -----------------
30
-#   M2_HOME - location of maven2's installed home dir
31
-#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
-#     e.g. to debug Maven itself, use
33
-#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
-#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35
-# ----------------------------------------------------------------------------
36
-
37
-if [ -z "$MAVEN_SKIP_RC" ] ; then
38
-
39
-  if [ -f /etc/mavenrc ] ; then
40
-    . /etc/mavenrc
41
-  fi
42
-
43
-  if [ -f "$HOME/.mavenrc" ] ; then
44
-    . "$HOME/.mavenrc"
45
-  fi
46
-
47
-fi
48
-
49
-# OS specific support.  $var _must_ be set to either true or false.
50
-cygwin=false;
51
-darwin=false;
52
-mingw=false
53
-case "`uname`" in
54
-  CYGWIN*) cygwin=true ;;
55
-  MINGW*) mingw=true;;
56
-  Darwin*) darwin=true
57
-    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
58
-    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
59
-    if [ -z "$JAVA_HOME" ]; then
60
-      if [ -x "/usr/libexec/java_home" ]; then
61
-        export JAVA_HOME="`/usr/libexec/java_home`"
62
-      else
63
-        export JAVA_HOME="/Library/Java/Home"
64
-      fi
65
-    fi
66
-    ;;
67
-esac
68
-
69
-if [ -z "$JAVA_HOME" ] ; then
70
-  if [ -r /etc/gentoo-release ] ; then
71
-    JAVA_HOME=`java-config --jre-home`
72
-  fi
73
-fi
74
-
75
-if [ -z "$M2_HOME" ] ; then
76
-  ## resolve links - $0 may be a link to maven's home
77
-  PRG="$0"
78
-
79
-  # need this for relative symlinks
80
-  while [ -h "$PRG" ] ; do
81
-    ls=`ls -ld "$PRG"`
82
-    link=`expr "$ls" : '.*-> \(.*\)$'`
83
-    if expr "$link" : '/.*' > /dev/null; then
84
-      PRG="$link"
85
-    else
86
-      PRG="`dirname "$PRG"`/$link"
87
-    fi
88
-  done
89
-
90
-  saveddir=`pwd`
91
-
92
-  M2_HOME=`dirname "$PRG"`/..
93
-
94
-  # make it fully qualified
95
-  M2_HOME=`cd "$M2_HOME" && pwd`
96
-
97
-  cd "$saveddir"
98
-  # echo Using m2 at $M2_HOME
99
-fi
100
-
101
-# For Cygwin, ensure paths are in UNIX format before anything is touched
102
-if $cygwin ; then
103
-  [ -n "$M2_HOME" ] &&
104
-    M2_HOME=`cygpath --unix "$M2_HOME"`
105
-  [ -n "$JAVA_HOME" ] &&
106
-    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
107
-  [ -n "$CLASSPATH" ] &&
108
-    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
109
-fi
110
-
111
-# For Migwn, ensure paths are in UNIX format before anything is touched
112
-if $mingw ; then
113
-  [ -n "$M2_HOME" ] &&
114
-    M2_HOME="`(cd "$M2_HOME"; pwd)`"
115
-  [ -n "$JAVA_HOME" ] &&
116
-    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
117
-  # TODO classpath?
118
-fi
119
-
120
-if [ -z "$JAVA_HOME" ]; then
121
-  javaExecutable="`which javac`"
122
-  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
123
-    # readlink(1) is not available as standard on Solaris 10.
124
-    readLink=`which readlink`
125
-    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
126
-      if $darwin ; then
127
-        javaHome="`dirname \"$javaExecutable\"`"
128
-        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
129
-      else
130
-        javaExecutable="`readlink -f \"$javaExecutable\"`"
131
-      fi
132
-      javaHome="`dirname \"$javaExecutable\"`"
133
-      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
134
-      JAVA_HOME="$javaHome"
135
-      export JAVA_HOME
136
-    fi
137
-  fi
138
-fi
139
-
140
-if [ -z "$JAVACMD" ] ; then
141
-  if [ -n "$JAVA_HOME"  ] ; then
142
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
143
-      # IBM's JDK on AIX uses strange locations for the executables
144
-      JAVACMD="$JAVA_HOME/jre/sh/java"
145
-    else
146
-      JAVACMD="$JAVA_HOME/bin/java"
147
-    fi
148
-  else
149
-    JAVACMD="`which java`"
150
-  fi
151
-fi
152
-
153
-if [ ! -x "$JAVACMD" ] ; then
154
-  echo "Error: JAVA_HOME is not defined correctly." >&2
155
-  echo "  We cannot execute $JAVACMD" >&2
156
-  exit 1
157
-fi
158
-
159
-if [ -z "$JAVA_HOME" ] ; then
160
-  echo "Warning: JAVA_HOME environment variable is not set."
161
-fi
162
-
163
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
164
-
165
-# traverses directory structure from process work directory to filesystem root
166
-# first directory with .mvn subdirectory is considered project base directory
167
-find_maven_basedir() {
168
-
169
-  if [ -z "$1" ]
170
-  then
171
-    echo "Path not specified to find_maven_basedir"
172
-    return 1
173
-  fi
174
-
175
-  basedir="$1"
176
-  wdir="$1"
177
-  while [ "$wdir" != '/' ] ; do
178
-    if [ -d "$wdir"/.mvn ] ; then
179
-      basedir=$wdir
180
-      break
181
-    fi
182
-    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
183
-    if [ -d "${wdir}" ]; then
184
-      wdir=`cd "$wdir/.."; pwd`
185
-    fi
186
-    # end of workaround
187
-  done
188
-  echo "${basedir}"
189
-}
190
-
191
-# concatenates all lines of a file
192
-concat_lines() {
193
-  if [ -f "$1" ]; then
194
-    echo "$(tr -s '\n' ' ' < "$1")"
195
-  fi
196
-}
197
-
198
-BASE_DIR=`find_maven_basedir "$(pwd)"`
199
-if [ -z "$BASE_DIR" ]; then
200
-  exit 1;
201
-fi
202
-
203
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
204
-echo $MAVEN_PROJECTBASEDIR
205
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
206
-
207
-# For Cygwin, switch paths to Windows format before running java
208
-if $cygwin; then
209
-  [ -n "$M2_HOME" ] &&
210
-    M2_HOME=`cygpath --path --windows "$M2_HOME"`
211
-  [ -n "$JAVA_HOME" ] &&
212
-    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
213
-  [ -n "$CLASSPATH" ] &&
214
-    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
215
-  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
216
-    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
217
-fi
218
-
219
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
220
-
221
-exec "$JAVACMD" \
222
-  $MAVEN_OPTS \
223
-  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
224
-  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
225
-  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

+ 0
- 143
mvnw.cmd Ver arquivo

@@ -1,143 +0,0 @@
1
-@REM ----------------------------------------------------------------------------
2
-@REM Licensed to the Apache Software Foundation (ASF) under one
3
-@REM or more contributor license agreements.  See the NOTICE file
4
-@REM distributed with this work for additional information
5
-@REM regarding copyright ownership.  The ASF licenses this file
6
-@REM to you under the Apache License, Version 2.0 (the
7
-@REM "License"); you may not use this file except in compliance
8
-@REM with the License.  You may obtain a copy of the License at
9
-@REM
10
-@REM    http://www.apache.org/licenses/LICENSE-2.0
11
-@REM
12
-@REM Unless required by applicable law or agreed to in writing,
13
-@REM software distributed under the License is distributed on an
14
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
-@REM KIND, either express or implied.  See the License for the
16
-@REM specific language governing permissions and limitations
17
-@REM under the License.
18
-@REM ----------------------------------------------------------------------------
19
-
20
-@REM ----------------------------------------------------------------------------
21
-@REM Maven2 Start Up Batch script
22
-@REM
23
-@REM Required ENV vars:
24
-@REM JAVA_HOME - location of a JDK home dir
25
-@REM
26
-@REM Optional ENV vars
27
-@REM M2_HOME - location of maven2's installed home dir
28
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
-@REM     e.g. to debug Maven itself, use
32
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34
-@REM ----------------------------------------------------------------------------
35
-
36
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37
-@echo off
38
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
39
-@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
40
-
41
-@REM set %HOME% to equivalent of $HOME
42
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
43
-
44
-@REM Execute a user defined script before this one
45
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
46
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
47
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
48
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
49
-:skipRcPre
50
-
51
-@setlocal
52
-
53
-set ERROR_CODE=0
54
-
55
-@REM To isolate internal variables from possible post scripts, we use another setlocal
56
-@setlocal
57
-
58
-@REM ==== START VALIDATION ====
59
-if not "%JAVA_HOME%" == "" goto OkJHome
60
-
61
-echo.
62
-echo Error: JAVA_HOME not found in your environment. >&2
63
-echo Please set the JAVA_HOME variable in your environment to match the >&2
64
-echo location of your Java installation. >&2
65
-echo.
66
-goto error
67
-
68
-:OkJHome
69
-if exist "%JAVA_HOME%\bin\java.exe" goto init
70
-
71
-echo.
72
-echo Error: JAVA_HOME is set to an invalid directory. >&2
73
-echo JAVA_HOME = "%JAVA_HOME%" >&2
74
-echo Please set the JAVA_HOME variable in your environment to match the >&2
75
-echo location of your Java installation. >&2
76
-echo.
77
-goto error
78
-
79
-@REM ==== END VALIDATION ====
80
-
81
-:init
82
-
83
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
84
-@REM Fallback to current working directory if not found.
85
-
86
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
87
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
88
-
89
-set EXEC_DIR=%CD%
90
-set WDIR=%EXEC_DIR%
91
-:findBaseDir
92
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
93
-cd ..
94
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
95
-set WDIR=%CD%
96
-goto findBaseDir
97
-
98
-:baseDirFound
99
-set MAVEN_PROJECTBASEDIR=%WDIR%
100
-cd "%EXEC_DIR%"
101
-goto endDetectBaseDir
102
-
103
-:baseDirNotFound
104
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
105
-cd "%EXEC_DIR%"
106
-
107
-:endDetectBaseDir
108
-
109
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
110
-
111
-@setlocal EnableExtensions EnableDelayedExpansion
112
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
113
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
114
-
115
-:endReadAdditionalConfig
116
-
117
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
118
-
119
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
120
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
121
-
122
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
123
-if ERRORLEVEL 1 goto error
124
-goto end
125
-
126
-:error
127
-set ERROR_CODE=1
128
-
129
-:end
130
-@endlocal & set ERROR_CODE=%ERROR_CODE%
131
-
132
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
133
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
134
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
135
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
136
-:skipRcPost
137
-
138
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
139
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
140
-
141
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
142
-
143
-exit /B %ERROR_CODE%

+ 0
- 79
pom.xml Ver arquivo

@@ -1,79 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
-	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
-	<modelVersion>4.0.0</modelVersion>
5
-
6
-	<groupId>com.buecoin</groupId>
7
-	<artifactId>0.1</artifactId>
8
-	<version>0.0.1-SNAPSHOT</version>
9
-	<packaging>jar</packaging>
10
-
11
-	<name>0.1</name>
12
-	<description>Demo project for Spring Boot</description>
13
-
14
-	<parent>
15
-		<groupId>org.springframework.boot</groupId>
16
-		<artifactId>spring-boot-starter-parent</artifactId>
17
-		<version>2.0.3.RELEASE</version>
18
-		<relativePath/> <!-- lookup parent from repository -->
19
-	</parent>
20
-
21
-	<properties>
22
-		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
-		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24
-		<java.version>1.8</java.version>
25
-	</properties>
26
-
27
-	<dependencies>
28
-        <dependency>
29
-            <groupId>com.bluecatcode.guava</groupId>
30
-            <artifactId>guava-19.0-extended</artifactId>
31
-            <version>LATEST</version>
32
-        </dependency>
33
-		<!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
34
-		<dependency>
35
-			<groupId>commons-codec</groupId>
36
-			<artifactId>commons-codec</artifactId>
37
-			<version>1.4</version>
38
-		</dependency>
39
-		<dependency>
40
-			<groupId>com.google.code.gson</groupId>
41
-			<artifactId>gson</artifactId>
42
-		</dependency>
43
-		<dependency>
44
-			<groupId>org.springframework.boot</groupId>
45
-			<artifactId>spring-boot-starter-data-jpa</artifactId>
46
-		</dependency>
47
-		<dependency>
48
-			<groupId>org.springframework.boot</groupId>
49
-			<artifactId>spring-boot-starter-web</artifactId>
50
-		</dependency>
51
-
52
-		<dependency>
53
-			<groupId>mysql</groupId>
54
-			<artifactId>mysql-connector-java</artifactId>
55
-			<scope>runtime</scope>
56
-		</dependency>
57
-		<dependency>
58
-			<groupId>org.springframework.boot</groupId>
59
-			<artifactId>spring-boot-starter-test</artifactId>
60
-			<scope>test</scope>
61
-		</dependency>
62
-        <dependency>
63
-            <groupId>org.ow2.util.bundles</groupId>
64
-            <artifactId>bouncycastle-java5-136</artifactId>
65
-            <version>1.0.0</version>
66
-        </dependency>
67
-	</dependencies>
68
-
69
-	<build>
70
-		<plugins>
71
-			<plugin>
72
-				<groupId>org.springframework.boot</groupId>
73
-				<artifactId>spring-boot-maven-plugin</artifactId>
74
-			</plugin>
75
-		</plugins>
76
-	</build>
77
-
78
-
79
-</project>

BIN
src/.DS_Store Ver arquivo


BIN
src/main/.DS_Store Ver arquivo


BIN
src/main/java/.DS_Store Ver arquivo


BIN
src/main/java/com/.DS_Store Ver arquivo


BIN
src/main/java/com/buecoin01/.DS_Store Ver arquivo


+ 0
- 15
src/main/java/com/buecoin01/Application.java Ver arquivo

@@ -1,15 +0,0 @@
1
-package com.buecoin01;
2
-
3
-import com.buecoin01.model.Block;
4
-import org.springframework.boot.SpringApplication;
5
-import org.springframework.boot.autoconfigure.SpringBootApplication;
6
-
7
-@SpringBootApplication
8
-public class Application {
9
-
10
-	public static void main(String[] args) {
11
-		SpringApplication.run(Application.class, args);
12
-
13
-
14
-	}
15
-}

+ 0
- 30
src/main/java/com/buecoin01/ProcessLoader.java Ver arquivo

@@ -1,30 +0,0 @@
1
-package com.buecoin01;
2
-
3
-import com.buecoin01.Repositories.BlockRepository;
4
-import com.buecoin01.Repositories.WalletRepository;
5
-
6
-import com.buecoin01.model.Block;
7
-import org.springframework.beans.factory.annotation.Autowired;
8
-import org.springframework.boot.ApplicationArguments;
9
-import org.springframework.boot.ApplicationRunner;
10
-import org.springframework.stereotype.Component;
11
-
12
-import java.time.LocalDateTime;
13
-
14
-@Component
15
-public class ProcessLoader implements ApplicationRunner {
16
-
17
-
18
-    @Autowired
19
-    WalletRepository repo1;
20
-
21
-    @Autowired
22
-    BlockRepository repo3;
23
-
24
-
25
-    @Override
26
-    public void run(ApplicationArguments args) {
27
-        Block b = new Block("00000691457f4f0ce13e187b9ab4fda6d42c8647752909b8f71f9dbd8f6bd4ab", LocalDateTime.now(), 596138);
28
-                repo3.save(b);
29
-    }
30
-}

+ 0
- 11
src/main/java/com/buecoin01/Repositories/BlockRepository.java Ver arquivo

@@ -1,11 +0,0 @@
1
-package com.buecoin01.Repositories;
2
-
3
-import com.buecoin01.model.Block;
4
-import org.springframework.data.jpa.repository.JpaRepository;
5
-import org.springframework.stereotype.Repository;
6
-import org.springframework.web.bind.annotation.CrossOrigin;
7
-
8
-@Repository
9
-@CrossOrigin(origins = {"http://localhost:8100","http://localhost:8080"})
10
-public interface BlockRepository extends JpaRepository<Block, Long> {
11
-}

+ 0
- 13
src/main/java/com/buecoin01/Repositories/TransactionRepository.java Ver arquivo

@@ -1,13 +0,0 @@
1
-package com.buecoin01.Repositories;
2
-
3
-import org.springframework.data.jpa.repository.JpaRepository;
4
-import org.springframework.stereotype.Repository;
5
-import org.springframework.web.bind.annotation.CrossOrigin;
6
-import org.springframework.web.bind.annotation.RequestBody;
7
-
8
-import javax.transaction.Transaction;
9
-
10
-@CrossOrigin(origins = {"http://localhost:8100","http://localhost:8080"})
11
-@Repository
12
-public interface TransactionRepository extends JpaRepository<Transaction, Long> {
13
-}

+ 0
- 11
src/main/java/com/buecoin01/Repositories/WalletRepository.java Ver arquivo

@@ -1,11 +0,0 @@
1
-package com.buecoin01.Repositories;
2
-
3
-import com.buecoin01.model.Wallet;
4
-import org.springframework.data.jpa.repository.JpaRepository;
5
-import org.springframework.stereotype.Repository;
6
-import org.springframework.web.bind.annotation.CrossOrigin;
7
-
8
-@Repository
9
-@CrossOrigin(origins = {"http://localhost:8100","http://localhost:8080"})
10
-public interface WalletRepository extends JpaRepository<Wallet, Long> {
11
-}

+ 0
- 56
src/main/java/com/buecoin01/controller/BlockController.java Ver arquivo

@@ -1,56 +0,0 @@
1
-package com.buecoin01.controller;
2
-
3
-import com.buecoin01.Repositories.BlockRepository;
4
-import com.buecoin01.model.Block;
5
-import org.springframework.beans.factory.annotation.Autowired;
6
-import org.springframework.http.HttpStatus;
7
-import org.springframework.http.ResponseEntity;
8
-import org.springframework.web.bind.annotation.*;
9
-
10
-import java.util.Optional;
11
-
12
-public class BlockController { @CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
13
-@RestController
14
-
15
-
16
-public class UserController {
17
-
18
-
19
-    @Autowired
20
-    private BlockRepository blockRepository;
21
-
22
-    @RequestMapping(value = "/block/{id}", method = RequestMethod.GET)
23
-    public ResponseEntity get(@PathVariable Long id) {
24
-        Optional<Block> block = blockRepository.findById( id );
25
-        return new ResponseEntity <>( block, HttpStatus.OK );
26
-
27
-    }
28
-
29
-    @RequestMapping(value = "/blocks", method = RequestMethod.GET)
30
-    public ResponseEntity <Iterable <Block>> getAllUsers() {
31
-        Iterable <Block> allBlocks = blockRepository.findAll();
32
-        return new ResponseEntity <>( allBlocks, HttpStatus.OK );
33
-
34
-    }
35
-
36
-    @RequestMapping(path = "/addBlock", method = RequestMethod.POST)
37
-    public ResponseEntity <?> create(@RequestBody Block block) {
38
-        blockRepository.save(block);
39
-        return new ResponseEntity <>( block, HttpStatus.CREATED );
40
-    }
41
-
42
-    @RequestMapping(path = "/deleteBlock", method = RequestMethod.DELETE)
43
-    public ResponseEntity <Block> deleteBlock(@RequestBody Block block) {
44
-        blockRepository.delete(block );
45
-        return new ResponseEntity <>( HttpStatus.OK );
46
-    }
47
-
48
-    @RequestMapping(path = "/updateBlock", method = RequestMethod.PUT)
49
-    public ResponseEntity <Block> updateBlock(@RequestBody Block block) {
50
-        blockRepository.save(block);
51
-        return new ResponseEntity <>( HttpStatus.OK );
52
-    }
53
-
54
-
55
-}
56
-}

+ 0
- 57
src/main/java/com/buecoin01/controller/TransactionController.java Ver arquivo

@@ -1,57 +0,0 @@
1
-//package com.buecoin01.controller;
2
-//
3
-//import com.buecoin01.Repositories.TransactionRepository;
4
-//import com.buecoin01.model.Transaction;
5
-//import org.springframework.beans.factory.annotation.Autowired;
6
-//import org.springframework.http.HttpStatus;
7
-//import org.springframework.http.ResponseEntity;
8
-//import org.springframework.web.bind.annotation.*;
9
-//import java.util.Optional;
10
-//
11
-//public class TransactionController {
12
-//
13
-//    @CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
14
-//    @RestController
15
-//    @RequestMapping(path = "/transaction")
16
-//
17
-//    public class UserController {
18
-//
19
-//
20
-//        @Autowired
21
-//        private TransactionRepository transactionRepository;
22
-//
23
-//        @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
24
-//        public ResponseEntity get(@PathVariable Long id) {
25
-//            Optional<Transaction> transaction = transactionRepository.findById(id);
26
-//            return new ResponseEntity <>(transaction, HttpStatus.OK );
27
-//
28
-//        }
29
-//
30
-//        @RequestMapping(value = "/users", method = RequestMethod.GET)
31
-//        public ResponseEntity <Iterable <Transaction>> getAllUsers() {
32
-//            Iterable <Transaction> allTransactions = transactionRepository.findAll();
33
-//            return new ResponseEntity <>( allTransactions, HttpStatus.OK );
34
-//
35
-//        }
36
-//
37
-//        @RequestMapping(path = "/add", method = RequestMethod.POST)
38
-//        public ResponseEntity <?> create(@RequestBody Transaction transaction) {
39
-//            transactionRepository.save(transaction);
40
-//            return new ResponseEntity <>( transaction, HttpStatus.CREATED );
41
-//        }
42
-//
43
-//        @RequestMapping(path = "/delete", method = RequestMethod.DELETE)
44
-//        public ResponseEntity <Transaction> deleteUser(@RequestBody Transaction transaction) {
45
-//            transactionRepository.delete(transaction);
46
-//            return new ResponseEntity <>( HttpStatus.OK );
47
-//        }
48
-//
49
-//        @RequestMapping(path = "/updateUser", method = RequestMethod.PUT)
50
-//        public ResponseEntity <Transaction> updateUser(@RequestBody Transaction transaction) {
51
-//            transactionRepository.save(transaction);
52
-//            return new ResponseEntity <>( HttpStatus.OK );
53
-//        }
54
-//
55
-//
56
-//    }
57
-//}

+ 0
- 55
src/main/java/com/buecoin01/controller/WalletController.java Ver arquivo

@@ -1,55 +0,0 @@
1
-package com.buecoin01.controller;
2
-
3
-import com.buecoin01.Repositories.WalletRepository;
4
-import com.buecoin01.model.Wallet;
5
-import org.springframework.beans.factory.annotation.Autowired;
6
-import org.springframework.http.HttpStatus;
7
-import org.springframework.http.ResponseEntity;
8
-import org.springframework.web.bind.annotation.*;
9
-
10
-import java.util.Optional;
11
-
12
-@CrossOrigin(origins = {"http://localhost:8100", "http://localhost:8080"})
13
-@RestController
14
-public class WalletController {
15
-
16
-        @Autowired
17
-        private WalletRepository walletRepository;
18
-
19
-        @RequestMapping(value = "/wallet/{id}", method = RequestMethod.GET)
20
-        public ResponseEntity get(@PathVariable Long id) {
21
-            Optional <Wallet> wallet = walletRepository.findById( id );
22
-            return new ResponseEntity <>( wallet, HttpStatus.OK );
23
-
24
-        }
25
-
26
-        @RequestMapping(value = "/wallets", method = RequestMethod.GET)
27
-        public ResponseEntity <Iterable <Wallet>> getAllUsers() {
28
-            Iterable <Wallet> allWallets = walletRepository.findAll();
29
-            return new ResponseEntity <>( allWallets, HttpStatus.OK );
30
-
31
-        }
32
-
33
-        @RequestMapping(path = "/addWallet", method = RequestMethod.POST)
34
-        public ResponseEntity <?> create(@RequestBody Wallet wallet) {
35
-            walletRepository.save(wallet);
36
-            return new ResponseEntity <>( wallet, HttpStatus.CREATED );
37
-        }
38
-
39
-        @RequestMapping(path = "/deleteWallet", method = RequestMethod.DELETE)
40
-        public ResponseEntity <Wallet> deleteWallet(@RequestBody Wallet wallet) {
41
-            walletRepository.delete(wallet );
42
-            return new ResponseEntity <>( HttpStatus.OK );
43
-        }
44
-
45
-        @RequestMapping(path = "/updateWallet", method = RequestMethod.PUT)
46
-        public ResponseEntity <Wallet> updateWallet(@RequestBody Wallet wallet) {
47
-            walletRepository.save(wallet);
48
-            return new ResponseEntity <>( HttpStatus.OK );
49
-        }
50
-
51
-
52
-    }
53
-
54
-
55
-

+ 0
- 96
src/main/java/com/buecoin01/model/Block.java Ver arquivo

@@ -1,96 +0,0 @@
1
-package com.buecoin01.model;
2
-
3
-
4
-import com.buecoin01.utility.Encryption;
5
-
6
-import javax.persistence.*;
7
-import java.time.LocalDateTime;
8
-import java.util.ArrayList;
9
-
10
-
11
-@Entity
12
-public class Block {
13
-
14
-    private String minerID;
15
-
16
-    @Id
17
-    @Column(name = "id")
18
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
19
-    private long id;
20
-
21
-    @Column
22
-    private String hash;
23
-    private String previousHash;
24
-    //private String data;
25
-    public String merkleRoot;
26
-    public ArrayList<Transaction> transactions = new ArrayList<>();
27
-    private LocalDateTime timeStamp;
28
-    private int nonce;
29
-
30
-    public Block() {
31
-    }
32
-
33
-    public Block(String previousHash, LocalDateTime time, int nonce) {
34
-        this.timeStamp = time;
35
-        this.previousHash = previousHash;
36
-        this.hash = calculateHash();
37
-    }
38
-
39
-    public String getHash() {
40
-        return hash;
41
-    }
42
-
43
-    public String getPreviousHash() {
44
-        return previousHash;
45
-    }
46
-
47
-//    public String getData() {
48
-//        return data;
49
-//    }
50
-
51
-    public LocalDateTime getTimeStamp() {
52
-        return timeStamp;
53
-    }
54
-
55
-    public String calculateHash() {
56
-        return Encryption.applySha256(
57
-                  previousHash +
58
-                        timeStamp.toString() +
59
-                        Integer.toString(nonce) +
60
-                        merkleRoot);
61
-    }
62
-
63
-    public long getId() {
64
-        return id;
65
-    }
66
-
67
-    public void setId(long id) {
68
-        this.id = id;
69
-    }
70
-
71
-    public void mineBlock(int difficulty) {
72
-        String target = new String(new char[difficulty]).replace('\0', '0'); //Create a string with difficulty * "0"
73
-        while(!hash.substring( 0, difficulty).equals(target)) {
74
-            nonce ++;
75
-            hash = calculateHash();
76
-            System.out.println(hash);
77
-        }
78
-        System.out.println("Block Mined " + hash);
79
-        System.out.println("You have been awarded 1 Zip!");
80
-    }
81
-
82
-    //add transactions to this block
83
-    public boolean addTransaction(Transaction transaction){
84
-        //process transaction and check if valid, unless block is genesis block then ignore
85
-        if (transaction == null) return false;
86
-        if (previousHash != "0"){
87
-            if (!(transaction.processTransaction())){
88
-                System.out.println("Transaction failed to process. Discarded.");
89
-                return false;
90
-            }
91
-        }
92
-        transactions.add(transaction);
93
-        System.out.println("Transaction Successfully added to the Block!");
94
-        return true;
95
-    }
96
-}

+ 0
- 95
src/main/java/com/buecoin01/model/BlockchainVerification.java Ver arquivo

@@ -1,95 +0,0 @@
1
-package com.buecoin01.model;
2
-
3
-import com.buecoin01.model.Block;
4
-import com.buecoin01.utility.Encryption;
5
-import com.buecoin01.utility.TransactionOutput;
6
-import com.google.gson.GsonBuilder;
7
-
8
-import java.security.Security;
9
-import java.util.*;
10
-
11
-public class  BlockchainVerification {
12
-    private static List<Block> blockchain = new ArrayList<>();
13
-    private static Map<String, TransactionOutput> UTXOs = new HashMap<>();
14
-    public static float minimumTransaction = 0.1f;
15
-    private static int difficulty = 5;
16
-    public static Wallet walletA;
17
-    public static Wallet walletB;
18
-    //public static Transaction genesisTransaction;
19
-
20
-    public static void main(String[] args) {
21
-        //Setup Bouncey castle as a Security Provider
22
-        Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
23
-
24
-        //Create the new wallets
25
-        walletA = new Wallet();
26
-        walletB = new Wallet();
27
-
28
-        //Test public and private keys
29
-        System.out.println("Private and public keys:");
30
-        System.out.println(Encryption.getStringFromKey(walletA.getPrivateKey()));
31
-        System.out.println(Encryption.getStringFromKey(walletA.getPublicKey()));
32
-        //Create a test transaction from WalletA to walletB
33
-        Transaction transaction = new Transaction(walletA.getPublicKey(), walletB.getPublicKey(), 5, null);
34
-        transaction.generateSignature(walletA.getPrivateKey());
35
-
36
-        //Verify the signature works and verify it from the public key
37
-        System.out.println("Is signature verified");
38
-        System.out.println(transaction.verifySignature());
39
-
40
-    }
41
-
42
-    public String chainToJson() {
43
-        return new GsonBuilder()
44
-                .setPrettyPrinting()
45
-                .create()
46
-                .toJson(blockchain);
47
-    }
48
-
49
-    public static Map<String, TransactionOutput> getUTXOs() {
50
-        return UTXOs;
51
-    }
52
-
53
-    public static void setUTXOs(Map<String, TransactionOutput> UTXOs) {
54
-        BlockchainVerification.UTXOs = UTXOs;
55
-    }
56
-
57
-    public static List<Block> getBlockchain() {
58
-        return blockchain;
59
-    }
60
-
61
-    public static void abbBlockToChain(Block block) {
62
-        blockchain.add(block);
63
-    }
64
-
65
-    public static Block getBlockFromChain(int i) {
66
-        return blockchain.get(i);
67
-    }
68
-
69
-    public static int getChainSize() {
70
-        return blockchain.size();
71
-    }
72
-
73
-    public static boolean isChainValid() {
74
-        Block currentBlock;
75
-        Block previousBlock;
76
-        String hashTarget = Encryption.createTarget(difficulty);
77
-        for (int i = 1; i < blockchain.size()-1; i++) {
78
-            currentBlock = blockchain.get(i);
79
-            previousBlock = blockchain.get(i-1);
80
-            if(!currentBlock.getHash().equals(currentBlock.calculateHash())) {
81
-                System.out.println("Current Hashes aren't equal");
82
-                return false;
83
-            }
84
-            if(!previousBlock.getHash().equals(currentBlock.getPreviousHash())) {
85
-                System.out.println("Previous Hashes aren't equal");
86
-                return false;
87
-            }
88
-            if (!currentBlock.getHash().substring(0, difficulty).equals(hashTarget)) {
89
-                System.out.println("This block hasn't been mined");
90
-                return false;
91
-            }
92
-        }
93
-        return true;
94
-    }
95
-}

+ 0
- 122
src/main/java/com/buecoin01/model/Transaction.java Ver arquivo

@@ -1,122 +0,0 @@
1
-package com.buecoin01.model;
2
-
3
-import com.buecoin01.utility.Encryption;
4
-import com.buecoin01.utility.TransactionInput;
5
-import com.buecoin01.utility.TransactionOutput;
6
-
7
-import java.security.PrivateKey;
8
-import java.security.PublicKey;
9
-import java.util.ArrayList;
10
-import java.util.List;
11
-
12
-public class Transaction {
13
-    private String transactionId; //hash of the transaction
14
-    private PublicKey sender;
15
-    private PublicKey reciepient;
16
-    private String senderName;
17
-    private String reciepientName;
18
-    private float value;
19
-    private byte[] signature;
20
-
21
-    private List <TransactionInput> inputs = new ArrayList <>();
22
-    private List <TransactionOutput> outputs = new ArrayList <>();
23
-
24
-    private static int sequence = 0; //how many transactions have been generated
25
-
26
-   public Transaction (){}
27
-    public Transaction(PublicKey from, PublicKey to, float value, ArrayList <TransactionInput> inputs) {
28
-        this.sender = from;
29
-        this.reciepient = to;
30
-        this.value = value;
31
-        this.inputs = inputs;
32
-    }
33
-
34
-    //generating transactionId
35
-    private String calculateHash() {
36
-        sequence++; //increasing tho avoid identical hash codes
37
-        return Encryption.applySha256(
38
-                Encryption.getStringFromKey( sender ) +
39
-                        Encryption.getStringFromKey( reciepient ) +
40
-                        Float.toString( value ) + sequence
41
-        );
42
-    }
43
-
44
-    //Sign all the data that should not be tempered
45
-    public void generateSignature(PrivateKey privateKey) {
46
-        String data = Encryption.getStringFromKey( sender ) + Encryption.getStringFromKey( reciepient ) + Float.toString( value );
47
-        signature = Encryption.applyECDSASig( privateKey, data );
48
-    }
49
-
50
-    //Verify the data we signed hasn't been tampered with
51
-    public boolean verifySignature() {
52
-        String data = Encryption.getStringFromKey( sender ) + Encryption.getStringFromKey( reciepient ) + Float.toString( value );
53
-        return Encryption.verifyECDSASig( sender, data, signature );
54
-    }
55
-
56
-    //Check if transaction can be created
57
-    public boolean processTransaction() {
58
-        if ( !verifySignature() ) {
59
-            System.out.println( "Transaction Signature failed to verify" );
60
-            return false;
61
-        }
62
-
63
-        //gather transaction inputs to make sure they're unspent
64
-        for (TransactionInput i : inputs) {
65
-            i.setUTXO( BlockchainVerification.getUTXOs().get( i.getTransactionOutputId() ) );
66
-
67
-        }
68
-        //check if transaction is valid
69
-        if ( getInputsValue() <  BlockchainVerification.minimumTransaction ) {
70
-            System.out.println( "Transaction Input to small: " + getInputsValue() );
71
-            return false;
72
-        }
73
-        //add outputs to Unspent list
74
-        for (TransactionOutput o : outputs) {
75
-            BlockchainVerification.getUTXOs().put( o.getId(), o );
76
-        }
77
-        //remove transaction inputs from UXTO lists as spent
78
-        for (TransactionInput i : inputs) {
79
-            if ( i.getUTXO() == null ) continue; // if Transaction cant be found, skip
80
-            BlockchainVerification.getUTXOs().remove( i.getUTXO().getId() );
81
-        }
82
-        return true;
83
-    }
84
-
85
-    // returns sum of inputs(UXTOs) values
86
-    public float getInputsValue() {
87
-        float total = 0;
88
-        for (TransactionInput i : inputs) {
89
-            if ( i.getUTXO() == null ) continue; // if Transaction cant be found, skip
90
-            total = total + i.getUTXO().getValue();
91
-        }
92
-        return total;
93
-    }
94
-
95
-    public float getOutPutsValue() {
96
-        float total = 0;
97
-        for (TransactionOutput o : outputs) {
98
-            total = total + o.getValue();
99
-        }
100
-        return total;
101
-    }
102
-
103
-    // tacks in array of transactions and returns a merkle root
104
-    public static String getMerkleRoot(ArrayList <Transaction> transactions) {
105
-        int count = transactions.size();
106
-        ArrayList <String> previousTreeLayer = new ArrayList <>();
107
-        for (Transaction transaction : transactions) {
108
-            previousTreeLayer.add( transaction.transactionId );
109
-        }
110
-        ArrayList <String> treeLayer = previousTreeLayer;
111
-        while (count > 1) {
112
-            treeLayer = new ArrayList <>();
113
-            for (int i = 1; i < previousTreeLayer.size(); i++) {
114
-                treeLayer.add( Encryption.applySha256( previousTreeLayer.get( i - 1 ) ) + previousTreeLayer.get( i ) );
115
-            }
116
-            count = treeLayer.size();
117
-            previousTreeLayer = treeLayer;
118
-        }
119
-        String merkleRoot = ( treeLayer.size() == 1 ) ? treeLayer.get( 0 ) : "";
120
-        return merkleRoot;
121
-    }
122
-}

+ 0
- 136
src/main/java/com/buecoin01/model/Wallet.java Ver arquivo

@@ -1,136 +0,0 @@
1
-package com.buecoin01.model;
2
-
3
-import com.buecoin01.utility.TransactionInput;
4
-import com.buecoin01.utility.TransactionOutput;
5
-
6
-import javax.persistence.*;
7
-import java.security.*;
8
-import java.security.spec.ECGenParameterSpec;
9
-import java.util.ArrayList;
10
-import java.util.HashMap;
11
-import java.util.Map;
12
-
13
-@Entity
14
-public class Wallet {
15
-
16
-    private PrivateKey privateKey;
17
-    private PublicKey publicKey;
18
-    public HashMap<String, TransactionOutput> UTXOs = new HashMap<>(); // only UTXOs owned by this wallet
19
-    @Id
20
-    @Column(name = "id")
21
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
22
-    private long id;
23
-    @Column(name = "pubicId")
24
-    private String publicId;
25
-    @Column(name = "amount")
26
-    private long amount;
27
-    @Column(name = "name")
28
-    private String name;
29
-
30
-
31
-    public Wallet(String publicId, long amount, String name) {
32
-        this.publicId = publicId;
33
-        this.amount = amount;
34
-        this.name = name;
35
-    }
36
-
37
-    public String getName() {
38
-        return name;
39
-    }
40
-
41
-    public void setName(String name) {
42
-        this.name = name;
43
-    }
44
-
45
-    public Wallet() {
46
-        generateKeyPair();
47
-    }
48
-
49
-    public PrivateKey getPrivateKey() {
50
-        return privateKey;
51
-    }
52
-
53
-    public PublicKey getPublicKey() {
54
-        return publicKey;
55
-    }
56
-
57
-    public long getAmount() {
58
-        return amount;
59
-    }
60
-
61
-    public void setAmount(long amount) {
62
-        this.amount = amount;
63
-    }
64
-
65
-
66
-    public String getPublicId() {
67
-
68
-        return publicId;
69
-    }
70
-
71
-    public void setPublicId(String publicId) {
72
-        this.publicId = publicId;
73
-    }
74
-
75
-    public long getId() {
76
-        return id;
77
-    }
78
-
79
-    public void setId(long id) {
80
-        this.id = id;
81
-    }
82
-
83
-    public void generateKeyPair() {
84
-        try {
85
-            KeyPairGenerator keyGen = KeyPairGenerator.getInstance("ECDSA","BC");
86
-            SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
87
-            ECGenParameterSpec ecSpec = new ECGenParameterSpec("prime192v1");
88
-
89
-            keyGen.initialize(ecSpec, random);
90
-            KeyPair keyPair = keyGen.generateKeyPair();
91
-            privateKey = keyPair.getPrivate();
92
-            publicKey = keyPair.getPublic();
93
-        } catch(Exception e) {
94
-            throw new RuntimeException(e);
95
-        }
96
-    }
97
-    //returns balance and store the UTXO's owned by this wallet in this.UXTOs
98
-    public float getBalance(){
99
-        float total = 0;
100
-        for (Map.Entry<String, TransactionOutput> item: BlockchainVerification.getUTXOs().entrySet()){
101
-            TransactionOutput UTXO = item.getValue();
102
-            if (UTXO.isMine(publicKey)){ //if output belongs to me (if coins belong to me)
103
-                UTXOs.put(UTXO.getId(), UTXO);   // add it to our list of unspent transaction
104
-                total = total + UTXO.getValue();
105
-
106
-            }
107
-        }
108
-        return total;
109
-    }
110
-
111
-    //generates and returns a new transaction from this wallet
112
-
113
-
114
-    public Transaction sendFunds(PublicKey _recipient, float value){
115
-        if(getBalance() < value) {  //gather balance and check funds
116
-            System.out.println("Not Enough Funds. Transaction Discarded.");
117
-            return null;
118
-       }
119
-
120
-       // create arraylist of inputs
121
-        ArrayList<TransactionInput> inputs = new ArrayList<>();
122
-        float total = 0;
123
-        for(Map.Entry<String, TransactionOutput> item: UTXOs.entrySet()){
124
-            TransactionOutput UTXO = item.getValue();
125
-            total= total + UTXO.getValue();
126
-            inputs.add(new TransactionInput(UTXO.getId()));
127
-            if (total > value) break;
128
-        }
129
-        Transaction newTransaction = new Transaction(publicKey, _recipient,value, inputs);
130
-        newTransaction.generateSignature(privateKey);
131
-        for (TransactionInput input : inputs){
132
-            UTXOs.remove(input.getTransactionOutputId());
133
-        }
134
-        return newTransaction;
135
-    }
136
-}

+ 0
- 55
src/main/java/com/buecoin01/utility/Encryption.java Ver arquivo

@@ -1,55 +0,0 @@
1
-package com.buecoin01.utility;
2
-
3
-import com.google.common.hash.Hashing;
4
-
5
-import java.nio.charset.StandardCharsets;
6
-import java.security.Key;
7
-import java.security.PrivateKey;
8
-import java.security.PublicKey;
9
-import java.security.Signature;
10
-import java.util.Base64;
11
-
12
-public class Encryption {
13
-    public static String applySha256(String input) {
14
-        return Hashing.sha256()
15
-                .hashString(input, StandardCharsets.UTF_8)
16
-                .toString();
17
-    }
18
-
19
-    public static String createTarget(int difficulty) {
20
-        return new String(new char[difficulty]).replace('\0', '0');
21
-    }
22
-
23
-    //Apply ECDSA Signature and return result as bytes
24
-    public static byte[] applyECDSASig(PrivateKey privateKey, String input) {
25
-        Signature dsa;
26
-        byte[] realSig;
27
-        try {
28
-            dsa = Signature.getInstance("ECDSA","BC");
29
-            dsa.initSign(privateKey);
30
-            byte[] strByte = input.getBytes();
31
-            dsa.update(strByte);
32
-            realSig = dsa.sign();
33
-        } catch (Exception e) {
34
-            throw new RuntimeException(e);
35
-        }
36
-        return realSig;
37
-    }
38
-
39
-    //Verify a String Signature
40
-    public static boolean verifyECDSASig(PublicKey publicKey, String data, byte[] signature) {
41
-        try {
42
-            Signature ecdsaVerify = Signature.getInstance("ECDSA", "BC");
43
-            ecdsaVerify.initVerify(publicKey);
44
-            ecdsaVerify.update(data.getBytes());
45
-            return  ecdsaVerify.verify(signature);
46
-        } catch (Exception e) {
47
-            throw new RuntimeException(e);
48
-        }
49
-    }
50
-
51
-    //Return encoded string from a key
52
-    public static String getStringFromKey(Key key) {
53
-        return Base64.getEncoder().encodeToString(key.getEncoded());
54
-    }
55
-}

+ 0
- 34
src/main/java/com/buecoin01/utility/Mining.java Ver arquivo

@@ -1,34 +0,0 @@
1
-package com.buecoin01.utility;
2
-
3
-public class Mining {
4
-
5
-    public static void main(String[] args) {
6
-        String prevHash = "";
7
-        String block = "";
8
-        String data = "";
9
-        Mining test = new Mining();
10
-        test.mine(prevHash, block, data);
11
-    }
12
-
13
-    public String hash(String string) {
14
-        String hashed = org.apache.commons.codec.digest.DigestUtils.sha256Hex(string);
15
-        return hashed;
16
-    }
17
-
18
-    public void mine(String prevHash, String block, String data) {
19
-        int nonce = 0;
20
-        boolean mined = false;
21
-        while (mined == false) {
22
-            String newHash = hash(prevHash + block + data + Integer.toString(nonce));
23
-            System.out.println(newHash);
24
-            if (newHash.startsWith("00000")) {
25
-                mined = true;
26
-            } else {
27
-                nonce++;
28
-            }
29
-        }
30
-        System.out.println(nonce);
31
-
32
-    }
33
-}
34
-

+ 0
- 30
src/main/java/com/buecoin01/utility/TransactionInput.java Ver arquivo

@@ -1,30 +0,0 @@
1
-package com.buecoin01.utility;
2
-
3
-
4
-//This class will be used to reference TransactionOutputs that have not yet been spent.
5
-//The transactionOutputId will be used to find the relevant TransactionOutput, allowing miners to check your ownership.
6
-public class TransactionInput {
7
-    private String transactionOutputId;
8
-   // private TransactionOutput UTXO; // UTXO means Unspent Transaction Outputs
9
-   private TransactionOutput UTXO;
10
-
11
-    public TransactionInput(String transactionOutputId) {
12
-        this.transactionOutputId = transactionOutputId;
13
-    }
14
-
15
-    public String getTransactionOutputId() {
16
-        return transactionOutputId;
17
-    }
18
-
19
-    public void setTransactionOutputId(String transactionOutputId) {
20
-        this.transactionOutputId = transactionOutputId;
21
-    }
22
-
23
-    public TransactionOutput getUTXO() {
24
-        return UTXO;
25
-    }
26
-
27
-    public void setUTXO(TransactionOutput UTXO) {
28
-        this.UTXO = UTXO;
29
-    }
30
-}

+ 0
- 54
src/main/java/com/buecoin01/utility/TransactionOutput.java Ver arquivo

@@ -1,54 +0,0 @@
1
-package com.buecoin01.utility;
2
-
3
-import java.security.PublicKey;
4
-
5
-public class TransactionOutput {
6
-    private String id;
7
-    private PublicKey reciepient; //new owner of the coins
8
-    private float value; //the amount of coins they own
9
-    private String parentTransactionId;
10
-
11
-    public TransactionOutput(PublicKey reciepient, float value, String parentTransactionId) {
12
-        this.reciepient = reciepient;
13
-        this.value = value;
14
-        this.parentTransactionId = parentTransactionId;
15
-        this.id = Encryption.applySha256(Encryption.getStringFromKey(reciepient)+Float.toString(value)+parentTransactionId);
16
-    }
17
-
18
-    public String getId() {
19
-        return id;
20
-    }
21
-
22
-    public void setId(String id) {
23
-        this.id = id;
24
-    }
25
-
26
-    public PublicKey getReciepient() {
27
-        return reciepient;
28
-    }
29
-
30
-    public void setReciepient(PublicKey reciepient) {
31
-        this.reciepient = reciepient;
32
-    }
33
-
34
-    public float getValue() {
35
-        return value;
36
-    }
37
-
38
-    public void setValue(float value) {
39
-        this.value = value;
40
-    }
41
-
42
-    public String getParentTransactionId() {
43
-        return parentTransactionId;
44
-    }
45
-
46
-    public void setParentTransactionId(String parentTransactionId) {
47
-        this.parentTransactionId = parentTransactionId;
48
-    }
49
-
50
-    //Check if coin belongs to publicKey
51
-    public boolean isMine(PublicKey publicKey) {
52
-        return publicKey == reciepient;
53
-    }
54
-}

+ 0
- 11
src/main/resources/application.properties Ver arquivo

@@ -1,11 +0,0 @@
1
-spring.jpa.hibernate.ddl-auto=update
2
-spring.datasource.url=jdbc:mysql://167.99.50.8:3306/bitcoin?useSSL=false
3
-spring.datasource.username=root
4
-spring.datasource.password=098poilkj
5
-spring.datasource.driver-class-name=com.mysql.jdbc.Driver
6
-spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
7
-spring.datasource.testWhileIdle = true
8
-spring.datasource.validationQuery = SELECT 1
9
-
10
-
11
-logging.file= ./application.log

+ 0
- 16
src/test/java/com/buecoin01/ApplicationTests.java Ver arquivo

@@ -1,16 +0,0 @@
1
-package com.buecoin01;
2
-
3
-import org.junit.Test;
4
-import org.junit.runner.RunWith;
5
-import org.springframework.boot.test.context.SpringBootTest;
6
-import org.springframework.test.context.junit4.SpringRunner;
7
-
8
-@RunWith(SpringRunner.class)
9
-@SpringBootTest
10
-public class ApplicationTests {
11
-
12
-	@Test
13
-	public void contextLoads() {
14
-	}
15
-
16
-}

+ 0
- 11
target/classes/application.properties Ver arquivo

@@ -1,11 +0,0 @@
1
-spring.jpa.hibernate.ddl-auto=update
2
-spring.datasource.url=jdbc:mysql://167.99.50.8:3306/bitcoin?useSSL=false
3
-spring.datasource.username=root
4
-spring.datasource.password=098poilkj
5
-spring.datasource.driver-class-name=com.mysql.jdbc.Driver
6
-spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
7
-spring.datasource.testWhileIdle = true
8
-spring.datasource.validationQuery = SELECT 1
9
-
10
-
11
-logging.file= ./application.log

BIN
target/classes/com/buecoin01/Application.class Ver arquivo


BIN
target/classes/com/buecoin01/ProcessLoader.class Ver arquivo


BIN
target/classes/com/buecoin01/Repositories/BlockRepository.class Ver arquivo


BIN
target/classes/com/buecoin01/Repositories/TransactionRepository.class Ver arquivo


BIN
target/classes/com/buecoin01/Repositories/WalletRepository.class Ver arquivo


BIN
target/classes/com/buecoin01/controller/BlockController$UserController.class Ver arquivo


BIN
target/classes/com/buecoin01/controller/BlockController.class Ver arquivo


BIN
target/classes/com/buecoin01/controller/WalletController.class Ver arquivo


BIN
target/classes/com/buecoin01/model/Block.class Ver arquivo


BIN
target/classes/com/buecoin01/model/Blockchain.class Ver arquivo


BIN
target/classes/com/buecoin01/model/BlockchainVerification.class Ver arquivo


BIN
target/classes/com/buecoin01/model/Transaction.class Ver arquivo


BIN
target/classes/com/buecoin01/model/Wallet.class Ver arquivo


BIN
target/classes/com/buecoin01/utility/Encryption.class Ver arquivo


BIN
target/classes/com/buecoin01/utility/Mining.class Ver arquivo


BIN
target/classes/com/buecoin01/utility/TransactionInput.class Ver arquivo


BIN
target/classes/com/buecoin01/utility/TransactionOutput.class Ver arquivo


BIN
target/test-classes/com/buecoin01/ApplicationTests.class Ver arquivo