blsgen

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenBLSKeyWithPassPhrase added in v1.3.7

func GenBLSKeyWithPassPhrase(passphrase string) (*ffi_bls.SecretKey, string, error)

GenBLSKeyWithPassPhrase generates bls key with passphrase and write into disk.

func LoadAwsCMKEncryptedBLSKey added in v1.2.6

func LoadAwsCMKEncryptedBLSKey(fileName, awsSettingString string) (*ffi_bls.SecretKey, error)

LoadAwsCMKEncryptedBLSKey loads aws encrypted bls key.

func LoadBLSKeyWithPassPhrase added in v1.3.7

func LoadBLSKeyWithPassPhrase(fileName, passphrase string) (*ffi_bls.SecretKey, error)

LoadBLSKeyWithPassPhrase loads bls key with passphrase.

func LoadNonHumanReadableBLSKeyWithPassPhrase added in v1.3.7

func LoadNonHumanReadableBLSKeyWithPassPhrase(fileName, passFile string) (*ffi_bls.SecretKey, error)

LoadNonHumanReadableBLSKeyWithPassPhrase loads bls key with passphrase.

func Readln added in v1.2.6

func Readln(timeout time.Duration) (string, error)

Readln reads aws configuratoin from prompt with a timeout

func WritePriKeyWithPassPhrase

func WritePriKeyWithPassPhrase(
	privateKey *ffi_bls.SecretKey, passphrase string,
) (string, error)

WritePriKeyWithPassPhrase writes encrypted key with passphrase.

func WriteToFile

func WriteToFile(filename string, data string) error

WriteToFile will print any string of text to a file safely by checking for errors and syncing at the end.

Types

This section is empty.

Jump to

Keyboard shortcuts

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