Skip to content

Instantly share code, notes, and snippets.

View riccjohn's full-sized avatar
☠️

John Riccardi riccjohn

☠️
View GitHub Profile
const sha256 = require('sha256');
class Block {
constructor(index, timestamp, data, prevHash) {
this.index = index;
this.timestamp = timestamp;
this.data = data;
this.prevHash = prevHash;
this.thisHash = sha256(
this.index + this.timestamp + this.data + this.prevHash
@riccjohn
riccjohn / openpgp.txt
Created November 20, 2017 02:29
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f5d2b6df853bb01668e1cc31a8a738dc31f2b9bb]
@riccjohn
riccjohn / openpgp.txt
Created November 20, 2017 02:29
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f5d2b6df853bb01668e1cc31a8a738dc31f2b9bb]
@riccjohn
riccjohn / openpgp.txt
Created November 20, 2017 02:29
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f5d2b6df853bb01668e1cc31a8a738dc31f2b9bb]
@riccjohn
riccjohn / openpgp.txt
Created November 20, 2017 02:29
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f5d2b6df853bb01668e1cc31a8a738dc31f2b9bb]
@riccjohn
riccjohn / openpgp.txt
Created November 20, 2017 02:29
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:f5d2b6df853bb01668e1cc31a8a738dc31f2b9bb]