mpc

package
v1.8.17-0...-7deff2d Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MPC_TASK_KEY_ALICE = "MPC_TASK_LIST_ALICE_KEY"
	MPC_TASK_KEY_BOB   = "MPC_TASK_LIST_BOB_KEY"
)

Variables

This section is empty.

Functions

func ExecuteMPCTx

func ExecuteMPCTx(params MPCParams) error

func ExecuteMPCTxForRedis

func ExecuteMPCTxForRedis(params MPCParams) (err error)

func InitVM

func InitVM(icepath string, httpEndpoint string)

Types

type MPCParams

type MPCParams struct {
	TaskId string
	Pubkey string
	From   common.Address
	IRAddr common.Address
	Method string
	Extra  string
}

type Redis

type Redis struct {
	Con redis.Conn
}

func NewRedis

func NewRedis(url string) (*Redis, error)

func (*Redis) RPop

func (r *Redis) RPop(key string) string

/ return data of top.

func (*Redis) RPush

func (r *Redis) RPush(key string, elem map[string]string) error

func (*Redis) Values

func (r *Redis) Values(key string) []map[string]string

Jump to

Keyboard shortcuts

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