dpki

package
v1.4.2-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// following prefix should be unique in DPKI contract, not global
	PovContractStatePrefixPKDPS = byte(1) // publish state
	PovContractStatePrefixPKDVS = byte(2) // verifier state
)

Variables

This section is empty.

Functions

func PovGetPublishState

func PovGetPublishState(csdb *statedb.PovContractStateDB, rawKey []byte) (*types.PovPublishState, error)

func PovGetVerifierState

func PovGetVerifierState(csdb *statedb.PovContractStateDB, rawKey []byte) (*types.PovVerifierState, error)

func PovSetPublishState

func PovSetPublishState(csdb *statedb.PovContractStateDB, rawKey []byte, ps *types.PovPublishState) error

func PovSetVerifierState

func PovSetVerifierState(csdb *statedb.PovContractStateDB, rawKey []byte, ps *types.PovVerifierState) error

Types

type PKDRewardInfo

type PKDRewardInfo struct {
	Beneficial   types.Address `json:"beneficial"`
	EndHeight    uint64        `json:"endHeight"`
	RewardAmount *big.Int      `json:"rewardAmount"`
	Timestamp    int64         `json:"timestamp"`
}

func NewPKDRewardInfo

func NewPKDRewardInfo() *PKDRewardInfo

type PKDRewardParam

type PKDRewardParam struct {
	Account      types.Address `json:"account"`
	Beneficial   types.Address `json:"beneficial"`
	EndHeight    uint64        `json:"endHeight"`
	RewardAmount *big.Int      `json:"rewardAmount"`
}

func NewPKDRewardParam

func NewPKDRewardParam() *PKDRewardParam

Jump to

Keyboard shortcuts

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