Skip to content
DigiID implementation in PHP
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 1 commit behind digicontributer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
phpecc @ 366c0d1
.gitmodules
DAO.php
DigiID.php
README.md
ajax.php
callback.php
config.php
index.php
struct.sql
user.php

README.md

Digi-ID implementation in PHP

PHP implementation of Digi-ID.

Digi-ID Open Authentication Protocol

Pure DigiByte sites and applications shouldn’t have to rely on artificial identification methods such as usernames and passwords. Digi-ID is an open authentication protocol allowing simple and secure authentication using public-key cryptography.

Classical password authentication is an insecure process that could be solved with public key cryptography. The problem however is that it theoretically offloads a lot of complexity and responsibility on the user. Managing private keys securely is complex. However this complexity is already addressed in the DigiByte ecosystem. So doing public key authentication is practically a free lunch to DigiByte users.

The protocol is based on the following BIP draft:

https://github.com/bitid/bitid/blob/master/BIP_draft.md

Demo

https://orlib.org/digiid/ (Has a custom interface on top)

Installation

Notes

  • Pure PHP implementation, no need to run a DigiByte node

  • GMP PHP extension is required (most shared hosting providers don't have this, another reason to implement digibyted support)

  • isMessageSignatureValidSafe is the same function as isMessageSignatureValid but the later with throw different exceptions on fail, while the former only return true/false (only for lazy programmers that don't handle exceptions)

  • By default, it will only allow 1 user by IP to try login at the same time (once a user is logged, another user could start the login process), this example could be modify to allow several (no need to modify Digi-ID)

You can’t perform that action at this time.