This site is being rebuilt and some pages are out of date. For current details, write to [email protected]. This notice goes away when the rebuild is done.

No analytics unless you allow it, no tracking. This site keeps in your browser the language you pick, the theme, its colour, which site you chose, the currency on the pricing page and that you closed this notice; signing in adds session cookies. The legal page has the details.

Sign in

Radar · Go · Archive · Week 6 · Feb 3 – 9, 2025

go1.22.12 released

Worth knowingecosystem

What changed
Security fixes to the crypto/elliptic package, plus bug fixes to the compiler and the go command.
Production impact
The source does not say.
Try it
Upgrade to go1.22.12 and run go test ./... to ensure no regressions.
Source
go.dev/doc/devel/release#go1.22.12

Understand it, then run it

Run it now

Todaygo
// This program demonstrates using the crypto/elliptic package to generate
// a P256 key pair and print the public point. It runs with Go 1.27.1
// and works with the security fix shipped in Go 1.23.6.

package main

import (
	"crypto/elliptic"
	"crypto/rand"
	"fmt"
)

func main() {
	// Choose the P256 curve.
	curve := elliptic.P256()

	// Generate a private/public key pair.
	priv, x, y, err := elliptic.GenerateKey(curve, rand.Reader)
	if err != nil {
		panic(err)
	}

	// Display the private key (in hex) and the public point coordinates.
	fmt.Printf("Private key: %x\n", priv)
	fmt.Printf("Public key X: %x\n", x)
	fmt.Printf("Public key Y: %x\n", y)
}

What it printed when we ran it on Go 1.27.1

Private key: c162f425a1badbccbe04e38b14b409af6a176f425d995395f43bcb150bc2249d
Public key X: 11a1e8637c25e9b2cf3ae80b151e1a444363d35f9e0334b715899f4483ecb2ca
Public key Y: 4186310a86cb438ce807b3e43e5e4c1802066e29259dc0325a5f4f3566011607

Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.

Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed