Skip to content

Instantly share code, notes, and snippets.

View toschdev's full-sized avatar
:octocat:
Developing

Tobias toschdev

:octocat:
Developing
View GitHub Profile
@toschdev
toschdev / pass_to_pub.html
Created July 4, 2017 09:48
Lisk calculate publicKey and address from passphrase
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lisk passphrase to publicKey</title>
</head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
@toschdev
toschdev / keybase.md
Created August 17, 2018 16:08
Keybase

Keybase proof

I hereby claim:

  • I am tosch110 on github.
  • I am toschbr (https://keybase.io/toschbr) on keybase.
  • I have a public key ASAHJ3zZKHlM2ODYwuHHZin_Ga5obwzo9_lz1pz5KYydzQo

To claim this, I am signing this object:

@toschdev
toschdev / blockchain_status_example.json
Created March 18, 2019 18:41
Ardor Blockchain Status
{
"apiProxy":false,
"correctInvalidFees":false,
"ledgerTrimKeep":30000,
"maxAPIRecords":100,
"blockchainState":"UP_TO_DATE",
"currentMinRollbackHeight":1471200,
"numberOfBlocks":1472762,
"isTestnet":true,
"includeExpiredPrunable":true,
@toschdev
toschdev / bundler.go
Last active June 2, 2019 17:00
Create Ardor Bundler
//Author: Tobias Schwarz March 2019
package main
import (
"fmt"
"gopkg.in/resty.v1"
"os"
)
const (
@toschdev
toschdev / bitcoind-ubuntu-install
Last active June 16, 2019 19:20 — forked from rjmacarthy/bitcoind-ubuntu-install
Install Bitcoind Ubuntu
** Add repository and install bitcoind **
sudo apt-get install build-essential
sudo apt-get install libtool autotools-dev autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
mkdir ~/.bitcoin/ && cd ~/.bitcoin/
@toschdev
toschdev / index.js
Last active June 4, 2020 12:24
getAccount ardor npm
const loader = require("ardor");
loader.init({
url: "http://localhost:27876",
chain: 2,
secretPhrase: "hope peace happen touch easy pretend worthless talk them indeed wheel state",
isTestNet: false
});
loader.load(async function(NRS) {
@toschdev
toschdev / algorithm_test.go
Created October 13, 2020 13:48
Ethermint Bip44
package crypto
import (
"fmt"
"log"
"strings"
"testing"
"github.com/stretchr/testify/require"
@toschdev
toschdev / algorithm_test.go
Last active October 15, 2020 12:11
Ethermint HDWallet key derivation
package crypto
import (
"encoding/hex"
"fmt"
"log"
"strings"
"testing"
"github.com/stretchr/testify/require"
@toschdev
toschdev / helper.ts
Last active August 27, 2021 21:44
Helper file local Smart Contract
import axios from "axios"
import fs from "fs"
import { SigningCosmWasmClient, CosmWasmFeeTable} from "@cosmjs/cosmwasm-stargate"
import { GasPrice, Secp256k1HdWallet, GasLimits, makeCosmoshubPath } from "@cosmjs/launchpad"
import { Slip10RawIndex } from "@cosmjs/crypto"
import path from "path"
/*
* This is a set of helpers meant for use with @cosmjs/cli
* With these you can easily use the cw20 contract without worrying about forming messages and parsing queries.
*