shamir

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	FetchSecretShare(subject string) ([]byte, error)
}

Provider provides shamir secret share.

func CreateProvider

func CreateProvider(c *ProviderConfig) Provider

CreateProvider returns new shamir secret provider.

type ProviderConfig

type ProviderConfig struct {
	HTTPClient      httpClient
	AuthServerURL   string
	AuthServerToken string
}

ProviderConfig is a configuration for shamir Provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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