utils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DKGShareMeta

func DKGShareMeta(keyID, orgID, algorithm, curve string, chainCodePresent bool, publicKeyFormat, derivationScheme string) coreshares.ShareMeta

DKGShareMeta builds metadata for platform share persisted after DKG.

func IsECDSA

func IsECDSA(algorithm string) bool

IsECDSA reports whether the algorithm is ECDSA or empty (default ECDSA).

func NormalizeAlgorithm

func NormalizeAlgorithm(algorithm string) string

NormalizeAlgorithm normalizes algorithm names and applies the project default.

func NormalizeKeyID

func NormalizeKeyID(raw string, emptyErr error) (string, error)

NormalizeKeyID validates and normalizes key id.

func SafePathUnderDir

func SafePathUnderDir(baseDir, path string) (string, error)

SafePathUnderDir returns an absolute cleaned path and ensures it stays under baseDir.

func ZeroBytes

func ZeroBytes(data []byte)

ZeroBytes overwrites a byte slice in place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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