Documentation
¶
Index ¶
- Constants
- type AdminClient
- type Client
- func (c *Client) Close() error
- func (c *Client) DummyGetProof(cid byzcoin.InstanceID) (*byzcoin.GetProofResponse, error)
- func (c *Client) DummyUpdate(cid byzcoin.InstanceID, args byzcoin.Arguments, wait int) (*DummyReply, error)
- func (c *Client) FetchGenesisBlock(scID skipchain.SkipBlockID) (..., error)
- func (c *Client) GetState(cid byzcoin.InstanceID) (*GetStateReply, error)
- func (c *Client) InitContract(raw *core.ContractRaw, hdr *core.ContractHeader, initArgs byzcoin.Arguments, ...) (*InitContractReply, error)
- func (c *Client) InitUnit(req *InitUnitRequest) (*InitUnitReply, error)
- func (c *Client) UpdateState(args byzcoin.Arguments, execReq *core.ExecutionRequest, ...) (*UpdateStateReply, error)
- func (c *Client) WaitProof(id []byte, currRoot []byte, interval int) (*byzcoin.Proof, error)
- type DummyReply
- type DummyRequest
- type GetStateReply
- type GetStateRequest
- type InitContractReply
- type InitContractRequest
- type InitUnitReply
- type InitUnitRequest
- type Request
- type Service
- func (s *Service) DummyUpdate(req *DummyRequest) (*DummyReply, error)
- func (s *Service) GetState(req *GetStateRequest) (*GetStateReply, error)
- func (s *Service) InitContract(req *InitContractRequest) (*InitContractReply, error)
- func (s *Service) InitUnit(req *InitUnitRequest) (*InitUnitReply, error)
- func (s *Service) UpdateState(req *UpdateStateRequest) (*UpdateStateReply, error)
- type UpdateStateReply
- type UpdateStateRequest
Constants ¶
View Source
const ServiceName = "StateService"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminClient ¶
type AdminClient struct { Cl *Client GMsg *byzcoin.CreateGenesisBlock // contains filtered or unexported fields }
func NewAdminClient ¶
func NewAdminClient(byzcoin *byzcoin.Client, signer darc.Signer, gMsg *byzcoin.CreateGenesisBlock) *AdminClient
func SetupByzcoin ¶
func SetupByzcoin(r *onet.Roster, blockTime int) (*AdminClient, skipchain.SkipBlockID, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DummyGetProof ¶
func (c *Client) DummyGetProof(cid byzcoin.InstanceID) (*byzcoin.GetProofResponse, error)
func (*Client) DummyUpdate ¶
func (c *Client) DummyUpdate(cid byzcoin.InstanceID, args byzcoin.Arguments, wait int) (*DummyReply, error)
func (*Client) FetchGenesisBlock ¶
FetchGenesisBlock requires the hash of the genesis block. To retrieve, use proof.Latest.SkipchainID()
func (*Client) GetState ¶
func (c *Client) GetState(cid byzcoin.InstanceID) (*GetStateReply, error)
func (*Client) InitContract ¶
func (c *Client) InitContract(raw *core.ContractRaw, hdr *core.ContractHeader, initArgs byzcoin.Arguments, wait int) (*InitContractReply, error)
func (*Client) InitUnit ¶
func (c *Client) InitUnit(req *InitUnitRequest) (*InitUnitReply, error)
func (*Client) UpdateState ¶
func (c *Client) UpdateState(args byzcoin.Arguments, execReq *core.ExecutionRequest, inReceipts map[int]map[string]*core. OpcodeReceipt, wait int) (*UpdateStateReply, error)
type DummyReply ¶
type DummyReply struct {
TxResp *byzcoin.AddTxResponse
}
type DummyRequest ¶
type DummyRequest struct { CID byzcoin.InstanceID Input base.UpdateInput Wait int }
type GetStateReply ¶
type GetStateReply struct {
Proof core.StateProof
}
type GetStateRequest ¶
type GetStateRequest struct {
CID byzcoin.InstanceID
}
type InitContractReply ¶
type InitContractReply struct { CID byzcoin.InstanceID TxResp *byzcoin.AddTxResponse }
type InitContractRequest ¶
type InitContractRequest struct { Raw *core.ContractRaw Header *core.ContractHeader InitArgs byzcoin.Arguments Wait int }
type InitUnitReply ¶
type InitUnitReply struct{}
type InitUnitRequest ¶
type Service ¶
type Service struct { *onet.ServiceProcessor // contains filtered or unexported fields }
func (*Service) DummyUpdate ¶
func (s *Service) DummyUpdate(req *DummyRequest) (*DummyReply, error)
func (*Service) GetState ¶
func (s *Service) GetState(req *GetStateRequest) (*GetStateReply, error)
func (*Service) InitContract ¶
func (s *Service) InitContract(req *InitContractRequest) (*InitContractReply, error)
func (*Service) InitUnit ¶
func (s *Service) InitUnit(req *InitUnitRequest) (*InitUnitReply, error)
func (*Service) UpdateState ¶
func (s *Service) UpdateState(req *UpdateStateRequest) (*UpdateStateReply, error)
type UpdateStateReply ¶
type UpdateStateReply struct {
TxResp *byzcoin.AddTxResponse
}
type UpdateStateRequest ¶
type UpdateStateRequest struct { Input base.UpdateInput ExecReq core.ExecutionRequest Wait int InputReceipts map[int]map[string]*core.OpcodeReceipt }
Click to show internal directories.
Click to hide internal directories.