Skip to content

Instantly share code, notes, and snippets.

View RaghavSood's full-sized avatar

Raghav Sood RaghavSood

View GitHub Profile
---
openapi: 3.1.0
info:
title: Coinhako Public API
version: v1
description: |
### How to get an API key
Our API is currently in beta. If you would like to get an API key, please contact us at [hello@coinhako.com](mailto:hello@coinhako.com)
### Authentication
package grintx
type Transaction struct {
NumParticipants int `json:"num_participants"`
ID string `json:"id"`
Tx TxData `json:"tx"`
Amount int `json:"amount"`
Fee int `json:"fee"`
Height int `json:"height"`
LockHeight int `json:"lock_height"`
( function() {
var addid = {
command : function ( args, cb ) {
var id = Number( args.parse()[0] );
IO.xhr({
url : '/rooms/setuseraccess/15',
data : {
userAccess : 'read-write',
aclUserId : id,
"rpcpassword": "eylwTNp8r_WbQXDHz1Qb6A==",
"rpcuser": "user",
"server": "electrum-ltc.bysh.me:50002:s",
CREATE TABLE "outpoints" ( "id" serial, "tx" text, "vout" int, "spentby" text, "spentindex" int, "value" bigint, "script" text, PRIMARY KEY ("id"), FOREIGN KEY ("tx") REFERENCES "public"."transactions"("txid") ON DELETE CASCADE ON UPDATE CASCADE, FOREIGN KEY ("spentby") REFERENCES "public"."transactions"("txid") ON DELETE CASCADE ON UPDATE CASCADE, FOREIGN KEY ("script") REFERENCES "public"."addresses"("script") ON DELETE CASCADE ON UPDATE CASCADE); CREATE INDEX "outpoints_tx_vout_idx" ON "public"."outpoints"("tx","vout");
#include <stdio.h>
//assumes little endian
void printBits(size_t const size, void const * const ptr)
{
unsigned char *b = (unsigned char*) ptr;
unsigned char byte;
int i, j;
for (i=size-1;i>=0;i--)

Keybase proof

I hereby claim:

  • I am RaghavSood on github.
  • I am raghavsood (https://keybase.io/raghavsood) on keybase.
  • I have a public key whose fingerprint is 2284 E14F CAFC 99AD 0629 9EE0 9EC1 B041 85E6 58B8

To claim this, I am signing this object:

package main
import (
"crypto/sha256"
"encoding/hex"
"fmt"
"golang.org/x/crypto/ripemd160"
)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.yourapp"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
android {
compileSdkVersion 25
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.yourapp"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName project.APP_VERSION
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"