started ethereum smart contract for darkID
arnaucode arnaucode@gmail.com
Wed, 10 Jan 2018 01:07:29 +0100
4 files changed,
39 insertions(+),
12 deletions(-)
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/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); + } +}