I hereby claim:
- I am nnkken on github.
- I am nnkken (https://keybase.io/nnkken) on keybase.
- I have a public key ASA7JfqneYUkGEU9I9zgQOdkHTVWDuGTX6dh3koqYD0vwwo
To claim this, I am signing this object:
const tree = { | |
value: 'A', | |
left: { | |
value: 'B', | |
left: { | |
value: 'D', | |
left: { | |
value: 'H', | |
}, | |
right: { |
const axios = require('axios'); | |
const BigNumber = require('bignumber.js'); | |
const lcdEndpoint = 'http://localhost:1317'; | |
const rpcEndpoint = 'http://localhost:26657'; | |
const nilVote = 'nil-Vote'; | |
const lcd = axios.create({ | |
baseURL: lcdEndpoint, |
{ | |
"app_hash": "", | |
"app_state": { | |
"auth": { | |
"accounts": [ | |
{ | |
"@type": "/cosmos.auth.v1beta1.BaseAccount", | |
"account_number": "0", | |
"address": "cosmos14r0a7xtf3cmp7rtyf4jkjhsypf69u5jvcc9cjx", | |
"pub_key": null, |
{ | |
"genesis_time": "2021-07-09T00:00:00Z", | |
"chain_id": "likecoin-chain-public-testnet-2", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "22020096", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |
{ | |
"genesis_time": "2021-05-26T03:30:00Z", | |
"chain_id": "likecoin-testnet-sanpokong-1", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "22020096", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |
const crypto = require('crypto'); | |
const secp256k1 = require('secp256k1'); | |
const bech32 = require('bech32'); | |
const createHash = require('create-hash'); | |
function createSigner(privateKey) { | |
const publicKeyArr = secp256k1.publicKeyCreate(privateKey, true); | |
const publicKey = Buffer.from(publicKeyArr); | |
const sha256 = createHash('sha256'); | |
const ripemd = createHash('ripemd160'); |
{ | |
"genesis_time": "2019-11-25T08:30:32.551547Z", | |
"chain_id": "local-test-chain", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "22020096", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |
I hereby claim:
To claim this, I am signing this object:
const secp256k1 = require('secp256k1'); | |
const bech32 = require('bech32'); | |
const createHash = require('create-hash'); | |
const jsonStringify = require('fast-json-stable-stringify'); | |
function createSigner(privateKey) { | |
console.log(`private key: ${privateKey.toString('hex')}`); | |
const publicKey = secp256k1.publicKeyCreate(privateKey, true); | |
console.log(`public key: ${publicKey.toString('base64')}`); | |
const sha256 = createHash('sha256'); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <setjmp.h> | |
jmp_buf env; | |
int my_func(int a, int b) { | |
if (b == 0) { | |
printf("do not allow division by 0\n"); | |
longjmp(env, 1); |