diff options
-rw-r--r-- | site/public/gradecoin.pub | 9 | ||||
-rw-r--r-- | site/public/misc-docs/index.html | 155 | ||||
-rw-r--r-- | site/public/site.css | 11 |
3 files changed, 175 insertions, 0 deletions
diff --git a/site/public/gradecoin.pub b/site/public/gradecoin.pub new file mode 100644 index 0000000..ffe2f12 --- /dev/null +++ b/site/public/gradecoin.pub | |||
@@ -0,0 +1,9 @@ | |||
1 | -----BEGIN PUBLIC KEY----- | ||
2 | MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyGuqiCPGcguy+Y9TH7Bl | ||
3 | 7XlEsalyqb9bYlzpbV0dnqZ3lPkEPkuOhkN+GcuiV6iXtSwyh7nB+xTRXKJFRUBO | ||
4 | /jbN8jfcxVwBu0JxjF3v1YRBxbOHhz2A295mbKD9xHQCKxkfYBNkUXxj8gd+GaDv | ||
5 | QiSW5NdrX/lEkvqfGtdEX1m2+HdcG0+3YW24Xg0znhCwLr+sorLuJaDy9Xa0Uo+D | ||
6 | PWGC5s001U/BxkCIWJ+eJQCb7Bv+9vXb8BGRK/ecMb/fb6h5O+8fgB64RCHMgcc2 | ||
7 | v+Q/dPt8kHX1OJdMuYUrUJGACppMQY3W6e1HdlRIBcZKL2LMZ2CrIB/2D5LiJhPT | ||
8 | hQIDAQAB | ||
9 | -----END PUBLIC KEY----- | ||
diff --git a/site/public/misc-docs/index.html b/site/public/misc-docs/index.html new file mode 100644 index 0000000..dfd38e2 --- /dev/null +++ b/site/public/misc-docs/index.html | |||
@@ -0,0 +1,155 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | |||
4 | <head> | ||
5 | <meta charset="UTF-8"> | ||
6 | <title>Misc | Gradecoin </title> | ||
7 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
8 | <style> | ||
9 | :root { | ||
10 | /* Primary theme color */ | ||
11 | --primary-color: #F8D12F; | ||
12 | /* Primary theme text color */ | ||
13 | --primary-text-color: #1E2329; | ||
14 | /* Primary theme link color */ | ||
15 | --primary-link-color: #2F57F7; | ||
16 | /* Secondary color: the background body color */ | ||
17 | --secondary-color: #FAFAFA; | ||
18 | --secondary-text-color: #303030; | ||
19 | /* Highlight text color of table of content */ | ||
20 | --toc-highlight-text-color: #d46e13; | ||
21 | } | ||
22 | </style> | ||
23 | |||
24 | <link href="https://fonts.googleapis.com/css?family=Alfa+Slab+One&display=swap" rel="stylesheet"> | ||
25 | <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600&display=swap" rel="stylesheet"> | ||
26 | <link rel="stylesheet" href="/normalize.css"> | ||
27 | <link rel="stylesheet" href="https://gradecoin.xyz/juice.css"> | ||
28 | |||
29 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" /> | ||
30 | <link rel="stylesheet" href="/site.css" /> | ||
31 | |||
32 | </head> | ||
33 | |||
34 | <body> | ||
35 | |||
36 | <header class="box-shadow"> | ||
37 | |||
38 | |||
39 | <a href="https://gradecoin.xyz/"> | ||
40 | <div class="logo"> | ||
41 | <img src="https://gradecoin.xyz/gradecoin.png" alt="logo"> | ||
42 | Gradecoin | ||
43 | </div> | ||
44 | </a> | ||
45 | |||
46 | <nav> | ||
47 | |||
48 | <a class="nav-item subtitle-text" href="https://gradecoin.xyz/register-docs/">Register</a> | ||
49 | |||
50 | <a class="nav-item subtitle-text" href="https://gradecoin.xyz/jwt/">JWT</a> | ||
51 | |||
52 | <a class="nav-item subtitle-text" href="https://gradecoin.xyz/transaction-docs/">Transactions</a> | ||
53 | |||
54 | <a class="nav-item subtitle-text" href="https://gradecoin.xyz/block-docs/">Blocks</a> | ||
55 | |||
56 | <a class="nav-item subtitle-text" href="https://gradecoin.xyz/misc-docs/">Misc</a> | ||
57 | |||
58 | |||
59 | |||
60 | <a class="nav-item subtitle-text" href="https://github.com/zhuowei/nft_ptr#why">why?</a> | ||
61 | |||
62 | |||
63 | </nav> | ||
64 | |||
65 | </header> | ||
66 | |||
67 | |||
68 | <main> | ||
69 | |||
70 | |||
71 | |||
72 | |||
73 | |||
74 | <div class="toc"> | ||
75 | <div class="toc-sticky"> | ||
76 | |||
77 | <div class="toc-item"> | ||
78 | <a class="subtext" href="https://gradecoin.xyz/misc-docs/#fingerprint">Fingerprint</a> | ||
79 | </div> | ||
80 | |||
81 | |||
82 | <div class="toc-item-child"> | ||
83 | <a class="subtext" href="https://gradecoin.xyz/misc-docs/#definition"><small>- Definition</small></a> | ||
84 | </div> | ||
85 | |||
86 | <div class="toc-item-child"> | ||
87 | <a class="subtext" href="https://gradecoin.xyz/misc-docs/#fingerprint-generation"><small>- Fingerprint Generation</small></a> | ||
88 | </div> | ||
89 | |||
90 | |||
91 | |||
92 | </div> | ||
93 | </div> | ||
94 | |||
95 | |||
96 | |||
97 | <div class="content text"> | ||
98 | |||
99 | <div class="heading-text">Documentation about everything else</div> | ||
100 | <p>We thought it might be good to explain some concepts you might have questions about.</p> | ||
101 | <h1 id="fingerprint">Fingerprint</h1> | ||
102 | <h2 id="definition">Definition</h2> | ||
103 | <p>A fingerprint is a 256 bit 64 character hexadecimal user identifier for users. Fingerprints are used in defining users in <a href="https://gradecoin.xyz/transaction-docs/">transactions</a> and <a href="https://gradecoin.xyz/block-docs/">blocks</a>.</p> | ||
104 | <h2 id="fingerprint-generation">Fingerprint Generation</h2> | ||
105 | <p>A user's finger print is generated via applying SHA256 sum of the user's public RSA key.</p> | ||
106 | |||
107 | |||
108 | </div> | ||
109 | |||
110 | |||
111 | |||
112 | </main> | ||
113 | |||
114 | |||
115 | <footer> | ||
116 | Built For ⁂ CENG489 ⁂ Introduction to Computer Security | ||
117 | </footer> | ||
118 | |||
119 | </body> | ||
120 | <script> | ||
121 | function highlightNav(heading) { | ||
122 | let pathname = location.pathname; | ||
123 | document.querySelectorAll(".toc a").forEach((item) => { | ||
124 | item.classList.remove("active"); | ||
125 | }); | ||
126 | document.querySelector(".toc a[href$='" + pathname + "#" + heading + "']").classList.add("active"); | ||
127 | } | ||
128 | |||
129 | let currentHeading = ""; | ||
130 | window.onscroll = function () { | ||
131 | let h = document.querySelectorAll("h1,h2,h3,h4,h5,h6"); | ||
132 | let elementArr = []; | ||
133 | |||
134 | h.forEach(item => { | ||
135 | if (item.id !== "") { | ||
136 | elementArr[item.id] = item.getBoundingClientRect().top; | ||
137 | } | ||
138 | }); | ||
139 | elementArr.sort(); | ||
140 | for (let key in elementArr) { | ||
141 | if (!elementArr.hasOwnProperty(key)) { | ||
142 | continue; | ||
143 | } | ||
144 | if (elementArr[key] > 0 && elementArr[key] < 300) { | ||
145 | if (currentHeading !== key) { | ||
146 | highlightNav(key); | ||
147 | currentHeading = key; | ||
148 | } | ||
149 | break; | ||
150 | } | ||
151 | } | ||
152 | } | ||
153 | </script> | ||
154 | |||
155 | </html> | ||
diff --git a/site/public/site.css b/site/public/site.css new file mode 100644 index 0000000..f296cc4 --- /dev/null +++ b/site/public/site.css | |||
@@ -0,0 +1,11 @@ | |||
1 | |||
2 | .content blockquote { | ||
3 | border-left: #689d6a 8px solid; | ||
4 | |||
5 | } | ||
6 | .content blockquote.tidbit { | ||
7 | border-left: #928f74 8px solid; | ||
8 | font-size: 12px; | ||
9 | color: #282828; | ||
10 | } | ||
11 | |||