common

package
v0.0.0-...-3e63800 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WalletPassword string

Functions

func ECRecover

func ECRecover(msg string, signature string) (string, error)

recover takes a message and returns the address of the sender

func GetEthereumRPCConn

func GetEthereumRPCConn() (*rpc.Client, error)

func GetKeystorePath

func GetKeystorePath(username string) string

func InstantiateLookupTable

func InstantiateLookupTable() *leveldb.DB

instantiates the lookup table

func NodeExec

func NodeExec(args ...string) *exec.Cmd

NodeExec calls node and abstracts away figuring out where the node binary is located

func PrefixPatientUID

func PrefixPatientUID(input string) string

func Sign

func Sign(msg string, account string) (string, error)

Sign takes a hashed message and signs it

Types

type Document

type Document struct {
	DocumentID    int    `json:"DocumentID"`
	PatientID     string `json:"patientid"`
	PracticeID    string `json:"practiceid"`
	RecvdDateTime string `json:"recvddatetime"`
	DocDateTime   string `json:"docdatetime"`
}

type Documents

type Documents []Document

type NoArgs

type NoArgs struct {
}

type Patient

type Patient struct {
	PatientID  int    `json:"patientid"`
	EthAddress string `json:"ethaddress"`
}

type Patients

type Patients []Patient

Jump to

Keyboard shortcuts

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