Standard library / crypto/tls
tls.SignatureScheme
Numeric identifier for TLS signature algorithms. Offered schemes differ from cipher suites. Expected stdout: 'Ed25519\n'.
Formal Syntax & Structure
go syntaxgo
type SignatureScheme uint16Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { var s tls.SignatureScheme = tls.Ed25519; fmt.Println(s) }
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) }}