Skip to content

Instantly share code, notes, and snippets.

View melvincarvalho's full-sized avatar
💭
I may be slow to respond.

Melvin Carvalho melvincarvalho

💭
I may be slow to respond.
View GitHub Profile
@melvincarvalho
melvincarvalho / RGBNIA1.md
Created September 10, 2025 10:36
RGBNIA1.md

RGB Contract Encoding and Commitment Analysis

Executive Summary

This document provides a detailed analysis of how RGB Non-Inflatable Assets (NIA) are encoded, hashed, and committed to Bitcoin using the RGB protocol. The analysis is based on the issue_nia::case_1 test executi on.


Test Parameters

@melvincarvalho
melvincarvalho / baid64.md
Created September 4, 2025 21:36
baid64.md

Baid64 Specification

Overview

Baid64 (Base64 Aided Identities) is an enhanced Base64 encoding scheme designed for secure, human-verifiable identity encoding. It extends standard Base64 with Human Readable Identifiers (HRI), cryptographic check sums, mnemonic representations, and optional formatting features to create a robust encoding system suitable for identity management and secure data representation.

Core Components

1. Custom Alphabet

@melvincarvalho
melvincarvalho / bookmark.jsonld
Last active June 29, 2025 18:29
bookmark.jsonld
{
"@context": {
"bookmark": "https://w3id.org/bookmark#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "https://schema.org/",
"dct": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
@melvincarvalho
melvincarvalho / Introduction.md
Last active June 12, 2025 17:58
Introduction.md

2 Introduction

The Linked Web Storage (LWS) Protocol defines the minimum set of interoperable, HTTP-based interactions that let any conforming application read, write, and manage data that lives outside the application’s own infrastructure. Its purpose is to restore an essential architectural principle of the Web: users control where their data is stored while applications come and go—without breaking links, permissions, or provenance.

Today most Web applications entangle storage, identity, access control, and business logic behind a single origin. Migrating to a new provider or adopting a new application therefore often means abandoning existing data. LWS breaks that coupling. By standardising a small, resource-oriented contract it enables

  • portable personal and enterprise data vaults that can move between providers, clouds, or on-premise deployments,
  • application innovation decoupled from storage choices,
  • consistent security semantics across heterogeneous back-ends, and
@melvincarvalho
melvincarvalho / NIP-XX-Playlists.md
Created May 30, 2025 12:04
NIP-XX-Playlists.md

NIP-XX — Sharing .m3u Playlists via Event Content

Author: Melvin Carvalho Status: Draft Type: Standard Created: 2025-05-30 License: Public Domain


#EXTM3U
#EXTINF:-1 tvg-logo="images/BigBuckBunny.jpg" group-title="Movies",Big Buck Bunny
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
#EXTINF:-1 tvg-logo="images/ElephantsDream.jpg" group-title="Movies",Elephant Dream
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4
#EXTINF:-1 tvg-logo="images/ForBiggerBlazes.jpg" group-title="Movies",For Bigger Blazes
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4
#EXTINF:-1 tvg-logo="images/ForBiggerEscapes.jpg" group-title="Movies",For Bigger Escape
http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4
#EXTINF:-1 tvg-logo="images/ForBiggerFun.jpg" group-title="Movies",For Bigger Fun
@melvincarvalho
melvincarvalho / txop.md
Last active May 8, 2025 18:32
txop.md

1. High-level architecture

┌──────────────┐        WebSocket / HTTP-JSON        ┌──────────────────┐
│  CJ Client   │  <-- register / sign / finalize --> │  CJ Coordinator  │
└──────────────┘                                      └──────────────────┘
        ▲                                                       │
        │ uses                                                  │ broadcasts
        │                                                       ▼
┌──────────────────┐ ┌──────────────────┐

LocalStorage Dump (LSD) Specification

Editor’s Draft — 4 May 2025

This document is an Editor’s Draft for discussion within the W3C Linked Web Storage (LWS) Working Group. It proposes LocalStorage Dump (LSD) — a lightweight convention and protocol profile that enables Web applications to serialise window.localStorage and persist the resulting data in any user‑chosen Linked Web Storage–compatible backend (e.g., Solid Pods, remoteStorage/Unhosted, WebDAV, nosdav).

Design principle: Per‑origin, per‑user, format‑agnostic, backend‑agnostic, privacy‑preserving.


@melvincarvalho
melvincarvalho / manifesto.md
Created May 3, 2025 20:51
Agentic Principles Manifesto

🕊️ Agentic Principles Manifesto

A call for autonomy, dignity, and trust in the age of intelligent agents.


1. Agents Must Serve the User First

Agents are extensions of human will—not proxies for corporations. They must act in the user’s interest, not in the interest of advertisers, platforms, or centralized authorities.

""
"000000000000000000029b424348a4ae23aafec1b30dc3cbc4bffb1c6d6b9534"
"03b9eafb9c3f2f04d4a84e3ce202382291a5d25408b38bf7fa603609da313b66"
"04c915daefee38317fa734444acee390a8269fe5810b2241e5e6dd343dfbecc9"
"0a7c232a5c4dd0d472d34ca6e768529dffd4683e1968a236a5c789d86837a856"
"12578f"
"192.168.1.10:4848"
"1a35b54ef7752af54cacbeedf0f349e320f0a2ee50142883134c3ee31879ce71"
"1e7fd21b6cf2d89076323475bd5c02f817167d0ec9ee87beadd189c68b61d334"
"2cb1194925b919a02132a881e81a92117fa9eab1d0bd6e68599bef274e82718c"