▐▛███▜▌ Claude Code v2.0.61
▝▜█████▛▘ Sonnet 4.5 · API Usage Billing
▘▘ ▝▝ ~/Projects/WalletWasabi
/model to try Opus 4.5
> Is the transaction '16104814f73f12e8a00f2df9dd1250b61f49c7085a16f12af1dd3b98e098fcef' involved with my wallet named 'Wallet'?
If so, tell me when that happened and who are involved.
A bash script for fetching all notes from a specific Nostr public key and saving them as individual JSON files.
This script connects to a Nostr relay via WebSocket, subscribes to receive all notes from a specified public key, and saves each note as a separate JSON file. It's useful for archiving, analyzing, or backing up Nostr content.
| { | |
| description = "llama.cpp running vicuna"; | |
| inputs = { | |
| llama.url = "github:ggerganov/llama.cpp/aaf3b23debc1fe1a06733c8c6468fb84233cc44f"; | |
| flake-utils.url = "github:numtide/flake-utils/033b9f258ca96a10e543d4442071f614dc3f8412"; | |
| nixpkgs.url = "github:NixOS/nixpkgs/d9f759f2ea8d265d974a6e1259bd510ac5844c5d"; | |
| }; | |
| outputs = { self, flake-utils, llama, nixpkgs }: |
| #r "nuget:NBitcoin" | |
| #r "nuget:Microsoft.Extensions.Hosting.Abstractions" | |
| #r "<WalletWasabi-Repo-Path>/WalletWasabi/bin/Debug/net7.0/WalletWasabi.dll" | |
| open System | |
| open System.IO | |
| open NBitcoin | |
| open WalletWasabi | |
| open WalletWasabi.WabiSabi | |
| open WalletWasabi.WabiSabi.Backend |
This script lists the rounds in output registration phase that seems to be ready for signing.
The math for accurate detection is not here, instead we use a difference less than 3% (because this is a PoC).
$ dotnet fsi ready.fsx
87cc3a2a909f5efc0ebce1c6ef4e26d0992c5cc62dc7865fff66936c6e006f7e can be signed because diff is 75.45730076 - 75.45593750 = 0.00136326
87cc3a2a909f5efc0ebce1c6ef4e26d0992c5cc62dc7865fff66936c6e006f7e can be signed because diff is 75.45730076 - 75.45593750 = 0.00136326
87cc3a2a909f5efc0ebce1c6ef4e26d0992c5cc62dc7865fff66936c6e006f7e can be signed because diff is 75.45730076 - 75.45593750 = 0.00136326
87cc3a2a909f5efc0ebce1c6ef4e26d0992c5cc62dc7865fff66936c6e006f7e can be signed because diff is 75.45730076 - 75.45593750 = 0.00136326
Here we implement an example from Youtube: https://www.youtube.com/watch?v=__0nZuG4sTw where bankers can use fuzzy logic to evaluate the level of risk of someone according to his/her credit score.
You can play with this using the same number used in the youtube video.
| let pow b (e:int) = float b ** e |> int64 | |
| let in_range xs = xs |> Seq.takeWhile (fun x -> x <= 137438953472L) |> Seq.toList | |
| let powers_of b = Seq.initInfinite (pow b) |> in_range | |
| let (*) (cs:int64 list) (vs:int64 list) = vs |> List.collect (fun v -> [for c in cs -> c * v]) | |
| [1 ] * powers_of 2 @ | |
| [1; 2 ] * powers_of 3 @ | |
| [1; 2; 5] * powers_of 10 | |
| // print them in order |
| open System.IO | |
| #r "paket: | |
| nuget Fake.IO.FileSystem | |
| nuget Fake.Core.Trace | |
| nuget FSharp.Data | |
| nuget Fable.React | |
| nuget FSharp.Literate | |
| nuget Fake.Core.Target //" | |
| #load ".fake/blog.fsx/intellisense.fsx" |
Note: not too long ago I shared a harsher version of this same content with the zkSNACKs internal staff. That document was for the team and for that reason a harsh language was okay but sadly for that same reason it is not publishable so, here I want to share the core ideas expressed at that time.
I've commented many times to different people inside as well as outside zkSNACKs how my vision about what Wasabi should be is quite different than the official one but I think I have never explained what that vision is and what that implies in practical/technical terms so, here I go.