Skip to content

Instantly share code, notes, and snippets.

@chatu
chatu / README.MD
Last active March 10, 2019 17:13
BCH Money Button

BCH Money Button

Highlights Bitcoin Cash addresses in any website and allows you to send BCH in a single click from the internal Bitcoin Cash Wallet.

No signups or logins required.

Its your Bitcoin Cash in your secure Chrome browser, its your keys, its your Bitcoin Cash to send!

When you first install BCH Money Button, go to "refill wallet" to send some BCH to your wallet - after that, you can visit any website that has a bitcoin cash address and be able to send BCH with one click.

@chatu
chatu / certToPEM.js
Created September 10, 2018 18:50
Convert JWKS cert to PEM
/**
* If you wanted to use `n` and `e` from JWKS check out node-jwks-rsa's implementation:
* https://github.com/auth0/node-jwks-rsa/blob/master/src/utils.js#L35-L57
*/
export function certToPEM(cert) {
cert = cert.match(/.{1,64}/g).join('\n');
cert = `-----BEGIN CERTIFICATE-----\n${cert}\n-----END CERTIFICATE-----\n`;
return cert;
}

Keybase proof

I hereby claim:

  • I am chatu on github.
  • I am chatu (https://keybase.io/chatu) on keybase.
  • I have a public key whose fingerprint is 7D73 3BEE 4BF4 3B4E 02E3 4A44 0014 E92E 5602 547F

To claim this, I am signing this object: