-
Guest6599
hello
-
Guest6599
what variant type has v16 outputs
-
Guest6599
there is a line "from v15, require outputs have view tags"
-
Guest6599
and my output is not acceptable because of wrong variant type
-
Guest6599
variant type is 2
-
moneromooo
Variant as in... ringct signature version ?
-
sech1
Guest6599 type 3
-
sech1
-
Guest6599
i insert type 3 but output was not acceptable
-
moneromooo
You're sure your network has forked by then ?
-
Guest6599
no is new network and v14 output was acceptable with variant v2 but v16 dont work with variant v2 or v3
-
Guest6599
moneromooo "Variant as in... ringct signature version "
-
Guest6599
what do u mean
-
Guest6599
i must insert right ringct version too?
-
sech1
You need to also add a view tag to each output of type 3
-
sech1
ringct has nothing to do with this
-
Guest6599
where i add this
-
sech1
in your code
-
sech1
presumably
-
sech1
you have some code, right?
-
Guest6599
yes
-
sech1
view tag is added right after the pub key in an output
-
sech1
-
moneromooo
Ignore what I said, I did not know what you were talking about at the time.
-
sech1
it's hard to help you without seeing the code, right now I'm just doing wild guesses of what you actually need
-
moneromooo
Also, "dont work" is no good. Give error messages if any, etc. Details.
-
Guest6599
in which file view tag is added
-
Guest6599
monero code is huge
-
Guest6599
blockchain,cryptonote_format_utils.cpp etc
-
sech1
we're not going to do your homework for you
-
moneromooo
git show XXX, with XXX being the hash of the commit which added view tags.
-
moneromooo
git log to find it.
-
Guest6599
wow moneromooo
-
Guest6599
u are so straight to the point
-
plowsof[m]
ASMR moo and sech do your homework
-
plowsof[m]
while ooo123 reviews it
-
merope
Throw some lofi in the background and you've got yourself a hit
-
plowsof[m]
lol :D
-
Guest6599
-
Guest6599
this line is throwning error
-
Guest6599
with v14 everything is ok
-
Guest6599
i cant understant where view tag is added
-
moneromooo
Is your tx created by the monero software, or do you create it yourself ?
-
Guest6599
myself
-
Guest6599
with v14 works
-
Guest6599
so v16 tx need smth more except varint type
-
moneromooo
Looking at the code, the format shuild be the same as currently, just with one extra byte at the end.
-
moneromooo
Not varint. Just a byte.
-
Guest6599
to the end of tx?
-
Guest6599
or to the end of varint
-
moneromooo
End of the output. So right after the output pubkey.
-
Guest6599
ok i give a try right now
-
moneromooo
See "struct txout_to_tagged_key"
-
Guest6599
moneromooo yes one extra byte was needed
-
Guest6599
thank you.
-
sech1
Did you fix it properly or just stuffed some random byte there?
-
sech1
View tag must be calculated correctly, or wallets will not see this transaction
-
Guest6599
00
-
Guest6599
what i must add?
-
sech1
0 byte? Can you tell me what software/service you're working on, so I'll never use it again :D
-
Guest6599
is a new blockchain that start from v16
-
sech1
did you look at
monero-project/monero #8061 ? The code to calculate view tag is there
-
hyc
lol.... new blockchain, so yeah, no one will ever use it
-
Guest6599
how do u know hyc?
-
hyc
correction: nobody with half a brain cell will ever use it.
-
hyc
because it's clear that nobody will be able to maintain it.
-
plowsof[m]
Is Guest a Monero Classic dev?
-
Guest6599
!no
-
Guest6599
im not a dev
-
Guest6599
im someone experimenting with the best crypto code ever made
-
Guest6599
if view tag is not calculated correctly this doesn't mean that wont be accept from wallet
-
Guest6599
print_block print the right tx
-
moneromooo
The view tag is a way for hte wallet to "quickly" (enough) reject txes. If you put a wrong one, it means it's got a 255/256 chance of being wrongly thought to not be for the scanning wallet if it actually is.
-
moneromooo
It's still in the chain, but the wallet will not fully decode it because it doesn't realize it's to it.
-
hyc
he never even thanked you for the explanation...
-
Guest6599
moneromooo thnx for wallet explanation too
-
Guest6599
hyc i thanked before moneromooo so is unnecessary what u wrote
-
Guest6599
anyway
-
moneromooo
np
-
Guest6599
sech1 what is "sender-receiver shared secret "
-
Guest6599
im reading view tags but i cant understand " view tag is derived from the sender-receiver shared secret (view tag = first byte of hash(shared secret)"
-
Guest6599
how to calculate view tag
-
Guest6599
anyone knows whatis "sender-receiver shared secret "