MCPcopy Create free account
hub / github.com/bcndev/bytecoin / get_encrypted_message_size

Method get_encrypted_message_size

src/Core/TransactionExtra.cpp:184–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184size_t cn::extra::get_encrypted_message_size(size_t size) {
185 size_t body_size = 2 * sizeof(PublicKey) + 1 + common::get_varint_data_size(size) + size;
186 return 1 + common::get_varint_data_size(body_size) + body_size;
187}
188
189std::vector<extra::EncryptedMessage> cn::extra::get_encrypted_messages(const BinaryArray &tx_extra) {
190 std::vector<extra::EncryptedMessage> field;

Callers

nothing calls this directly

Calls 1

get_varint_data_sizeFunction · 0.85

Tested by

no test coverage detected