utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSignedTxAndValidate

func GenerateSignedTxAndValidate(ops []interface{}, signers ...*wallet.PrivAccount) (*prototype.SignedTransaction, error)

func GenerateUUID

func GenerateUUID(content string) uint64

func GetPassphrase

func GetPassphrase(reader PasswordReader) (string, error)

Types

type MyPasswordReader

type MyPasswordReader struct{}

func (MyPasswordReader) ReadPassword

func (pr MyPasswordReader) ReadPassword(fd int) ([]byte, error)

type PasswordReader

type PasswordReader interface {
	ReadPassword(fd int) ([]byte, error)
}

Directories

Path Synopsis
Package mock_utils is a generated GoMock package.
Package mock_utils is a generated GoMock package.

Jump to

Keyboard shortcuts

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