blsgen

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenBlsKeyWithPassPhrase

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

GenBlsKeyWithPassPhrase generates bls key with passphrase and write into disk.

func LoadBlsKeyWithPassPhrase

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

LoadBlsKeyWithPassPhrase loads bls key with passphrase.

func LoadNonHumanReadableBlsKeyWithPassPhrase

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

LoadNonHumanReadableBlsKeyWithPassPhrase loads bls key with passphrase.

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