otprn

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OtprnNum = new(uint64)
)

Functions

This section is empty.

Types

type Otprn

type Otprn struct {
	Num       uint64
	Rand      [20]byte
	Cminer    uint64
	Mminer    uint64
	Epoch     uint64
	Fee       uint64
	TimeStamp uint64
}

func DecodeOtprn added in v0.6.6

func DecodeOtprn(otpByte []byte) (*Otprn, error)

func New

func New(Cminer uint64, Miner uint64, Epoch uint64, Fee uint64) *Otprn

func (*Otprn) EncodeOtprn added in v0.6.6

func (otprn *Otprn) EncodeOtprn() ([]byte, error)

func (*Otprn) HashOtprn

func (otprn *Otprn) HashOtprn() common.Hash

func (*Otprn) SignOtprn

func (otprn *Otprn) SignOtprn(account accounts.Account, hash common.Hash, ks *keystore.KeyStore) ([]byte, error)

Jump to

Keyboard shortcuts

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