mirror of
https://github.com/monero-project/monero.git
synced 2025-12-23 00:10:57 -05:00
core: add functions to serialize base tx info
That is, information without signatures (for v1) nor range proofs and MGs (for v2)
This commit is contained in:
parent
6fd4b827fb
commit
f113b92b93
3 changed files with 33 additions and 0 deletions
|
|
@ -93,6 +93,16 @@ namespace cryptonote
|
|||
return true;
|
||||
}
|
||||
//---------------------------------------------------------------
|
||||
bool parse_and_validate_tx_base_from_blob(const blobdata& tx_blob, transaction& tx)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << tx_blob;
|
||||
binary_archive<false> ba(ss);
|
||||
bool r = tx.serialize_base(ba);
|
||||
CHECK_AND_ASSERT_MES(r, false, "Failed to parse transaction from blob");
|
||||
return true;
|
||||
}
|
||||
//---------------------------------------------------------------
|
||||
bool parse_and_validate_tx_from_blob(const blobdata& tx_blob, transaction& tx, crypto::hash& tx_hash, crypto::hash& tx_prefix_hash)
|
||||
{
|
||||
std::stringstream ss;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue