crypto

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeypair

func GenerateKeypair() (ed25519.PublicKey, ed25519.PrivateKey, error)

GenerateKeypair crée une nouvelle paire de clés

func Sign

func Sign(privateKey ed25519.PrivateKey, message []byte) string

Sign signe un payload

func Verify

func Verify(pubKeyHex string, message []byte, signatureHex string) bool

Verify vérifie une signature (utilisé par le serveur)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL