Skip to content

Instantly share code, notes, and snippets.

View Cordtus's full-sized avatar

Cordt Hanson Cordtus

View GitHub Profile
@Cordtus
Cordtus / summary.md
Created December 9, 2025 21:13
newOS Platform Overview - AI Operating System Analysis

newOS Platform Overview

What is newOS?

An "operating system for the AI age" by Newfoundation - a platform for interacting with multiple AI models (GPT, Claude, Qwen, Deepseek, Mixtral) while maintaining control over your data, privacy, and intellectual property.

Access: https://newos.computer | Web App: https://web.newos.computer/start


@Cordtus
Cordtus / SYSTEM_OVERVIEW.md
Last active November 23, 2025 01:19
Yaci System Overview - Blockchain Indexer Architecture

Yaci System Overview

A blockchain data indexing and exploration system for Cosmos SDK chains with EVM support.

Architecture

Republic Chain (gRPC)
        |
 v
@Cordtus
Cordtus / gist:84d6f192fd6216d344513debc5801f95
Created November 22, 2025 23:11
Yaci Explorer Architecture Analysis
# Yaci Explorer Architecture Analysis
## Component Overview
| Component | Language | Location | Purpose |
|-----------|----------|----------|---------|
| yaci indexer | Go | Server (fly.io) | gRPC → PostgreSQL |
| PostgreSQL | SQL | Server (fly.io) | Data storage |
| yaci-postgrest | PostgREST | Server (fly.io) | SQL → REST API |
| database-client | TypeScript | Browser | REST → typed methods |
{
"height": "26506",
"txhash": "0F4F8059A245EEE11A3554B698F76D809EFFB2A87C30FE7346185923C30E717F",
"codespace": "",
"code": 0,
"data": "122B0A292F636F736D6F732E62616E6B2E763162657461312E4D73674D756C746953656E64526573706F6E7365",
"raw_log": "",
"logs": [],
"info": "",
"gas_wanted": "202077",
{"height":"26506","txhash":"0F4F8059A245EEE11A3554B698F76D809EFFB2A87C30FE7346185923C30E717F","codespace":"","code":0,"data":"122B0A292F636F736D6F732E62616E6B2E763162657461312E4D73674D756C746953656E64526573706F6E7365","raw_log":"","logs":[],"info":"","gas_wanted":"202077","gas_used":"184551","tx":{"@type":"/cosmos.tx.v1beta1.Tx","body":{"messages":[{"@type":"/cosmos.bank.v1beta1.MsgMultiSend","inputs":[{"address":"republic1sgm0n866teaxfgvt9l83w59m7pdtkd8wq54a0d","coins":[{"denom":"arai","amount":"9000000000000000000000"}]}],"outputs":[{"address":"republic18sy7yy48ylqyw6xzcvcgedyuaf7tfru2szd4uk","coins":[{"denom":"arai","amount":"2250000000000000000000"}]},{"address":"republic1madedctys0hvvlcu2dp7m48lgt8z27v76ynjrk","coins":[{"denom":"arai","amount":"2250000000000000000000"}]},{"address":"republic13edsxetsk842m8zzarcnzvuh70gy2sjvjdn5z3","coins":[{"denom":"arai","amount":"2250000000000000000000"}]},{"address":"republic1hv09up3702vme7v3dgjzmlkuarg3cxcw3r8lyr","coins":[{"denom":"arai","amount":"225000000000000000
@Cordtus
Cordtus / EXTRACTED_WALLET_LOGIC.md
Created November 16, 2025 00:24
Key Generation & Transaction Signing - Unified Key for Cosmos + EVM

Key Generation & Transaction Signing

Unified Key for Cosmos + EVM

Core logic for generating one key pair and using it to sign transactions on both Cosmos and EVM.


Key Generation from Mnemonic

From src/SecureKeyManager.js:

cosmologo

<svg width="102" height="100" viewBox="0 0 102 100" xmlns="http://www.w3.org/2000/svg"><style>:root{color-scheme:light dark}svg{--primary:#000;--light:#ccc;--dark:#0E0E0E;--fg:var(--primary);--bg:transparent;background:var(--bg);color:var(--fg)}@media(prefers-color-scheme:dark){svg{--fg:var(--light);--bg:transparent}}path,g path,circle,rect,polygon,polyline,ellipse,line,text{fill:currentColor!important;stroke:currentColor}</style><path fill-rule="evenodd" clip-rule="evenodd" d="M63.4122 29.4633L30.4746 61.7665C30.0498 60.9583 29.6666 60.1161 29.323 59.2428C28.1727 56.3076 27.5976 53.1936 27.5976 49.9048C27.5976 46.6132 28.1727 43.5002 29.323 40.5653C30.4746 37.629 32.0697 35.0816 34.1092 32.9193C36.1486 30.7585 38.5998 29.0494 41.4608 27.7908C44.3233 26.5335 47.4639 25.9041 50.884 25.9041C54.3056 25.9041 57.4636 26.5491 60.3567 27.8404C61.4322 28.3196 62.4507 28.8601 63.4122 29.4633ZM60.5055 72.2104C57.
@Cordtus
Cordtus / mantrachain-setup-simple.sh
Created October 14, 2025 23:23
Mantrachain Explorer Setup (No Nginx) - For use with Caddy or other reverse proxy
#!/bin/bash
#
# Mantrachain Explorer Setup Script (Simple - No Nginx)
# For Debian 12 LXC Container
#
# This script installs:
# - PostgreSQL database
# - PostgREST API server (port 3000)
# - Yaci blockchain indexer
# - Explorer UI (static files only)
@Cordtus
Cordtus / mantrachain-cleanup.sh
Created October 14, 2025 23:23
Mantrachain Explorer Cleanup Script - Remove all services and data
#!/bin/bash
#
# Cleanup script for Mantrachain Explorer
#
set -e
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
@Cordtus
Cordtus / mantrachain-explorer-setup.sh
Created October 14, 2025 23:16
Mantrachain Explorer Setup Script - Complete deployment for Debian 12 LXC container (PostgreSQL + PostgREST + Yaci + React UI)
#!/bin/bash
#
# Mantrachain Explorer Setup Script
# For Debian 12 LXC Container
#
# This script installs and configures:
# - PostgreSQL database
# - PostgREST API server
# - Yaci blockchain indexer
# - Explorer web UI (React)