Documentation ¶
Index ¶
- type AttackerCommand
- type AttackerResponse
- type Client
- func (ec *Client) AttestAfterBroadCast(ctx context.Context, slot uint64) (AttackerResponse, error)
- func (ec *Client) AttestAfterPropose(ctx context.Context, slot uint64, pubkey string, ...) (AttackerResponse, error)
- func (ec *Client) AttestAfterSign(ctx context.Context, slot uint64, pubkey string, ...) (AttackerResponse, error)
- func (ec *Client) AttestBeforeBroadCast(ctx context.Context, slot uint64) (AttackerResponse, error)
- func (ec *Client) AttestBeforePropose(ctx context.Context, slot uint64, pubkey string, ...) (AttackerResponse, error)
- func (ec *Client) AttestBeforeSign(ctx context.Context, slot uint64, pubkey string, attestDataBase64 string) (AttackerResponse, error)
- func (ec *Client) BlockAfterBroadCast(ctx context.Context, slot uint64) (AttackerResponse, error)
- func (ec *Client) BlockAfterPropose(ctx context.Context, slot uint64, pubkey string, siginedBlockDataBase64 string) (AttackerResponse, error)
- func (ec *Client) BlockAfterSign(ctx context.Context, slot uint64, pubkey string, siginedBlockDataBase64 string) (AttackerResponse, error)
- func (ec *Client) BlockBeforeBroadCast(ctx context.Context, slot uint64) (AttackerResponse, error)
- func (ec *Client) BlockBeforePropose(ctx context.Context, slot uint64, pubkey string, siginedBlockDataBase64 string) (AttackerResponse, error)
- func (ec *Client) BlockBeforeSign(ctx context.Context, slot uint64, pubkey string, blockDataBase64 string) (AttackerResponse, error)
- func (ec *Client) BlockGetNewParentRoot(ctx context.Context, slot uint64, pubkey string, parentRoot string) (AttackerResponse, error)
- func (ec *Client) Client() *rpc.Client
- func (ec *Client) Close()
- func (ec *Client) DelayForReceiveBlock(ctx context.Context, slot uint64) (AttackerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttackerCommand ¶
type AttackerCommand int
const ( CMD_NULL AttackerCommand = iota CMD_CONTINUE CMD_RETURN CMD_ABORT CMD_SKIP CMD_ROLE_TO_NORMAL // 角色转换为普通节点 CMD_ROLE_TO_ATTACKER // 角色转换为攻击者 CMD_EXIT CMD_UPDATE_STATE CMP_DELAY_BROAD_CAST )
type AttackerResponse ¶
type AttackerResponse struct { Cmd AttackerCommand `json:"cmd"` Result string `json:"result"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines typed wrappers for the Ethereum RPC API.
func DialContext ¶
DialContext connects a client to the given URL with context.
func (*Client) AttestAfterBroadCast ¶
func (*Client) AttestAfterPropose ¶
func (*Client) AttestAfterSign ¶
func (*Client) AttestBeforeBroadCast ¶
func (*Client) AttestBeforePropose ¶
func (*Client) AttestBeforeSign ¶
func (*Client) BlockAfterBroadCast ¶
func (*Client) BlockAfterPropose ¶
func (*Client) BlockAfterSign ¶
func (*Client) BlockBeforeBroadCast ¶
func (*Client) BlockBeforePropose ¶
func (*Client) BlockBeforeSign ¶
func (*Client) BlockGetNewParentRoot ¶
func (*Client) DelayForReceiveBlock ¶
Click to show internal directories.
Click to hide internal directories.