admin

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package admin provides methods to sign message and to verify signed message

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTransaction

func DecodeTransaction(rawTx string) (*types.Transaction, error)

DecodeTransaction decode tx from hex string

func LoadKeyStore

func LoadKeyStore(keyfile, passfile string) error

LoadKeyStore load keystore

func Sign

func Sign(method string, params []string) (rawTx string, err error)

Sign sign

Types

type CallArgs

type CallArgs struct {
	Method    string   `json:"method"`
	Params    []string `json:"params"`
	Timestamp int64    `json:"timestamp"`
}

CallArgs call args

func VerifyTransaction

func VerifyTransaction(tx *types.Transaction) (*common.Address, *CallArgs, error)

VerifyTransaction get sender

Jump to

Keyboard shortcuts

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