security

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto interface {
	GeneratePrivateKey() (string, error)
	GenerateID(prvKey string) (string, error)
	GenerateSignature(data string, prvKey string) (string, error)
	GenerateHash(data string) string
	RecoverID(data string, signature string) (string, error)
}

type Validator

type Validator interface {
	RequireServerOwner(recoveredID string, serverID string) error
	RequireColonyOwner(recoveredID string, colonyID string) error
	RequireMembership(recoveredID string, colonyID string, approved bool) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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