apiutil

package
v0.0.0-...-0aeaaa6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDIDKey

func CreateDIDKey(ed25519PublicKeyBase64 string, x25519PublicKeyBase64 string) (*did.MailioKey, error)

CreateDIDKey creates a new DID key

func GetIPFromContext

func GetIPFromContext(c *gin.Context) (*string, error)

func ValidateMailioKeys

func ValidateMailioKeys(email string, ed25519PublicKey string, challengeNonce string, mailioAddress string) error

Validate the mailio keys email: email address ed25519PublicKey: ed25519 public key challengeNonce: challenge nonce mailioAddress: mailio address returns error if validation fails (ErrInvalidPublicKey, ErrSignatureInvalid, ErrInvalidMailioAddress)

Types

This section is empty.

Jump to

Keyboard shortcuts

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