forked from lthn/blockchain
changing signature scheme for ado
This commit is contained in:
parent
268632d6da
commit
66ffef4080
3 changed files with 5 additions and 1 deletions
|
|
@ -775,7 +775,6 @@ namespace currency
|
||||||
uint8_t operation_type = ASSET_DESCRIPTOR_OPERATION_UNDEFINED;
|
uint8_t operation_type = ASSET_DESCRIPTOR_OPERATION_UNDEFINED;
|
||||||
asset_descriptor_base descriptor;
|
asset_descriptor_base descriptor;
|
||||||
crypto::public_key amount_commitment; // premultiplied by 1/8
|
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
|
boost::optional<crypto::public_key> opt_asset_id; // target asset_id - for update/emit
|
||||||
uint8_t verion = ASSET_DESCRIPTOR_OPERATION_STRUCTURE_VER;
|
uint8_t verion = ASSET_DESCRIPTOR_OPERATION_STRUCTURE_VER;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 });
|
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
|
//seal it with owners signature
|
||||||
crypto::signature sig = currency::null_sig;
|
crypto::signature sig = currency::null_sig;
|
||||||
crypto::hash h = get_signature_hash_for_asset_operation(ado)
|
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);
|
crypto::generate_signature(h, pub_k, account_keys.spend_secret_key, sig);
|
||||||
}
|
}
|
||||||
ado.opt_proof = sig;
|
ado.opt_proof = sig;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -168,6 +168,7 @@ namespace currency
|
||||||
//crypto::secret_key asset_control_key = currency::null_skey;
|
//crypto::secret_key asset_control_key = currency::null_skey;
|
||||||
crypto::public_key ado_current_asset_owner = null_pkey;
|
crypto::public_key ado_current_asset_owner = null_pkey;
|
||||||
thirdparty_sign_handler* pthirdparty_sign_handler = nullptr;
|
thirdparty_sign_handler* pthirdparty_sign_handler = nullptr;
|
||||||
|
bool need_to_generate_ado_proof = false;
|
||||||
|
|
||||||
|
|
||||||
BEGIN_SERIALIZE_OBJECT()
|
BEGIN_SERIALIZE_OBJECT()
|
||||||
|
|
@ -191,6 +192,7 @@ namespace currency
|
||||||
FIELD(gen_context);
|
FIELD(gen_context);
|
||||||
}
|
}
|
||||||
FIELD(ado_current_asset_owner)
|
FIELD(ado_current_asset_owner)
|
||||||
|
FIELD(need_to_generate_ado_proof)
|
||||||
END_SERIALIZE()
|
END_SERIALIZE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue