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 / psf-helia-public-circuit-relays.json
Last active March 5, 2024 00:28
A JSON file containing public PSF v2 Circuit Relays (IPFS) running Helia
{
"browser": [
],
"node": [
{
"name": "psf1.tokentiger.com",
"multiaddr": "/ip4/143.198.70.59/tcp/5101/p2p/12D3KooWMbU9R49aiYUeFBpxFYK6PggacoeMydaZaR2dzDpWgcA6",
"connected": false,
"ipfsId": "12D3KooWMbU9R49aiYUeFBpxFYK6PggacoeMydaZaR2dzDpWgcA6",
"isBootstrap": true,
@christroutner
christroutner / minimal-slp-wallet.html
Created December 15, 2022 13:47
minimal-slp-wallet HTML Example
<!DOCTYPE html>
<!--
This HTML creates a web page that retrieves the latest copy of the web app
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">
{
"consumerApis": [
{
"name": "wa-usa-xec-consumer.fullstackcash.nl",
"ipfsId": "12D3KooWCTwdBFz7rWYPav54qgKVjPzNNzC46Qdg1w14iSU2mQJo",
"url": "http://wa-usa-xec-consumer.fullstackcash.nl"
},
{
"name": "xec-consumer-or1-usa.fullstackcash.nl",
"ipfsId": "12D3KooWJNjbzJuF6suDXdC4eDarTR8Maf8H3fxZEvaTqpiBr7Ma",
@christroutner
christroutner / psf-public-circuit-relays.json
Last active October 1, 2022 20:30
psf-public-circuit-relays
{
"browser": [
{
"name": "p2wdb-cr-wss.fullstack.cash",
"multiaddr": "/dns4/p2wdb-cr-wss.fullstack.cash/tcp/443/wss/ipfs/12D3KooWKNuBjaMgEDN2tGqzmdfM2bmd22VEuboC4X7x8ua4DvUg",
"ipfsId": "12D3KooWKNuBjaMgEDN2tGqzmdfM2bmd22VEuboC4X7x8ua4DvUg"
},
{
"name": "ipfs-cr.fullstackslp.nl",
"multiaddr": "/dns4/ipfs-cr.fullstackslp.nl/tcp/443/wss/ipfs/12D3KooWJyc54njjeZGbLew4D8u1ghrmZTTPyh3QpBF7dxtd3zGY",
@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 / 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 / psf-circuit-relays.json
Last active June 29, 2022 18:23
psf-circuit-relays
{
"browser": [
{
"name": "ipfs-wss.psfoundation.info",
"multiaddr": "/dns4/ipfs-wss.psfoundation.info/tcp/443/wss/ipfs/12D3KooWHnZZBr1VeFoRJPoB6MHqu3RNp1RW6o9nswHzGZuXe27h",
"ipfsId": "12D3KooWHnZZBr1VeFoRJPoB6MHqu3RNp1RW6o9nswHzGZuXe27h"
},
{
"name": "bchd.nl",
"multiaddr": "/dns4/bchd.nl/tcp/443/wss/p2p/12D3KooWRBhwfeP2Y9CDkFRBAZ1pmxUadH36TKuk3KtKm5XXP8mA",
@christroutner
christroutner / js-buf.md
Last active September 8, 2020 16:58
Working with Buffers and Hex Strings

Working with JavaScript Buffers, Hex, and Strings

// Start with a normal base-10 number.
const numNum = 123; // 7B in hex
console.log(`numNum: `, numNum);
// numNum:  123

// Convert the Number to a String
@cgcardona
cgcardona / Escrow.cash
Created August 25, 2019 20:27
Escrow CashScript Contract for blind escrow based on local.bitcoin.com
contract Escrow(
bytes20 sellerPHK, // Hash160 of seller's public key
bytes20 buyerPKH, // Hash160 of buyer's public key
bytes20 arbitratorPKH, // Hash160 of arbitrator's public key
bytes escrowKey // Nonce (just some unimportant random bytes unique per exchange)
) {
function spend(
sig spenderSig,
pubkey spenderPK,
datasig oracleSig,
@cgcardona
cgcardona / Local.cash
Created August 25, 2019 06:35
Local CashScript Contract for local.bitcoin.com
contract Local(
bytes20 sellerPHK, // Hash160 of seller's public key
bytes20 buyerPKH, // Hash160 of buyer's public key
bytes20 arbitratorPKH, // Hash160 of arbitrator's public key
bytes escrowKey // Nonce (just some unimportant random bytes unique per exchange)
) {
function spend(
sig spenderSig,
pubkey spenderPK,
datasig oracleSig,