Skip to content

Instantly share code, notes, and snippets.

View willpiam's full-sized avatar

William Doyle willpiam

View GitHub Profile

LLM-Wiki

As Adapted By William Doyle

Purpose

These are my refinements of Kerpathy's original LLM Wiki "idea file". I plan to update this document over time. Since first discovering Kerpathy's post, the LLM wiki approach has been incredibly beneficial to me.

Resources & Credit

@willpiam
willpiam / bitcoin_os first proof
Created February 24, 2025 19:06
first and last txs in the first bitcoin mainnet zk-proof
first: 6908e4df9d79184dedb3260d54bef0765e85db89e1f20684714743923c7f370a
https://www.blockchain.com/explorer/transactions/btc/6908e4df9d79184dedb3260d54bef0765e85db89e1f20684714743923c7f370a
last (52): 0a95f5c58f2b47414b46ff2b308e2eb9eab41bf0d53fc744ea7886ea22e97d55
https://www.blockchain.com/explorer/transactions/btc/0a95f5c58f2b47414b46ff2b308e2eb9eab41bf0d53fc744ea7886ea22e97d55

It took forever to figure out how to parameterize a validator with an address but finally I have the solution! I'm saving it here for future reference. Perhaps someone will find it useful.

Signed, $computerman

Minimal Demo Of Address Parameter Issue

Build Contracts

aiken build

Run Off-chain code

deno run --allow-read .\main.ts

Expected behaviour

The validator, which was parameterized with the payment address, should allow transactions when one of the outputs goes to the payment address.

Cardano Broadcaster Script

The idea is to have an NFT which lives at some script address. Whatever UTxO it exists on must contain a datum. This datum contains a list of strings or messages. A single message can be added to the top of the list at a time by anyone. Messages cannot be longer than a set length. The same message may not be posted twice in a row. Message history must be preserved.

It is critical that the token cannot be moved from the script address and that the datum is always recreated properly.

Keybase proof

I hereby claim:

  • I am willpiam on github.
  • I am williamdoyle (https://keybase.io/williamdoyle) on keybase.
  • I have a public key ASA2rpmf36b1bRGLe5BLKRNzuPpzpFVLNqCvx7eEDmrQNgo

To claim this, I am signing this object: