crypto

package
v0.0.0-...-79e88c3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashData

func HashData(data string) string

HashData creates a SHA256 hash of the input data

func SignMessage

func SignMessage(privateKeyHex string, message []byte) (string, error)

Sign a message using the private key

func VerifySignature

func VerifySignature(publicKeyHex, message, signatureHex string) bool

Verify a signed message using the public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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