In the function crypto/crypto.cpp/crypto_ops::derivation_to_scalar
monero sends the output_index to tools::write_varint(end, output_index)
.
How does it append the output_index to derivation?
In the function crypto/crypto.cpp/crypto_ops::derivation_to_scalar
monero sends the output_index to tools::write_varint(end, output_index)
.
How does it append the output_index to derivation?
end
is a pointer to the area in the struct to write the varint. That struct (as binary) holds the concatenation. The first 32 bytes are the derivation and the next bytes are the output_index as a varint. – jtgrassie Nov 05 '18 at 14:06