Unit ID
xupme85bFPpnBoqArXJ/9v3E4hTtQAPRwvtlVbkNoDo=
Received
11.08.2019 18:59:01
Confirmation delay (full node)
3 minutes 51 seconds
Confirmation delay (light node)
7 minutes 50 seconds
Authors
3ECXZTL4BWF2T3PM5HHRDNTLUZJTUC5M
Definition
Messages
Data
ad: evaluated user: AGFB2ZNL4GEO2GEY4YSKNZX6U7XUGGPG
ev: 1
AA responses
From 7BXG4BBWMMVSLO3PB2ISMKHKBHBWKJNL
  • Bounced
  • Response unit:
  • Response: { "error": "formula { // constants $i_domain_creation_fee = 500000; // 500,000.0 bytes $i_requesting_reputation_fee = 10000; // 10,000.0 bytes $i_reward_pourcentage = 1; // 1% of the balance for an evalution of an attested address $i_symbolic_reward= 10; // for evaluation of not attested address $i_evaluation_delay = 2*24*60*60; // 1 days $default_domain = 'base'; $default_attestor = '35IT3ZYKEPQSCXG2F7A7KWNRAD3SZXN4'; //'UOYYSPEE7UUW3KJAB5F4Y4AWMYMDDB4Y'; // official attestor $reputation_word_hash = '556ec7485db6ec2596054ef0374f50e4dfbcc3962c879e9464cdca80ebdfc34e'; $evaluation_count_word_hash = '039adc37a247cfd497f19d106479ac55aab96db3ae74114c74edf8143e1eb29e'; // variables directly from triggering transaction default $user = trigger.address; // Attested user (if evaluator) $evaluated_address = trigger.data.adress otherwise trigger.data.ad; $domain = trigger.data.domain otherwise trigger.data.do otherwise $default_domain; // Evaluation domain $evaluation = trigger.data.evaluation otherwise trigger.data.ev; // Evaluation: 0-5 or ? $attestor = trigger.data.attestor otherwise trigger.data.at otherwise $default_attestor; // deductions $is_requesting = $evaluation == '?'; $is_contributing = (!$is_requesting)? $evaluation >= 0 and $evaluation <= 5 : false; $attested_default_domain = $domain == $default_domain and $attestor == $default_attestor; // Preliminary checks if(!$is_requesting and !$is_contributing) bounce('Sorry, You have to specify a \'evaluation\' field in the data section. Use \'0\' to \'5\' to evaluate an address or use \'?\' to request the reputation of an address.'); // (money - bounce fee) is return automatically if(!$evaluated_address) bounce('Sorry, You have to specify which address you want to find reputation for. Please add an \'address\' field in the data section.'); // hashing to avoid to store the reputation openely in the dag (euh why?) $user_hash = sha256($user); $evaluated_address_hash = sha256($evaluated_address); $domain_hash = sha256($domain); $attestor_hash = sha256($attestor); $attested_domain = sha256($domain_hash and $attested_domain); $evaluation_hash = sha256($attested_domain and $user_hash and $evaluated_address_hash); $reputation_hash = sha256($attested_domain and $evaluated_address_hash and $reputation_word_hash); $evaluation_count_hash = sha256($attested_domain and $evaluated_address_hash and $evaluation_count_wordhash); // confuse attested address in the dag to avoid to gather information for free // is it even possible ? $evaluated_address_confused = $evaluated_address(2); // Attestation checks $evaluated_is_attested = attestation[[attestors=$attestor, address=$evaluated_address, ifnone=0]]; $user_is_attested = attestation[[attestors=$attestor, address=$evaluated_address, ifnone=0]]; // state variable checks $attested_domain_exist = var[$attested_domain]; $balance_in_attestor_scope = var[$attestor_hash]; $reputation = var[$reputation_hash] otherwise 0; $eval_count = var[$evaluation_count_hash] otherwise 0; $is_re_evaluation = var[$evaluation_hash]; // this return false if the var doesn't exist $previous_evaluation = var[$evaluation_hash] otherwise 0; // Fee checks $fee_received = trigger.output[[asset=base]].amount; $creation_fee_received = $fee_received > $i_domain_creation_fee; $requesting_fee_received = $fee_received > $i_requesting_reputation_fee; } failed: bad address in attestation: evaluated user: AGFB2ZNL4GEO2GEY4YSKNZX6U7XUGGPG" }
Technical information
Fees:
700 bytes
(400 headers, 300 payload)
Level:994528
Witnessed level:994520
Main chain index:993347
Latest included mc index:993346
Status:stable/confirmed/final