3#include <eosio/crypto.hpp>
4#include <eosio/eosio.hpp>
5#include <eosio/time.hpp>
8#include "../consts.hpp"
64 uint64_t
by_expires()
const {
return static_cast<uint64_t
>(expires_at.sec_since_epoch()); }
72typedef eosio::multi_index<
73 "endorsements"_n, endorsement,
74 eosio::indexed_by<
"byissuer"_n, eosio::const_mem_fun<endorsement, uint64_t, &endorsement::by_issuer>>,
75 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:76
Definition: eosio.msig.hpp:34
Заверение: подтверждение того, что заверяющий признаёт ключ заверения того, кого он заверяет.
Definition: table_ano_endorsements.hpp:53
name issuer
кто заверяет
Definition: table_ano_endorsements.hpp:55
uint64_t primary_key() const
Definition: table_ano_endorsements.hpp:62
uint64_t by_issuer() const
Definition: table_ano_endorsements.hpp:63
checksum256 chain_id
сеть, в которой действует заверение
Definition: table_ano_endorsements.hpp:56
name subject
кого заверяют — первичный ключ
Definition: table_ano_endorsements.hpp:54
std::string credential
подписанное заверение целиком, для проверки без сети
Definition: table_ano_endorsements.hpp:60
time_point_sec issued_at
когда выдано
Definition: table_ano_endorsements.hpp:58
public_key cert_key
ключ заверения субъекта, который признаётся
Definition: table_ano_endorsements.hpp:57
time_point_sec expires_at
когда перестаёт действовать
Definition: table_ano_endorsements.hpp:59
uint64_t by_expires() const
Definition: table_ano_endorsements.hpp:64