Documentation
¶
Index ¶
- func DKGShareMeta(keyID, orgID, algorithm, curve string, chainCodePresent bool, ...) coreshares.ShareMeta
- func IsECDSA(algorithm string) bool
- func NormalizeAlgorithm(algorithm string) string
- func NormalizeKeyID(raw string, emptyErr error) (string, error)
- func SafePathUnderDir(baseDir, path string) (string, error)
- func ZeroBytes(data []byte)
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 NormalizeAlgorithm ¶
NormalizeAlgorithm normalizes algorithm names and applies the project default.
func NormalizeKeyID ¶
NormalizeKeyID validates and normalizes key id.
func SafePathUnderDir ¶
SafePathUnderDir returns an absolute cleaned path and ensures it stays under baseDir.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.