Skip to content

Commit

Permalink
Merge branch 'testing' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
RenzoDD committed Mar 28, 2022
2 parents 390e5c7 + 7c372e1 commit 0c30e7d
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
**/node_modules/*
test*
out/
dist/
*.dgb
*.dgb
package-lock.json
79 changes: 79 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Digi-ID Testing Sheet

## For Windows

Download the instaler `digiid-win32.exe` and execute it on your computer. If a warning pops out click on continue.

## For Linux

Download the package acording your distribution `digiid-desktop-0.5.0.x86_64.rpm` or `digiid-desktop_0.5.0_amd64.deb` and install it using:

```
sudo apt install {package-name}
```

For `Digi-ID-0.5.0.AppImage` convert it in exacutable with:
```
chmod +x Digi-ID-*.AppImage
```

If you have a Ledger Nano X or S run this command to enable the usb access
```
wget -q -O - https://raw.githubusercontent.com/LedgerHQ/udev-rules/master/add_udev_rules.sh | sudo bash
```

## Tests

Infers the steps to follow for each of the tasks according to the information displayed in the application

1. Create a new wallet generating a 12-word mnemonic phrase and write it here.
- Mnemonic phrase:

2. Login into `digiassetx.com` and write your user id (dax1...).
- UserID:

3. Login into `digiassets.info` and write your login address here.
- Address:

4. Restart the wallet to use a diferent mnemonic phrase

5. Restore a wallet and enter this mnemonic phrase `ask ask ask`

6. Login into `digiassetx.com` and write your user id (dax1...).
- UserID:

7. Login into `digiassets.info` and write your login address here.
- Address:

If you have a Ledger hardware wallet continue (Your private keys will not be exposed to the internet).

- Connect your Ledger Nano X or S via USB and install the DigiByte app from Ledger Live.
- Open the DigiByte App in your device and start the Digi-ID application on your computer.
- If needed, restart your Digi-ID app and create a hardware wallet instance.

Infers the steps to follow for each of the tasks according to the information displayed in the application

9. Try to login into `digiassets.info`. (If any error occurs report it at the end of the document)

IT IS NOT MANDATORY TO CONTINUE THE TEST AFTER THIS POINT.

CONTINUE ONLY IF YOU HAVE A BACKUP OF YOUR ORIGINAL MNEMONIC PHRASE

PLEASE CONTINUE ONLY IF YOU KNOW HOW TO MANIPULATE YOUR LEDGER DEVICE OR YOU WILL LOSE YOUR FUNDS

- Restart your hardware wallet and restore it using the mnemonic phrase generate on the step 1.
- Install the DigiByte App and open it in your device

10. Try to Login into `digiassetx.com` and write your user id (dax1...).
- UserID:

11. Try to login into `digiassets.info` and write your login address.
- Address:

## Reports

-

-

-
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
"icon": "src/views/img/icon.ico"
}
}
}
}
17 changes: 4 additions & 13 deletions src/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ <h1 class="text-center">Set password</h1>
Digi-ID authentication protocol
</div>
<div class="input-group mb-2">
<input type="text" class="form-control" placeholder="Digi-ID URI" id="txtURI">
<input type="text" class="form-control" placeholder="digiid://digibyte.com/?x=ABC123" id="txtURI">
<button class="btn btn-bg" id="btnCheckSign" data-bs-toggle="tooltip" data-bs-placement="left" title="Sign">
<i class="bi bi-box-arrow-in-right"></i>
</button>
Expand Down Expand Up @@ -293,22 +293,13 @@ <h3>Sponsors:</h3>
<div class="ps-3">
<div>JohnnyLaw.DGB</div>
<div>The Candle Maker</div>
<div>User 3</div>
<div>User 4</div>
<div>User 5</div>
<div>User 6</div>
<div>User 7</div>
<div>SNOOZE</div>
</div>
</div>
<div class="col-6">
<h3>Testers:</h3>
<div>User 1</div>
<div>User 2</div>
<div>User 3</div>
<div>User 4</div>
<div>User 5</div>
<div>User 6</div>
<div>User 7</div>
<div>joeymarine</div>
<div>Jason Henson</div>
<div class="ps-3">
<div></div>
</div>
Expand Down
7 changes: 5 additions & 2 deletions src/views/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ btnCheckSign.addEventListener('click', () => {
var digiid = null;

try { digiid = new DigiID(txtURI.value) }
catch { }
catch {
lblStatus.innerHTML = "<i class='bi bi-x-octagon-fill'></i> Invalid Digi-ID URI";
setTimeout(() => { lblStatus.innerHTML = "Digi-ID authentication protocol"; }, 5000);
}

if (digiid) {
lblCallback.innerHTML = digiid.callback;
Expand All @@ -208,7 +211,7 @@ btnSettings.addEventListener('click', () => {
FormOpen(frmSettings);
});
btnAbout.addEventListener('click', () => {
//FormOpen(frmAbout);
FormOpen(frmAbout);
});


Expand Down

0 comments on commit 0c30e7d

Please sign in to comment.