arnaucube
arnaucube/darkID-prototypePublic Self-hosted repository
started ethereum smart contract for darkID
arnaucode arnaucode@gmail.com
Wed, 10 Jan 2018 01:07:29 +0100
commit

9770437d3f6d534a97c93043712ea60f638a962b

parent

e54d94c748e1f0792e794e9f0f496db8639b9500

M clientApp/GUI/css/bootstrapMaterial-dark-overwrite.css → 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 @@ /*font-family: 'Raleway', sans-serif!important;*/

font-family: 'Overpass Mono', monospace!important; } -.navbar-brand, .card-title { +.navbar-brand, .card-title, .navbar-nav { font-family: 'Overpass Mono', monospace!important; } .btn {
M clientApp/GUI/views/navbar.html → clientApp/GUI/views/navbar.html

@@ -10,11 +10,15 @@ </button>

<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">
M clientApp/README.md → clientApp/README.md

@@ -1,5 +1,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
A 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); + } +}