Documentation ¶
Index ¶
- func GenBlsKeyWithPassPhrase(passphrase string) (*ffi_bls.SecretKey, string, error)
- func LoadBlsKeyWithPassPhrase(fileName, passphrase string) (*ffi_bls.SecretKey, error)
- func LoadNonHumanReadableBlsKeyWithPassPhrase(fileName, passFile string) (*ffi_bls.SecretKey, error)
- func WritePriKeyWithPassPhrase(privateKey *ffi_bls.SecretKey, passphrase string) (string, error)
- func WriteToFile(filename string, data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenBlsKeyWithPassPhrase ¶
GenBlsKeyWithPassPhrase generates bls key with passphrase and write into disk.
func LoadBlsKeyWithPassPhrase ¶
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 ¶
WritePriKeyWithPassPhrase writes encrypted key with passphrase.
func WriteToFile ¶
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.
Click to show internal directories.
Click to hide internal directories.