Standard library / crypto/x509
crypto/x509.SignatureAlgorithm
Identifier of a certificate or request signature algorithm. An identifier is not proof of implementation support or suitability. Expected stdout: 'Ed25519\n'.
Formal Syntax & Structure
go syntaxgo
type SignatureAlgorithm intWorking Example
Example Snippetgo
package main
import ( "crypto/x509" "fmt")
func main() { fmt.Println(x509.PureEd25519.String()) }
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) }}