Skip to content

Instantly share code, notes, and snippets.

View christroutner's full-sized avatar
💭
https://FullStack.cash is where I play.

Chris Troutner christroutner

💭
https://FullStack.cash is where I play.
View GitHub Profile
@christroutner
christroutner / restricted-blockchain-size-research.md
Last active March 20, 2022 07:06
Research: Restricted Blockchain Size

Overview

I'm doing research on blockchain architecture to find a way that a fully-validated blockchain could be built, but uses epochs so the IBD (initial block download) and overall blockchain size is limited. The best way to describe this idea is comparing and contrasting to other existing ideas:

  • Bitcoin: retains all blockchain data forever. This causes the blockchain to grow infinitely without bounds, over time. The IBD is continually getting longer, and the amount of data needed to download in order to get an archival node working is constantly growing.

  • Mina: uses ZKP (zero knowledge proofs) to keep the entire blockchain below 500kB at all times. Each new block is compressed using ZKP, and all the actual data is thrown away. This means things like inflation bugs can never be verified.

What I'm looking for is something inbetween these two extremes. I like the auditibility of verified chains like Bitcoin, and I like the small size of Mina.

@christroutner
christroutner / psf-consumer-apis.json
Last active October 25, 2022 20:35
psf-consumer-apis
{
"consumerApis": [
{
"name": "wa-usa-bch-consumer.fullstackcash.nl",
"ipfsId": "12D3KooWBXuJHsAoqkn3NwwFsGzWkNkRYH17RtNJY2snTSxQpikS",
"url": "https://wa-usa-bch-consumer.fullstackcash.nl"
},
{
"name": "pdx01-usa-bch-consumer.fullstackcash.nl",
"ipfsId": "12D3KooWEzE3HNH86WCb2Xocu6PgBCnSGUD7myJmuTHvoedMwp7K",
@christroutner
christroutner / README.md
Last active February 19, 2022 16:40
Example of using minimal-slp-wallet in a web page

The HTML file below shows how to import minimal-slp-wallet into a web page and query the balance of a BCH address from the blockchain. This is a simple example for interacting with the BCH blockchain with a web page.

A live demo of this app has been uploaded to Filecoin, and can be accessed here:

@christroutner
christroutner / ubuntu-setup-notes.md
Last active December 20, 2022 14:35
Ubuntu Setup Notes

This file contains a list of commands that can be used to quickly and easily setup a new Ubuntu 20.04 installation.

Update and Upgrade

  • sudo apt update
  • sudo apt upgrade

Install SSH Server

  • sudo apt install openssh-server

Install Basic Apps

@christroutner
christroutner / daemon.config.json
Created December 27, 2021 00:49
Ceramic Testnet Node
{
"anchor": {
"ethereum-rpc-url": "https://ropsten.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
},
"http-api": {
"cors-allowed-origins": [".*"]
},
"ipfs": {
"mode": "remote",
"host": "http://172.17.0.2:5011"
@christroutner
christroutner / gnc-psf-agreement.md
Last active December 14, 2022 00:32
GNC & PSF Agreement For DEX in 2022

GNC & PSF Agreement for DEX Development in 2022

The PSF and GNC have reached an agreement to fund the development of a token DEX over the course of 2022. This is a written statement to document the expectations, dates, dollar amounts, and deliverables for a collaboration between the eCash GNC and the Permissionless Software Foundation for the development of an eToken decentralized exchange (DEX).

Timeline

The DEX project is expected to span the calendar year of 2022, starting on January 1st, and completing December 31st.

Dollar Amounts

The GNC has agreed to distribute funds to pay the developers for this work in five payments. Payments are denominated in USD, but will be paid in equivalent quantities of eCash. Payments should be made to this wallet address:

  • ecash:qzpssr92pw6xgzmgachqr37xgheet89x9q8my32725
@christroutner
christroutner / redirect.html
Created November 30, 2021 21:25
Redirect a website to a Filecoin-hosted version
<!DOCTYPE html>
<!--
This HTML creates a web page that retrieves the latest copy of an IPFS-based
Gatsby website that was uploaded to Filecoin. It retrieves the hash for the
site from the BCH blockchain, then navigates the browser to that site, which
is served by the Filecoin blockchain.
-->
<html lang="en">
@christroutner
christroutner / grant-request.md
Last active November 14, 2021 15:13
eCash GNC Grant Request for PSF SLP DEX

GNC Grant Proposal: SLP DEX

Overview

This is a grant request for $25,000 USD equivalent of eCash to fund the development of a decentralized exchange (DEX) for SLP tokens on the eCash blockchain (eTokens). Having a token exchange would increase the utility value of the eCash blockchain, and by leveraging token bridges, would make eCash users less dependent on centralized exchanges (CEX).

Development would be executed by the Permissionless Software Foundation. They have already recieved a $25,000 grant from Ava Labs to build a DEX on the Avalanche X-Chain. The PSF requests a matching grant from the eCash GNC to port the DEX over to eCash. Here is a video presentation given to ShapeShift DAO about the exchange being built. A proof-of-concept for a trustless, atomic token trade has already been developed, based on [Vin Armani'

@christroutner
christroutner / ipfs-circuit-relays-monitor.html
Last active November 30, 2021 18:01 — forked from danielhumgon/index.html
Monitor WSS IPFS Circuit Relays
<!DOCTYPE html>
<!--
This HTML creates a web page that loads an IPFS node. You can interact with it by opening a browser console and interacting
with the 'node' variable.
-->
<html lang="en">
<head>
@christroutner
christroutner / presentation.md
Last active November 9, 2021 22:17
Notes for Blockhack Hackathon

Getting Started with Bitcoin Cash (BCH)

These notes and presentation are intended as a 'quick start' for hackathon developers to quickly implement BCH and token infrastructure into their hackathon project.

Educational Resources

Code examples won't help much if you don't understand the underlying architecture of the Bitcoin blockchain. Here are some educational and documentation references that every developer should refer to when they have questions: