GBLEDGER. DPOS blockchain by Genesis Block based on Graphene core

GBLEDGER. DPOS blockchain by Genesis Block based on Graphene core

Содержимое

Читать на Русском

What we’ve done

The possibility of multilingual use in Logins, comments and signatures in UTF8 encoding.

The possibility of using an additional values when creating a user for the possibility of labeling.

The ability to specify dynamic values in assets. This makes possible to interact in various situations, including for storing of NFT tags.

Customization of the transfer function with the possibility of using additional fields, which allows to transfer technical data during the transfer operation.

Blockchain modifications

bool is_valid_name( const string& name )
{ try {
const size_t len = name.size();

return true;
if( len < GRAPHENE_MIN_ACCOUNT_NAME_LENGTH ) { return false; } if( len > GRAPHENE_MAX_ACCOUNT_NAME_LENGTH )
{
return false;
}

size_t begin = 0;
while( true )
{
size_t end = name.find_first_of( ‘.’, begin );
if( end == std::string::npos )
end = len;
if( (end — begin) < GRAPHENE_MIN_ACCOUNT_NAME_LENGTH ) { return false; } switch( name[begin] ) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'а': case 'б': case 'в': case 'г': case 'д': case 'е': case 'ё': case 'ж': case 'з': case 'и': case 'к': case 'л': case 'м': case 'н': case 'о': case 'п': case 'р': case 'с': case 'т': case 'у': case 'ф': case 'х': case 'ц': case 'ш': case 'щ': case 'ь': case 'ъ': break; default: return false; } switch( name[end-1] ) { case 'a': case 'b': case 'c': case 'd': case 'e': case 'f': case 'g': case 'h': case 'i': case 'j': case 'k': case 'l': case 'm': case 'n': case 'o': case 'p': case 'q': case 'r': case 's': case 't': case 'u': case 'v': case 'w': case 'x': case 'y': case 'z': case 'а': case 'б': case 'в': case 'г': case 'д': case 'е': case 'ё': case 'ж': case 'з': case 'и': case 'к': case 'л': case 'м': case 'н': case 'о': case 'п': case 'р': case 'с': case 'т': case 'у': case 'ф': case 'х': case 'ц': case 'ш': case 'щ': case 'ь': case 'ъ': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': break; default: return false; } for( size_t i=begin+1; i whitelist_authorities;
/// A set of accounts which maintain blacklists to consult for this asset. If flags & white_list is set,
/// an account may only send, receive, trade, etc. in this asset if none of these accounts appears in
/// its account_object::blacklisting_accounts field. If the account is blacklisted, it may not transact in
/// this asset even if it is also whitelisted.
flat_set blacklist_authorities;

/** defines the assets that this asset may be traded against in the market */
flat_set whitelist_markets;
/** defines the assets that this asset may not be traded against in the market, must not overlap whitelist */
flat_set blacklist_markets;

/**
* data that describes the meaning/purpose of this asset, fee will be charged proportional to
* size of description.
*/
string description;
/**
* Container with dynamic content. Optional.
*/
string asset_extended_options;

extensions_type extensions;

/// Perform internal consistency checks.
/// @throws fc::exception if any check fails
void validate()const;
};

struct asset_create_operation : public base_operation
{
struct fee_parameters_type {
uint64_t symbol3 = 500000 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint64_t symbol4 = 300000 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint64_t long_symbol = 5000 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint32_t price_per_kbyte = 10; /// only required for large memos.
};

asset fee;
/// This account must sign and pay the fee for this operation. Later, this account may update the asset
account_id_type issuer;
/// The ticker symbol of this asset
string symbol;
/// Number of digits to the right of decimal point, must be less than or equal to 12
uint8_t precision = 0;

/// Options common to all assets.
///
/// @note common_options.core_exchange_rate technically needs to store the asset ID of this new asset. Since this
/// ID is not known at the time this operation is created, create this price as though the new asset has instance
/// ID 1, and the chain will overwrite it with the new asset’s ID.
asset_options common_options;
/// Options only available for BitAssets. MUST be non-null if and only if the @ref market_issued flag is set in
/// common_options.flags
optional bitasset_opts;
/// For BitAssets, set this to true if the asset implements a @ref prediction_market; false otherwise
bool is_prediction_market = false;
extensions_type extensions;

/**
* Container with dynamic content. Optional.
*/
string asset_extended_options;

account_id_type fee_payer()const { return issuer; }
void validate()const;
share_type calculate_fee( const fee_parameters_type& k )const;
};

struct transfer_unify_operation : public base_operation
{
struct fee_parameters_type {
uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint32_t price_per_kbyte = 10 * GRAPHENE_BLOCKCHAIN_PRECISION; /// only required for large memos.
};

asset fee;
account_id_type from;
account_id_type to;
asset amount;

/// User provided data encrypted to the memo key of the «to» account
optional memo;
extensions_type extensions;
subdata_type types;

account_id_type fee_payer()const { return from; }
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
};

struct transfer_operation : public base_operation
{
struct fee_parameters_type {
uint64_t fee = 20 * GRAPHENE_BLOCKCHAIN_PRECISION;
uint32_t price_per_kbyte = 10 * GRAPHENE_BLOCKCHAIN_PRECISION; /// only required for large memos.
};

asset fee;
/// Account to transfer asset from
account_id_type from;
/// Account to transfer asset to
account_id_type to;
/// The amount of asset to transfer from @ref from to @ref to
asset amount;

/// User provided data encrypted to the memo key of the «to» account
optional memo;
extensions_type extensions;

string op_hidden_data;

account_id_type fee_payer()const { return from; }
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
};

struct account_options
{
/// The memo key is the key this account will typically use to encrypt/sign transaction memos and other non-
/// validated account activities. This field is here to prevent confusion if the active authority has zero or
/// multiple keys in it.
public_key_type memo_key;
/// If this field is set to an account ID other than GRAPHENE_PROXY_TO_SELF_ACCOUNT,
/// then this account’s votes will be ignored; its stake
/// will be counted as voting for the referenced account’s selected votes instead.
account_id_type voting_account = GRAPHENE_PROXY_TO_SELF_ACCOUNT;

/// The number of active witnesses this account votes the blockchain should appoint
/// Must not exceed the actual number of witnesses voted for in @ref votes
uint16_t num_witness = 0;
/// The number of active committee members this account votes the blockchain should appoint
/// Must not exceed the actual number of committee members voted for in @ref votes
uint16_t num_committee = 0;
/// This is the list of vote IDs this account votes for. The weight of these votes is determined by this
/// account’s balance of core asset.
string account_dynamic_options;

flat_set votes;
extensions_type extensions;

/// Whether this account is voting
inline bool is_voting() const
{
return ( voting_account != GRAPHENE_PROXY_TO_SELF_ACCOUNT || !votes.empty() );
}

void validate()const;
};

Types of operations within the network

transfer
Has the ID 0. Responsible for sending funds between user A and B.

limit_order_create
Has the ID 1. Responsible for creating an exchange on the exchange.

limit_order_cancel
Has the ID 2. Responsible for canceling the order (created on the limit_order_create step)

call_order_update
Has the ID 3. The operation is responsible for executing the order (full exchange or partial exchange)

fill_order
Has the ID 4.The operation is responsible for crediting the purchased coin.

account_create
ID 5. The operation is responsible for creating an account.

account_update
ID 6. The operation is performed when updating the user settings

account_whitelist
ID 7. Saving settings to the whitelist

account_upgrade
ID 8. How much it costs to get a life status (lifetime status)

asset_create
ID 10. Creating an asset

asset_update
ID 11. Editing asset parameters

asset_update_bitasset
ID 12. Updating coins with smart parameters enabled

asset_update_feed_producers
ID 13. Updating information about the price providers for coins

asset_issue
ID 14. Asset issue (coin accrual)

asset_fund_fee_pool
ID 16. Withdrawal of coins from the commission pool.

asset_publish_feed
ID 19. Sending the coin price (notifying the system about the coin’s rate for a smart contract)

witness_create
ID 20. Creating a validator

witness_update
ID 21. Validator’ Data Update

proposal_create
ID 22. Creating an offer

proposal_update
ID 23. Updating offer data

proposal_delete
ID 24. Deleting an offer

transfer_to_blind
ID 39. Operation of sending funds from a public to a stealth account

blind_transfer
ID 40. Sending from a hidden stealth address to a public account

>>> О КОМПАНИИ GENESIS BLOCK:

Компания Genesis Block – международный системный интегратор и разработчик финтех-решений, систем платежей и процессинга, систем биллинга и программных решений для ЖКХ, блокчейн-решений, веб-сайтов, порталов и мобильных приложений. Под брендом Genesis Block объединены компании, разработчики и сервисы, работающие на рынке с 2010 г. Качество наших сервисов подтверждается международной сертификацией по ISO. Входим в российскую ассоциацию программного обеспечения НП РУССОФТ. Genesis Block является постоянным главным спонсором и спикером на международных банковских и финансовых конференциях IFIN и ВБА (Вся Банковская Автоматизация). Аккредитованная IT-компания Минкомсвязи. Является членом РАКИБ (Российская Ассоциация Криптовалют и Блокчейна). С 2020 компания Genesis Block ведет собственную авторскую передачу на деловом телевидении ПРОБИЗНЕС. Являемся авторизованным официальным интегратором крупнейшей BPM / CRM системы Terrasoft.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *