Standard library / crypto/ed25519

crypto/ed25519.PublicKeySize

Public verification key length. Measured in bytes. Expected stdout: '32\n'.

Formal Syntax & Structure

go syntaxgo
const PublicKeySize = 32

Working Example

Example Snippetgo
package main
import (  "crypto/ed25519"  "fmt")
func main() { fmt.Println(ed25519.PublicKeySize) }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