Crosshatch retweeted
Guys i found something ⬇️
Vibecoders, Software Engineers, Teach your agent to code like you: traits.sh by @CrosshatchDev
You're welcome!
Crosshatch retweeted
Stoked about Traits.
traits.sh
Crosshatch retweeted
And even more than that, I am excited about the opportunities that pipes extensibility will bring to traits specs.
Being able to mix in deterministic extracted data with decision model's understanding of natural language.
I sometimes accidentally create traits for things that could be deterministic lints.
We need a system by which traits can identify such cases and forgo decision model usage / fall back to static analysis.
Also, shoutout to @MattiaManzati for his excellent work on effect/tsgo.
Crosshatch retweeted
Before getting traits checked, Opus 5.5 built with native JS (.map, .filter().length, Math.max(...spread), .padEnd)
With Traits, it realized this is an Effect app and actually used Effect utilities. Still work to do, but the journey toward desloppification is underway 🤏
Crosshatch retweeted
Currently revamping the @CrosshatchDev x402 merchant endpoint DX.
Thoughts?
Crosshatch retweeted
The @CrosshatchDev docs now sport a built-in MCP server.
This was extremely easy to enable thanks to Vocs and the Vocs @alchemy_run resource (currently in Alchemy's main, soon to be published).
Alchemy's framework support is getting stronger by the minute.
Crosshatch retweeted
X25519 encryption across persistence boundaries.
Encrypt with the public key.
Serialize the private key as PKCS#8, hydrate it later, and decrypt the envelope.
@CrosshatchDev
Effectful X25519 encryption.
Create a keypair.
Encrypt with the public key
Decrypt with the private key.
@CrosshatchDev
Crosshatch retweeted
Effectful X25519 encryption.
Create a keypair.
Encrypt with the public key
Decrypt with the private key.
@CrosshatchDev
Crosshatch retweeted
WIP universal Effect Layer to provide x402 payment capability across all known networks and assets.
Here's what I'm currently thinking for the DX. Thoughts?
@CrosshatchDev
Crosshatch retweeted
Implementing the signed socket counterpart.
Encode a payload, sign it with the provided Ed25519 keypair and include the signer and signature in the protocol negotiation.
The socket server can yield* the tag to access the verified payload.
@CrosshatchDev
Crosshatch now provides effectful RFC 9421 signing.
The HttpSignature.layerClient computes the request body digest, and adds Signature and Signature-Input automatically.
@CrosshatchDev
Crosshatch retweeted
Crosshatch now provides effectful RFC 9421 signing.
The HttpSignature.layerClient computes the request body digest, and adds Signature and Signature-Input automatically.
@CrosshatchDev
Crosshatch retweeted
Crosshatch now models EURC, JPYC, and XSGD as known assets, including their chain-specific contracts, decimals, and supported payment schemes.
The merchant specifies the currency and chain-specific destinations. Crosshatch handles the token details.
@CrosshatchDev
Crosshatch retweeted
Effect-first x402 means that we can inject a "payer" whose key material lives in another environment.
A wallet, browser extension, separate process, RPC client, or even another device connected over bluetooth!
@CrosshatchDev
Crosshatch retweeted
Inject Crosshatch's x402 `HttpClient` into any Effect.
On 402s, it decodes payment required, generates the payment payload, and retries exactly once.
@CrosshatchDev
Crosshatch retweeted
Working with stablecoins should not require merchants to reason about token contract addresses or decimals.
Crosshatch abstracts over the noise.
One asset identifier. One numeric amount. Chain- and token-specific precision handled automatically.
@CrosshatchDev
RT @harrysolovay: Crosshatch now ships with a local mock facilitator:
• x402-compliant responses
• optional log export for local OTEL setu…
Crosshatch retweeted
The simplicity of chain-agnostic types when expressed with Effect schemas:
Validation, static inference of template literal types, nominal branding...
All from one tiny definition.
@CrosshatchDev
Crosshatch retweeted
A powerful feature of x402 v2:
There is an extension system, which lets merchants treat clients as if they are RPC endpoints…
The merchant can ask for additional computations/data alongside payment.
@CrosshatchDev ensures this extension system is strongly-typed, end-to-end.
Crosshatch retweeted
Effect layers are an ideal way to model chain-agnostic payment capability.
ERC-3009 payment payload creation requires an EIP-155 signer.
Our EIP-155 signer layer requires a mnemonic.
The composability is striking.
@CrosshatchDev
Crosshatch retweeted
High-frequency x402 micropayments over Effect RPC with @CrosshatchDev
























