Versions in this module Expand all Collapse all v0 v0.0.2 Dec 23, 2024 v0.0.1 Jul 13, 2024 Changes in this version + type AttackerCommand int + const CMD_ABORT + const CMD_CONTINUE + const CMD_EXIT + const CMD_NULL + const CMD_RETURN + const CMD_ROLE_TO_ATTACKER + const CMD_ROLE_TO_NORMAL + const CMD_SKIP + const CMD_UPDATE_STATE + const CMP_DELAY_BROAD_CAST + type AttackerResponse struct + Cmd AttackerCommand + Result string + type Client struct + func Dial(rawurl string, valIdx int) (*Client, error) + func DialContext(ctx context.Context, rawurl string, valIdx int) (*Client, error) + func NewClient(c *rpc.Client, valIdx int) *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)