4#include "../core/ram_payer.hpp"
5#include <eosio/crypto.hpp>
6#include <eosio/eosio.hpp>
7#include <eosio/time.hpp>
10#include "../consts.hpp"
66 uint64_t
by_expires()
const {
return static_cast<uint64_t
>(expires_at.sec_since_epoch()); }
74typedef eosio::multi_index<
75 "endorsements"_n, endorsement,
76 eosio::indexed_by<
"byissuer"_n, eosio::const_mem_fun<endorsement, uint64_t, &endorsement::by_issuer>>,
77 eosio::indexed_by<
"byexpires"_n, eosio::const_mem_fun<endorsement, uint64_t, &endorsement::by_expires>>>
contract
Definition: eosio.msig_tests.cpp:977
eosio::multi_index< "endorsements"_n, endorsement, eosio::indexed_by<"byissuer"_n, eosio::const_mem_fun< endorsement, uint64_t, &endorsement::by_issuer > >, eosio::indexed_by<"byexpires"_n, eosio::const_mem_fun< endorsement, uint64_t, &endorsement::by_expires > > > endorsements_index
Definition: table_ano_endorsements.hpp:78
Definition: eosio.msig.hpp:34
Заверение: подтверждение того, что заверяющий признаёт ключ заверения того, кого он заверяет.
Definition: table_ano_endorsements.hpp:55
name issuer
кто заверяет
Definition: table_ano_endorsements.hpp:57
uint64_t primary_key() const
Definition: table_ano_endorsements.hpp:64
uint64_t by_issuer() const
Definition: table_ano_endorsements.hpp:65
checksum256 chain_id
сеть, в которой действует заверение
Definition: table_ano_endorsements.hpp:58
name subject
кого заверяют — первичный ключ
Definition: table_ano_endorsements.hpp:56
std::string credential
подписанное заверение целиком, для проверки без сети
Definition: table_ano_endorsements.hpp:62
time_point_sec issued_at
когда выдано
Definition: table_ano_endorsements.hpp:60
public_key cert_key
ключ заверения субъекта, который признаётся
Definition: table_ano_endorsements.hpp:59
time_point_sec expires_at
когда перестаёт действовать
Definition: table_ano_endorsements.hpp:61
uint64_t by_expires() const
Definition: table_ano_endorsements.hpp:66
RAM_PAYER_CLASS(Ano::endorsement, contract)