keyshards

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAndCombine

func DecryptAndCombine(shards [][]byte, getSecretKey GetSecretKeyFn) ([]byte, error)

DecryptAndCombine Decrypt the shards and assemble them

func ShardAndEncrypt

func ShardAndEncrypt(key []byte, totalShares, threshold int, getSecretKey GetSecretKeyFn) ([][]byte, error)

ShardAndEncrypt Shard and encrypt the key, and return the encrypted sharded HEX

Types

type GetSecretKeyFn

type GetSecretKeyFn = func() []byte

Jump to

Keyboard shortcuts

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