reading namecoin script

Post Reply
tuseroni
Posts: 8
Joined: Fri Aug 09, 2013 7:42 pm
os: linux

reading namecoin script

Post by tuseroni »

so i have this script from the block chain:
52 07 64 2f 6d 75 73 69 63 08 b2 98 3d 3d 1d 62
21 2a 01 78 6d 6d 76 a9 14 35 ca 4f a6 aa 0d fd
75 92 0e d0 f4 50 7e 90 db 0b 64 c9 e4 88 ac c0

the first one seems to add the number 2 to the stack then it adds 7 characters to the stack, then it adds 8 characters to the stack then it hits OP_NAME_NEW so at this point we have op_name_new and 3 values on the stack:
b2 98 3d 3d 1d 62 21 2a
64 2f 6d 75 73 69 63
2
my questions are:
am i reading this correctly?
what do i do with the values on the stack after i hit an OP_NAME_NEW opcode?

tuseroni
Posts: 8
Joined: Fri Aug 09, 2013 7:42 pm
os: linux

Re: reading namecoin script

Post by tuseroni »

or if someone knows of a resource for namecoin specific extensions to the bitcoin protocol, or at least the script section, that would be useful (the bitcoin spec has been very helpful so far)

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: reading namecoin script

Post by phelix »

The only way I know of is looking at the Namecoin source...
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

tuseroni
Posts: 8
Joined: Fri Aug 09, 2013 7:42 pm
os: linux

Re: reading namecoin script

Post by tuseroni »

i've been looking at it, near as i can tell the source expects there to only be 1 other thing on the stack for op_name_new so i figure i'm either reading the script wrong, it's sending it wrong, or i'm reading the source code wrong.
could you tell me if i'm reading that script right?

Post Reply