Skip to content

Instantly share code, notes, and snippets.

View Varunram's full-sized avatar

Varunram Ganesh Varunram

View GitHub Profile

Keybase proof

I hereby claim:

  • I am varunram on github.
  • I am varunram (https://keybase.io/varunram) on keybase.
  • I have a public key ASBP-cjIMEXMEtijawTvckY-7FGmK7-egXzzLRcn9OgDjQo

To claim this, I am signing this object:

package main
import (
"encoding/hex"
"log"
// "github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
)
@Varunram
Varunram / poc.go
Last active July 11, 2019 00:07
Golang segfault bug
package main
import (
"encoding/json"
"github.com/boltdb/bolt"
"github.com/pkg/errors"
"log"
"strconv"
)
@Varunram
Varunram / npmdeps.txt
Created June 17, 2019 14:58
Analysis fo all the npm dependencies imported by Hexa
2013/1.0.3 "console-browserify": "^1.1.0",
2015/0.2.7 "backbone-events-standalone": "^0.2.7",https://github.com/n1k0/backbone-events-standalone ARCHIVED
2015/1.0.0 "constants-browserify": "^1.0.0", https://github.com/juliangruber/constants-browserify
2015/1.0.1 "dns.js": "^1.0.1", https://github.com/indutny/dns.js
2015/1.10 "secrets.js-grempe": "^1.1.0", https://github.com/grempe/secrets.js/releases
2015/0.11.0 "url": "^0.10.3", https://github.com/defunctzombie/node-url/releases
2016/2.0.3 "inherits": "^2.0.3", https://github.com/isaacs/inherits
2016 "react-native-http": "tradle/react-native-http#834492d", https://github.com/iktw/react-native-http
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@Varunram
Varunram / blockstack
Created April 27, 2019 08:22
blockstack verification
Verifying my Blockstack ID is secured with the address 14W92fySsCqZYk84gRQu17HtKWdj11i8mk https://explorer.blockstack.org/address/14W92fySsCqZYk84gRQu17HtKWdj11i8mk
@Varunram
Varunram / dlc3point.txt
Created April 12, 2018 16:38 — forked from adiabat/dlc3point.txt
DLC oracle publicly computable R-points
The sigantures in DLC need a pre-committed R point as well as pubkey point.
Oracle pubkey = A, R
value message = v
signature = s
(generator point G)
Contract participants compute oracle point P
P = sG = R - h(v, R)A
@Varunram
Varunram / client.go
Created February 7, 2018 11:43 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
@Varunram
Varunram / makecert.sh
Created February 7, 2018 11:43 — forked from jim3ma/makecert.sh
Golang TLS server and client
#!/bin/bash
# call this script with an email address (valid or not).
# like:
# ./makecert.sh joe@random.com
mkdir certs
rm certs/*
echo "make server cert"
openssl req -new -nodes -x509 -out certs/server.pem -keyout certs/server.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1"
echo "make client cert"
openssl req -new -nodes -x509 -out certs/client.pem -keyout certs/client.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1"
@Varunram
Varunram / COMPAT.png
Created November 30, 2017 11:56 — forked from ajtowns/COMPAT.png
github conflicting PRs
COMPAT.png