Browse Source

started ethereum smart contract for darkID

master
arnaucode 7 years ago
parent
commit
9770437d3f
4 changed files with 39 additions and 12 deletions
  1. +4
    -4
      clientApp/GUI/css/bootstrapMaterial-dark-overwrite.css
  2. +7
    -3
      clientApp/GUI/views/navbar.html
  3. +1
    -5
      clientApp/README.md
  4. +27
    -0
      eth/darkID_contract.sol

+ 4
- 4
clientApp/GUI/css/bootstrapMaterial-dark-overwrite.css

@ -1,7 +1,7 @@
/*@font-face {
@font-face {
font-family: Elianto;
src: url('../fonts/Elianto/Elianto-Regular.otf');
}*/
src: url('../fonts/Elianto/Elianto.otf');
}
body {
/*background: #15191e!important;*/
@ -24,7 +24,7 @@ h1, h2, h3, h4, h5, h6 {
font-family: 'Overpass Mono', monospace!important;
}
.navbar-brand, .card-title {
.navbar-brand, .card-title, .navbar-nav {
font-family: 'Overpass Mono', monospace!important;
}
.btn {

+ 7
- 3
clientApp/GUI/views/navbar.html

@ -10,11 +10,15 @@
<a class="navbar-brand" href="#!/" title="darkID">
<img src="img/darkID-logo-white.png" style="width:30px;height:30px;display:inline;" alt=""> darkID
</a>
<a class="navbar-brand" href="#!/stats" title="Stats">
Stats
</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<li>
<a href="#!/stats" title="Stats">
<i title="Server" class="fa fa-bar-chart fa-1x"></i> Stats
</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a title="serverIDsigner">

+ 1
- 5
clientApp/README.md

@ -1,5 +1 @@
# serverIDsign
- The server where the user creates a non anonymous account
- Also is the server that blind signs the Anonymous ID of the users
- Have the webapp (frontend) to interact through a GUI interface
# clientApp

+ 27
- 0
eth/darkID_contract.sol

@ -0,0 +1,27 @@
pragma solidity 0.4;
contract DarkID {
struct IdStruct {
string pubK;
string date;
string hashed;
string unblindedSig;
string serverVerifier;
string signerID;
}
IdStruct ID;
function DarkID(string _pubK, string _hashed, string _unblindedSig, string _serverVerifier, string _signerID) public {
ID = IdStruct(_pubK, "this will be the date", _hashed, _unblindedSig, _serverVerifier, _signerID);
}
function getDarkID() public constant returns(string, string, string, string, string, string) {
return (ID.pubK, ID.date, ID.hashed, ID.unblindedSig, ID.serverVerifier, ID.signerID);
}
}

Loading…
Cancel
Save