Standard library / crypto/ed25519

crypto/ed25519.PrivateKeySize

Go private key representation length. Measured in bytes. Expected stdout: '64\n'.

Formal Syntax & Structure

go syntaxgo
const PrivateKeySize = 64

Working Example

Example Snippetgo
package main
import (  "crypto/ed25519"  "fmt")
func main() { fmt.Println(ed25519.PrivateKeySize) }func must[T any](v T, e error) T {  if e != nil {    panic(e)  }  return v}func check(e error) {  if e != nil {    panic(e)  }}
Go Reference