Documentation ¶
Index ¶
- type RPCEnclave
- func (re *RPCEnclave) BalanceProofs() (res []*tee.BalanceProof, err error)
- func (re *RPCEnclave) Close() error
- func (re *RPCEnclave) DepositProofs() (res []*tee.DepositProof, err error)
- func (re *RPCEnclave) Init() (common.Address, []byte, error)
- func (re *RPCEnclave) ProcessBlocks(blocks ...*tee.Block) error
- func (re *RPCEnclave) ProcessTXs(txs ...*tee.Transaction) error
- func (re *RPCEnclave) Run(p tee.Parameters) error
- func (re *RPCEnclave) Shutdown()
- func (re *RPCEnclave) Stop() error
- type Server
- func (n *Server) BalanceProofs(_ Void, res *[]*tee.BalanceProof) (err error)
- func (n *Server) DepositProofs(_ Void, res *[]*tee.DepositProof) (err error)
- func (n *Server) Init(_ Void, res *TeeInitRes) (err error)
- func (n *Server) IsStopped() bool
- func (n *Server) ProcessBlocks(blocks []*tee.Block, _ *Void) error
- func (n *Server) ProcessTXs(txs *[]*tee.Transaction, _ *Void) error
- func (n *Server) Run(p tee.Parameters, _ *Void) (err error)
- func (n *Server) Shutdown(Void, *Void) error
- func (n *Server) Start(l net.Listener)
- func (n *Server) Stop(Void, *Void) error
- func (n *Server) Stopped() <-chan struct{}
- type TeeInitRes
- type Void
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCEnclave ¶
type RPCEnclave struct {
// contains filtered or unexported fields
}
RPCEnclave communicates with a rpc.Server's enclave.
func DialEnclave ¶
func DialEnclave(address string) (*RPCEnclave, error)
DialEnclave dials an enclave at the given TCP/IP address.
func NewRPCEnclave ¶
func NewRPCEnclave(conn io.ReadWriteCloser) *RPCEnclave
NewRPCEnclave communicates with a rpc.Server via conn.
func (*RPCEnclave) BalanceProofs ¶
func (re *RPCEnclave) BalanceProofs() (res []*tee.BalanceProof, err error)
func (*RPCEnclave) Close ¶
func (re *RPCEnclave) Close() error
Close closes the connection to the remote enclave.
func (*RPCEnclave) DepositProofs ¶
func (re *RPCEnclave) DepositProofs() (res []*tee.DepositProof, err error)
func (*RPCEnclave) ProcessBlocks ¶
func (re *RPCEnclave) ProcessBlocks(blocks ...*tee.Block) error
func (*RPCEnclave) ProcessTXs ¶
func (re *RPCEnclave) ProcessTXs(txs ...*tee.Transaction) error
func (*RPCEnclave) Run ¶
func (re *RPCEnclave) Run(p tee.Parameters) error
func (*RPCEnclave) Shutdown ¶
func (re *RPCEnclave) Shutdown()
func (*RPCEnclave) Stop ¶
func (re *RPCEnclave) Stop() error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a server that exposes an Enclave as a slave.
func (*Server) BalanceProofs ¶
func (n *Server) BalanceProofs(_ Void, res *[]*tee.BalanceProof) (err error)
BalanceProofs wraps Enclave.BalanceProofs.
func (*Server) DepositProofs ¶
func (n *Server) DepositProofs(_ Void, res *[]*tee.DepositProof) (err error)
DepositProofs wraps Enclave.DepositProofs.
func (*Server) Init ¶
func (n *Server) Init(_ Void, res *TeeInitRes) (err error)
Init wraps Enclave.Init.
func (*Server) ProcessBlocks ¶
ProcessBlocks wraps Enclave.ProcessBlocks.
func (*Server) ProcessTXs ¶
func (n *Server) ProcessTXs(txs *[]*tee.Transaction, _ *Void) error
ProcessTXs wraps Enclave.ProcessTX.
func (*Server) Run ¶
func (n *Server) Run(p tee.Parameters, _ *Void) (err error)
Run wraps Enclave.Run.
func (*Server) Start ¶
Start starts the server and sets its listener. Call only once. Starts listening for new connections in the background.
type TeeInitRes ¶
TeeInitRes holds the result for Enclave.Init requests.