Bitcoin Forum
November 12, 2019, 01:01:21 PM *
News: 10th anniversary art contest
 
   Home   Help Search Login Register More  
Pages: « 1 ... 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 [1814] 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 ... 2565 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2756263 times)
jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1090


View Profile WWW
February 22, 2014, 07:08:00 AM
 #36261

CfB (or anybody that knows)

issue_getTransactionBytes returns the raw bytes of a transaction. I am interested in finding out at what offset the bytes for an AM start. It appears that the fields before the AM message are variable length, so there isnt an easy way to find the bytes. Is it safe to assume that the AM bytes are at the end of the message? If so, and I write the length of it at the very end, I could find it.

If I have to do issue_getTransaction to add up the length of fields, there is no point, since the "message":"<AM>" is already there. What is the point of issue_getTransactionBytes?

James


Code:
internal static Transaction GetTransaction(BinaryReader buffer)
        {
            var type = buffer.ReadByte();
            var subtype = buffer.ReadByte();
            var timestamp = buffer.ReadInt32();
            var deadline = buffer.ReadInt16();
            var senderPublicKey = buffer.ReadBytes(32);
            var recipient = buffer.ReadInt64();
            var amount = buffer.ReadInt32();
            var fee = buffer.ReadInt32();
            var referencedTransaction = buffer.ReadInt64();
            var signature = buffer.ReadBytes(64);

            return new Transaction(type, subtype, timestamp, deadline, senderPublicKey, recipient, amount, fee, referencedTransaction, signature)
                {
                    attachment = ReadAttachment(buffer, type, subtype)
                };
        }

If I counted correctly, attachments start at byte 45.

It seems to be a lot more than 45 or even 90, I am getting

0100c5617600d00235c0f29590d9d937fe8d5866351d592f423ecf506994ebae4a184c319de8140 b2ca8e7a333e005fd0000000001000000000000000000000098af9c7bb99c59cd6fa58037c108ed 5ca1171794b0345dc9842d7001d661b50c3d3551c8d7aec12319e6f295f5f23ceb684efce82ba9c 4704eb02d4a93425b3a08000000edfedada67000000

The AM is the last part "edfedada67000000"
From what I can tell, there are blockids, acct#'s, etc. before the AM data and they are variable len. If I can assume AM message will always be at the end, then there is no need to deal with variable len stuff before.

James


http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
1573563681
Hero Member
*
Offline Offline

Posts: 1573563681

View Profile Personal Message (Offline)

Ignore
1573563681
Reply with quote  #2

1573563681
Report to moderator
1573563681
Hero Member
*
Offline Offline

Posts: 1573563681

View Profile Personal Message (Offline)

Ignore
1573563681
Reply with quote  #2

1573563681
Report to moderator
The Bitcoin Forum is turning 10 years old! Join the community in sharing and exploring the notable posts made over the years.
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1003


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 22, 2014, 07:24:24 AM
 #36262

If I counted correctly, attachments start at byte 45.

I think your math is a bit out - looks more like 126 to me - James make sure you find out *correctly* how to determine this (i.e. do *not* hard-code a "magic number").


With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
sepehr
Sr. Member
****
Offline Offline

Activity: 396
Merit: 250


http://Bolama.io


View Profile WWW
February 22, 2014, 07:37:43 AM
Last edit: February 22, 2014, 08:17:55 AM by sepehr
 #36263

SWARM NEEDED

Here is the reddit post, please everyone sign up at Bittrex.

Hello NXT community,

I solicited feedback on another thread about which coins we should support on our exchange before our public launch. NXT was overwhelmingly recommended.

Before we make the final decision, we're providing a special invite code for NXT users to experience our site first hand. Go to https://bittrex.com/Account/Register and use SUPPORT_NXT as the invite code. This gets you past the invite code queue. Place some trades, enabled 2FA, or try any of our other features to help us stress the site before the final launch. If you find a bug, we're handing out bug bounties as well. Having a great exchange helps us but also helps the NXT community.

If we get 100 signs ups using that code and active on our site, we'll add NXT before our public launch.

Please let me know if you have any questions or feedback, Bill



Signed up! Seams cool and smooth!

marcus03
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
February 22, 2014, 07:54:00 AM
 #36264

If I counted correctly, attachments start at byte 45.

I think your math is a bit out - looks more like 126 to me - James make sure you find out *correctly* how to determine this (i.e. do *not* hard-code a "magic number").

I was referencing 1-based bytes, while you were probably referencing 0-based number of characters in the hex string.

BTW, this is hard-coded in the NRS core.
oldnbold
Member
**
Offline Offline

Activity: 64
Merit: 10


View Profile
February 22, 2014, 08:08:29 AM
 #36265

SWARM NEEDED

Here is the reddit post, please everyone sign up at Bittrex.

Hello NXT community,

I solicited feedback on another thread about which coins we should support on our exchange before our public launch. NXT was overwhelmingly recommended.

Before we make the final decision, we're providing a special invite code for NXT users to experience our site first hand. Go to https://bittrex.com/Account/Register and use SUPPORT_NXT as the invite code. This gets you past the invite code queue. Place some trades, enabled 2FA, or try any of our other features to help us stress the site before the final launch. If you find a bug, we're handing out bug bounties as well. Having a great exchange helps us but also helps the NXT community.

If we get 100 signs ups using that code and active on our site, we'll add NXT before our public launch.

Please let me know if you have any questions or feedback, Bill



Please sign up if you haven't yet, we need 100 users!

done and yay!


Help! I tried signing up and got the following message: Invalid email or registration code

Email addy is valid (in fact it's my best) and I used the code as quoted above.
jl777
Legendary
*
Offline Offline

Activity: 1176
Merit: 1090


View Profile WWW
February 22, 2014, 08:15:11 AM
 #36266

If I counted correctly, attachments start at byte 45.

I think your math is a bit out - looks more like 126 to me - James make sure you find out *correctly* how to determine this (i.e. do *not* hard-code a "magic number").


Even I know not to do that!

I just abandoned using the issue_getTransactionBytes since issue_getTransaction returns it as the "message" field.
I do have some hardcoded parsing stuff to deal with current complexity of JSON. I just didnt want to load in the hansen stuff, it seemed like overkill for the current API JSON requests.

As long as the API doesn't change the nesting depth of the JSON responses, it should be fine. I am also assuming bitcoind responses wont change format. All this is for initial alpha release. Verifying actual peer multisig gateway functionality is what I want to get implemented first. I am using AM data as hints as to what the gateways should do. They are querying the local bitcoind to get the actual unspent amounts, etc.

Of course, we will have to make the gateways sign their response AM's as it would not be good if a client processed an AM with a spoofed deposit address!

It would probably make things a lot safer if all gateway AM's are signed. I think GET_COINDEPOSIT_ADDRESS, NOTIFY_PENDING_DEPOSIT and WITHDRAWAL_REQUEST are ok to broadcast in plaintext, but no sense in letting gateway_AM spam. I think this is what the NXT token is for? I dont see how it would be safe though cuz after the first time it is used, everyone would see it and can use it to spoof.

Maybe if the "website" is actually the destination NXT acct + current block, it would always be different and only the account owner would be able to generate it. If this works, I can put a validation into all AM's to prove that it originates from the NXT account holder (including the gateways), but I dont see a generate token API call, just decode token.

James

http://www.digitalcatallaxy.com/report2015.html
100+ page annual report for SuperNET
salsacz
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
February 22, 2014, 08:18:51 AM
 #36267

Newaltex.com News

* The website has been upgraded to version 2

* Maxcoin has been added to Newaltex:

https://www.newaltex.com/exchange/max_btc

another news:
Quote
The exchange is closing please withdraw your money

Nxt tips: NXT-R67P-6BZ2-XWAK-8RHZR | Nxt forum | Nxt Academy | Donate for Nxt at the Universities // BTCD: RVMLrnxYYy7uy8YZo9FcGfXbk1ZMnNifdg
charitybegin123
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
February 22, 2014, 08:28:51 AM
 #36268

Is it good time to buy Nxt? I noticed the price just declined.
salsacz
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500


View Profile
February 22, 2014, 08:29:07 AM
 #36269

yes

Nxt tips: NXT-R67P-6BZ2-XWAK-8RHZR | Nxt forum | Nxt Academy | Donate for Nxt at the Universities // BTCD: RVMLrnxYYy7uy8YZo9FcGfXbk1ZMnNifdg
Uniqueorn
Full Member
***
Offline Offline

Activity: 182
Merit: 100

NXT.org


View Profile
February 22, 2014, 08:31:08 AM
 #36270

Is it good time to buy Nxt? I noticed the price just declined.


Yes. All coins have gone down in the last few days due to Bitcoins ridiculous problems which highlight the need for NXT. (Decentralization to the maximum)
antanst
Sr. Member
****
Offline Offline

Activity: 294
Merit: 260


View Profile
February 22, 2014, 08:46:45 AM
 #36271

Is it good time to buy Nxt? I noticed the price just declined.


Yes. All coins have gone down in the last few days due to Bitcoins ridiculous problems which highlight the need for NXT. (Decentralization to the maximum)


Decentralization is irrelevant to the issue Bitcoin is currently having. NXT had and will have it's own share of issues too.

mikesbmw
Sr. Member
****
Offline Offline

Activity: 339
Merit: 250


View Profile
February 22, 2014, 09:57:22 AM
 #36272

Is it good time to buy Nxt? I noticed the price just declined.


Yes. All coins have gone down in the last few days due to Bitcoins ridiculous problems which highlight the need for NXT. (Decentralization to the maximum)

The current problems related to Bitcoin are caused by MtGox.
Unfortunately the same thing could happen with a large exchange that trades NXT (i mean the exchange acting fraudulent)...

NXT: Next Generation of Cryptocurrency http://nxtcrypto.org
NEM:New Economy Movement http://www.ournem.com/
Jerical13
Full Member
***
Offline Offline

Activity: 266
Merit: 100



View Profile
February 22, 2014, 10:08:46 AM
 #36273

You gotta fly fast and high to reach top miners Smiley

   Total: Fee earned 701996 NXT   
6483973064837388393 has mined 163299 NXT.
The 2nd is     4747512364439223888    with 101830 NXT.
In the table below is the top "miners" and their cumulative NXT amount and cumulative percentages.


In the forum was yesterday a nxt balance distribution: top100 has 82.7%
https://bitcointalk.org/index.php?topic=345619.msg5034054#msg5034054
 
In mining/forging the distribution is worse: 4 accounts have mined 56.7%, 28 accounts have mined 90%, and 98 accounts 99% and 400 accounts 100%.



    Fee Earned       %                     TOP accounts
    cumulative  cumul.

   163163   23.2                6483973064837388393
   253458   36.1                4747512364439223888
   334469   47.6                12692935506199079028
   398066   56.7                9433259657262176905
   433008   61.7                2159498187382012684
   458350   65.3                2584657662098653454
   480373   68.4
   501797   71.5
   516684   73.6
   528616   75.3
   540357   77.0
   551740   78.6
   562741   80.2
   571905   81.5
   579116   82.5
   585703   83.4
   591579   84.3
   597233   85.1
   602481   85.8
   606923   86.5
   610916   87.0
   614900   87.6
   618815   88.2
   622026   88.6
   625180   89.1
   628267   89.5
   631337   89.9
   634377   90.4





Is that 6483973064837388393 some special account?
 it has had at maximum ~ 3 Million NXT, but it has earned fees almost double than those 50 Million's accounts.



Yeah, I've seen! so we need as much possible NXT to forge continued.
So far are two empty blocks, yesterday. Smiley

Please stop begging for centralization. -.-

Test NXT Please?
2630721545000745539
SkillRoad
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
February 22, 2014, 10:14:11 AM
 #36274


Hello, I liked your idea
We decided to make the native interface Next Coin Lite


Woah!   NXTL?  What's is that?  Is that a clone of Nxt?

Yes, we make a copy of NXT, but with fewer features

What features did you remove?

Removed: Alias

Features:
- Paymant
- Ability to pay is less than 1 unit - for example 0.0001
- Instant Transactions
- Arbitrary Messaging
- Basic DDoS Protection
- Decentralized Marketplace / Auction
- Adress Book
- Reputation System
antanst
Sr. Member
****
Offline Offline

Activity: 294
Merit: 260


View Profile
February 22, 2014, 10:16:01 AM
Last edit: February 22, 2014, 10:54:47 AM by antanst
 #36275

The current problems related to Bitcoin are caused by MtGox.

No, Bitcoin's problem is this: https://en.bitcoin.it/wiki/Transaction_Malleability

MtGox has it's own problems that are possibly related to the issue above.

Unfortunately the same thing could happen with a large exchange that trades NXT (i mean the exchange acting fraudulent)...

Yep.

antanst
Sr. Member
****
Offline Offline

Activity: 294
Merit: 260


View Profile
February 22, 2014, 10:24:05 AM
 #36276

Jean Luc, CFB: Please take a look at this guy's work

https://github.com/Regulus343/Nxs

It's miles ahead of the default client UI, both from usability and design perspective. Plus it's MIT licensed. Would you consider putting this by default?

zorke
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
February 22, 2014, 10:33:25 AM
 #36277

Ok I am trying to register a bittrex account but nothing happens. Anyone?
verymuchso
Sr. Member
****
Offline Offline

Activity: 418
Merit: 250


HEAT Ledger


View Profile
February 22, 2014, 10:43:04 AM
 #36278

@CfB, @JeanLuc anyone on dev team

"Account Control" was mentioned. Could someone give a brief explanation of this feature.

Thanks

Eadeqa
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
February 22, 2014, 10:46:09 AM
 #36279

Jean Luc, CFB: Please take a look at this guy's work

https://github.com/Regulus343/Nxs

It's miles ahead of the default client UI, both from usability and design perspective. Plus it's MIT licensed. Would you consider putting this by default?

No, I say wesleyh client should become default client included in future with NRS

http://nxtra.org/nxt-client/




NXT-GZYP-FMRT-FQ9K-3YQGS
https://nxtforum.org
Jerical13
Full Member
***
Offline Offline

Activity: 266
Merit: 100



View Profile
February 22, 2014, 11:05:23 AM
 #36280

Update ClieNXT

version 0.0.5e AE testnet

changelog:

* added Update table context menu for main Assets table.
* added better search for Asset Exchange
* added output label front progress bar (now no need to close all windows to see console outputs, last output will be displayed right front of progress bar in Status bar of main window)
* removed plain text sending from AM
* fixed various reported bugs, please report bugs if you experience
* well, created easy to use version for all 3 major platforms (Windows, Mac, Linux)

----
downloads
----

Windows: https://bitbucket.org/fmiboy/clienxt/downloads/clienxt_005e_Windows.zip 927.4 KB
Mac: https://bitbucket.org/fmiboy/clienxt/downloads/clienxt_005e_Linux.zip 1.8 MB
Linux: https://bitbucket.org/fmiboy/clienxt/downloads/clienxt_005e_Linux.zip 927.6 KB

nb: mac version is same as Linux, ./clienxt.run & on terminal.

----
Report bugs/features
----
https://bitbucket.org/fmiboy/clienxt/issues?status=new&status=open
please update if issue still persist.

any support is appreciated, translators, donators 13792774143018875909  

edit: removed peers and blocks update that most likely cause lagging, but there is still waiting time, when we have more and more issued assets. thinking how to optimize this to get better performance.

thanks

Need a little help. I have downloaded and extracted the ClieNXT as instructed in the Youtube tutorial. when I double-click the .jar file to open the client, it opens with notepad ( I assume that it is supposed to open with Java). I do have the latest version of Java installed, but for some reason the file automatically opens with notepad, and instead of getting the test client I get a notepad file of script.  I am not sure how to get this to work properly. Anybody have any help or advice?
Pages: « 1 ... 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 [1814] 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 ... 2565 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!