-
Guest6599
hello
-
Guest6599
how to calculate view tag from tx
-
Guest6599
from what "shared secret" is derived
-
sech1
Read crypto_ops::derive_view_tag and the code that calls it. If you can't read the code and learn, sorry but you're not qualified for this.
-
Guest6599
ok
-
sech1
"shared secret" = derivation, it's generated from public view key and a random number, see crypto::generate_key_derivation
-
sech1
-
Guest6599
thnx
-
Guest6599
you mean stealth address
-
Guest6599
i know to create
-
sech1
no, not a stealth address
-
sech1
derivation
-
Guest6599
derivation from stealth address
-
sech1
stealth address is calculated from derivation, spend public key and output index
-
Guest6599
ah
-
moneromooo
There are no stealth addresses in monero. You're talking about output public keys. You can't send anything to them.
-
sech1
stealth addresses aka one-time addresses
-
Guest6599
yes
-
Guest6599
var D = generate_key_derivation(A, r);
-
Guest6599
this one?
-
Guest6599
is javascript
-
Guest6599
shared secret = var A = sec_key_to_pub(a) + var r
-
Guest6599
right?
-
Guest6599
ηελλο
-
Guest6599
hello
-
Guest6599
"key": "ea3f...",
-
Guest6599
"view_tag": "a1"
-
Guest6599
view_tag must be "ea" or im wrong
-
Guest6599
or i must run siphash to have a1
-
Guest6599
im not very good on extracting c++ function from monero to use elsewhere
-
moneromooo
It is most definitely not a copy of the key's first byte.
-
moneromooo
That'd make it useless (assuming the key is the output public key).
-
Guest6599
the key is one time address
-
moneromooo
Right, that's it. You'll have some crypto to run to generate it.
-
Guest6599
i know how to generate it but i dont have function to create view_tag from one time address
-
moneromooo
But if you're not letting the monero code generate your tx in th first place, you already had to run a lot of crypto code, so a bit more should be no trouble.
-
Guest6599
to create a tx is easy done from luigi page
-
Guest6599
at the time that luigi did that page view_tag didnt exist....
-
moneromooo
Oh I see. Then I guess you find someone willing to update that page to create those view tags..
-
Guest6599
im trying to understand which function of all do hashing of one time address so we have view_tag
-
Guest6599
until now i cant...
-
Guest6599
as sech1 told i read many time crypto_ops::derive_view_tag but is not easy to understand all
-
Guest6599
sech1 i think that here view_tag is created but im not very sure
-
Guest6599
cryptonote_format_utils.cpp
-
Guest6599
anyone on how to create view tag from one time address
-
moneromooo
Did you check the view tag PR on github btw ? Might be a more english less code explanation.
-
sech1
you don't create view tag from one time address
-
sech1
you create it from derivation and output index
-
Guest6599
output index is most of time 1
-
Guest6599
what is derivation
-
Guest6599
im checking moneromooo
-
moneromooo
Should be 0 or 1 half the time on average, assuming 2 out txes. If it's mostly 1, it suggests a bug.
-
Guest6599
all this hours...
-
moneromooo
Though maybe luigi's page doesn't bother with this if it's a demo.
-
Guest6599
sech1 what is derivation
-
Guest6599
or better i need a new private tx key or i use what i have
-
sech1
derivation = shared secret = rK(v,B) in
getmonero.org/library/Zero-to-Monero-2-0-0.pdf on page 38
-
sech1
I'll charge my hourly rate of 1 XMR/hour for further consultations
-
Guest6599
in which case the output index is not 0
-
Guest6599
anyway thnx sech1
-
Guest6599
thnx again moneromooo
-
aldcor
can I cash out monero anonymosly?
-
aldcor
i assume only way it via exchange but.. exchanges require ID
-
sech1
localmonero.co is probably your best chance