Security Group

Defines C++ security group API.

Functions

Functions Documentation

function add_security_group_participants

int64_t eosio::add_security_group_participants(
    const std::set< name > & participants
)

Propose new participants to the security group.

Parameters:

  • participants - the participants.

Returns:

-1 if proposing a new security group was unsuccessful, otherwise returns 0.

function remove_security_group_participants

int64_t eosio::remove_security_group_participants(
    const std::set< name > & participants
)

Propose to remove participants from the security group. å

Parameters:

  • participants - the participants. å

Returns:

-1 if proposing a new security group was unsuccessful, otherwise returns 0.

function in_active_security_group

bool eosio::in_active_security_group(
    const std::set< name > & participants
)

Check if the specified accounts are all in the active security group.

Parameters:

  • participants - the participants.

Returns:

Returns true if the specified accounts are all in the active security group.

function get_active_security_group

security_group eosio::get_active_security_group()

Gets the active security group

Parameters:

  • packed_security_group - the buffer containing the packed security_group.

Returns:

Returns the size required in the buffer (if the buffer is too small, nothing is written).