HelloZeroNet / ZeroID

ZeroNet authentication provider
http://127.0.0.1:43110/zeroid.bit
GNU General Public License v2.0
42 stars 22 forks source link

Is it possible to add other fields to user certificate? #18

Open MuxZeroNet opened 7 years ago

MuxZeroNet commented 7 years ago

Signature format:

"python zeronet.py --debug cryptSign %s#bitmsg/%s %s 2>&1" % (auth_address, user_name, config.site_privatekey)

The first %s is obviously the user's public key. After that it is the portal type. The second %s is the user name.

Certificate format:

data["users"][user_name] = "bitmsg,%s,%s" % (auth_address, sign)

The first item is certainly the portal type. The second item is the user's public key. The third item is the signature. The signature seems to be a signed message digest, so the whole message must be reconstructed in order to verify a signature (Is it Schnorr-SHA256?)

One possible way of adding additional fields to the certificate (i.e. registration time) is to append these information to the portal type or the user name, but I don't know how ZeroNet interprets the certificate.