crypto

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later

SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNonce

func GenerateNonce() (string, error)

GenerateNonce generates a cryptographically secure random nonce

Types

type Ed25519Signer

type Ed25519Signer struct {
	// contains filtered or unexported fields
}

func NewEd25519Signer

func NewEd25519Signer() (*Ed25519Signer, error)

func (*Ed25519Signer) CreateSignature

func (s *Ed25519Signer) CreateSignature(docID string, user *models.User, timestamp time.Time, nonce string) (string, string, error)

func (*Ed25519Signer) GetPublicKey

func (s *Ed25519Signer) GetPublicKey() string

Jump to

Keyboard shortcuts

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