Skip to content

Instantly share code, notes, and snippets.

Avatar

Dirk Jäckel biafra23

View GitHub Profile
View Element_Ecosystem_ZK_Claim_Gist.md

0x255fc87365096bfcc696e8e9ecbe737e31e5be3ac338d2fdfa47a20cf719f33e

View Verifying my Peepeth
Verifying my identity on Peepeth.com 0xe86935943315293154c7ad63296b4e1adac76364
View testnet-rinkeby-nexus5
0x4b483f17dbfc728f73b768f763cd4176247f265a
View MessageDigest
private byte[] getDigestExtra(String toBeSigned, byte[] extra) throws NoSuchProviderException {
MessageDigest md = null;
try {
md = MessageDigest.getInstance("SHA1", "BC");
for (byte b : toBeSigned.getBytes()) {
System.out.println("b: " + Hex.toHexString(new byte[]{b}));
md.update(b);
}
for (byte b : extra) {
System.out.println("b: " + Hex.toHexString(new byte[]{b}));
View Create EC Signature
Signature signer = Signature.getInstance(Signature.ALG_ECDSA_SHA, false);
signer.init(cardPrivateKey, Signature.MODE_SIGN);
byte[] sigBuffer = new byte[100];
short size = signer.sign(buffer, offset, length, sigBuffer, (short) 0);
byte[] result = new byte[size];
Util.arrayCopyNonAtomic(sigBuffer, (short) 0, result, (short) 0, size);
return result;
View keybase.md

Keybase proof

I hereby claim:

  • I am biafra23 on github.
  • I am dirkjaeckel (https://keybase.io/dirkjaeckel) on keybase.
  • I have a public key whose fingerprint is 1C66 76AF 8572 DDE3 623B 7880 A258 970F A53E 4591

To claim this, I am signing this object: