Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your Compute-Usage Receipt Can Be Cryptographically Signed and Still Be Forged. Here's the One Field That Actually Prevents It, From the Command Line.

Co-authored by Rudrendu Paul and Sourav Nandy . Repo: github.com/RudrenduPaul/ComputeLedger , Apache-2.0. npm install -g computeledger-cli (Node.js 18+) or pip install computeledger-cli (Python 3.10+), two independently maintained implementations of the same receipt format, both live at 0.1.2 (npm) and 0.1.4 (PyPI) on their respective registries as of this writing; the two implementations now…

Cryptographic signatures on compute-usage receipts do not guarantee the receipt's authenticity. If the signer's public key is included alongside the signed data, an attacker can replace that key with a different one, re-sign the receipt, and the verification will still pass. The key to preventing this forgery lies in including the public key as part of the signed payload itself, rather than providing it separately.

This ensures that any tampering with the public key would result in a mismatched hash, causing the verification to fail before the signature check even occurs. In the ComputeLedger project, they addressed this issue by hashing the entire payload, including the public key, before signing it. This design decision ensures that any attempt to alter the public key would invalidate the signature, thus preventing forgery.

The audit conducted on the ComputeLedger project revealed two minor bugs that had not been caught during development. The first bug was related to the ledger's ability to handle invalid JSON input, which could cause the entire system to crash. The second bug was a failure to validate certain input fields properly, leading to unexpected stack traces.

Both issues were addressed during a security-focused audit of the finished implementation, highlighting the importance of thorough testing and review in software development.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

REST vs SOAP vs GraphQL vs gRPC — Interview Notes for Backend Engineers

I have shipped REST APIs for four years (Flask, AWS Lambda + API Gateway, FastAPI). This is the reference I use in design reviews and phone screens — focused on when to pick each style, not memorising…

  • REST APIs use resources (nouns) and HTTP methods (verbs) with JSON format
  • REST is common for public or mobile APIs due to browser-friendliness and caching
  • gRPC is suitable for internal, high-performance service-to-service communication

Idempotency Keys for Python Payment APIs

A user double-taps Pay. The network retries. Your API creates two orders for one charge. POST is not idempotent. If you handle payments without an idempotency strategy, you will eventually ship a bug…

  • Idempotency keys prevent duplicate charges in Python payment APIs.
  • Client generates unique key for each user action, included in retry requests.
  • Server processes first request with key, stores response for duplicates.

“We’re not doing 30 bets a year”: Vijay Pande on betting small after running $4 billion at a16z

Vijay Pande — who left a16z's roughly $4 billion biotech practice last year to start the much smaller, AI-native VZVC — talks about why biology is finally shifting from a "discovery" science to an…

  • Vijay Pande shifted from $4B at a16z to founding VZVC
  • AI advances enable more accurate drug development and treatment
  • Low 20% success rate due to animal model inaccuracies

How QR codes are reshaping the future of commerce

How QR codes are reshaping the future of commerce newspress_en Sat, 08/29/2026 - 18:55 Science & Technology More than half a century ago, goods moved through the checkout at a far slower pace than…

  • QR codes store extensive product information beyond basic number
  • Tesco tests QR codes to optimize product rotation and reduce waste
  • QR codes enable supply chain traceability and counterfeiting prevention

More from Saturday 29 August →