utils

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRequestDigest

func CalculateRequestDigest(req any) string

CalculateRequestDigest creates a SHA256 digest of the request for integrity verification This function is shared between client (JWT generation) and server (JWT validation)

func DecodeP2PId

func DecodeP2PId(p2pIdString string) (p2ptypes.PeerID, error)

DecodeP2PId converts base58-encoded p2pId string to p2ptypes.PeerID

func DecodePublicKey

func DecodePublicKey(publicKeyHex string) (ed25519.PublicKey, error)

DecodePublicKey converts hex-encoded public key to ed25519.PublicKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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