1
0
Fork 0
forked from lthn/blockchain

changing signature scheme for ado

This commit is contained in:
cryptozoidberg 2024-02-13 15:07:55 +04:00
parent 10c0ee541a
commit 9fac4c8f49
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
3 changed files with 5 additions and 1 deletions

View file

@ -775,7 +775,6 @@ namespace currency
uint8_t operation_type = ASSET_DESCRIPTOR_OPERATION_UNDEFINED;
asset_descriptor_base descriptor;
crypto::public_key amount_commitment; // premultiplied by 1/8
boost::optional<crypto::signature> opt_proof; // operation proof - for update/emit
boost::optional<crypto::public_key> opt_asset_id; // target asset_id - for update/emit
uint8_t verion = ASSET_DESCRIPTOR_OPERATION_STRUCTURE_VER;

View file

@ -2248,6 +2248,8 @@ namespace currency
}
if (ftp.pevents_dispatcher) ftp.pevents_dispatcher->RAISE_DEBUG_EVENT(wde_construct_tx_handle_asset_descriptor_operation_before_seal{ &ado });
ftp.need_to_generate_ado_proof = true;
/*
//seal it with owners signature
crypto::signature sig = currency::null_sig;
crypto::hash h = get_signature_hash_for_asset_operation(ado)
@ -2264,6 +2266,7 @@ namespace currency
crypto::generate_signature(h, pub_k, account_keys.spend_secret_key, sig);
}
ado.opt_proof = sig;
*/
}
return true;
}

View file

@ -168,6 +168,7 @@ namespace currency
//crypto::secret_key asset_control_key = currency::null_skey;
crypto::public_key ado_current_asset_owner = null_pkey;
thirdparty_sign_handler* pthirdparty_sign_handler = nullptr;
bool need_to_generate_ado_proof = false;
BEGIN_SERIALIZE_OBJECT()
@ -191,6 +192,7 @@ namespace currency
FIELD(gen_context);
}
FIELD(ado_current_asset_owner)
FIELD(need_to_generate_ado_proof)
END_SERIALIZE()
};