Version 0.1.4 · Prototype (Chrome Extension)
Date: 2026-08-12
Status: Draft — OP_RETURN payload encoding finalized
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Configuration defaults | |
| API_KEY="your-xai-api-key-here" # Default API key (overridden by config or env) | |
| API_URL="https://api.x.ai/v1/chat/completions" | |
| CODEBASE_FILE="/tmp/grok_codebase.txt" | |
| SESSION_FILE="$PWD/grok_session_$(date +%Y%m%d_%H%M%S).txt" # Default in current directory | |
| SOURCE_PATH="" | |
| MODEL="grok-3-latest" # Default model | |
| CONTEXT="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type LogLevel = keyof typeof LOG_LEVEL_MAP | |
| interface LogState { | |
| base_level : number | |
| curr_level : number | |
| curr_path : string | null | |
| } | |
| const { LOG_LEVEL, NODE_ENV } = process.env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { z } from 'zod' | |
| import { schnorr } from '@noble/curves/secp256k1' | |
| import { sha256 } from '@noble/hashes/sha256' | |
| import { WebSocket, WebSocketServer } from 'ws' | |
| /* ================ [ Configuration ] ================ */ | |
| const SERVER_PORT = 8002 // Port to use for the server. | |
| const PURGE_IVAL = 600 // Interval to purge events (in seconds). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const TURN_RADIUS: i32 = 360; | |
| fn give_direction(you: &str, action: &str) { | |
| println!("Giving {} {}", you, action); | |
| } | |
| fn let_direction(you: &str, action: &str) { | |
| println!("Letting {} {}", you, action); | |
| } |
Here is a nice trick that I would like to share if you are working with typescript and path aliases.
Suppose you have a typescript project, and you are in love with path aliases.
// tsconfig.json
{
"baseUrl": "./src",
"paths": {
"@/*" : [ "./*" ]
},A proposal is the precursor to creating a contract. It defines the terms of the contract and how it should be executed. It is written in a simple JSON format that is easy to read, for humans and machines alike.
Example of a proposal:
{
title : 'Basic two-party contract plus moderator.',
details : 'n/a',
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Buff } from '@cmdcode/buff-utils' | |
| import { Field, Point } from '@cmdcode/crypto-utils' | |
| // Suppose a prover P wants to convince a verifier V | |
| // that they know x and r such that: C = g^x * h^r | |
| // First, generate our x and r values. | |
| const x = 'deadbeef'.repeat(4) | |
| const r = 'decafeed'.repeat(4) |
Resources and links following the "Hacking ChatGPT" workshop.
April 8th, 2023.
https://www.reddit.com/r/ChatGPT
https://www.reddit.com/r/midjourney
https://www.reddit.com/r/dalle2
https://www.reddit.com/r/StableDiffusion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Buff } from '@cmdcode/buff-utils' | |
| import { Hash, Field, Point } from '@cmdcode/crypto-utils' | |
| import HDWallet from '../src/index.js' | |
| const ec = new TextEncoder() | |
| const root = HDWallet.fromBase58('tpubDCMvBvR79bHQMYnYCZJzwD8SRvYf287A5soUXot1ESGSJERdXQ8PsEB4tcAqa3B5nzNHKST9VxaEdAv6MvVNtzKWRwsfMrbdPjtRD4p3maM') | |
| const node = await root.getPath('1/0') | |
| const pub = Buff.buff(node.publicKey.slice(1)) | |
| async function taproot_tweak_pubkey( |
NewerOlder