Pages:
Author

Topic: Nxt :: Automated Transactions (AT) - progress and discussion - page 9. (Read 17237 times)

legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
stupid? semi stupid?  Grin

Well the problem is that a script can't "hide" anything (I am aware of some of the amazing new crypto ideas thanks to James but as of now they are not practical - nor will they be in the foreseeable short term future) so I don't think this is something it could be used for.

Another idea that has been suggested is a form of "hedging" where you might bet that Asset A is going to be worth more than Asset B at a certain time (or vice-versa).
member
Activity: 111
Merit: 10
a use case script:
create an account by a number of people sending parts of the passphrase to account A (i.e. someone creates an account address and stores somehow that lets say 3 users will send parts of a passphrase for creating a new account)
after account A receives the expected parts of the passphrases (in this case 3) it creates a new account address B (based on the 3 passphrases in the example)
when users want to instruct account B to send NXT to another account they have to pass the 3 passphrases and same instruction in between the 3 of them, i.e. passphrase + Transfer 1000NXT to 43214321)

stupid? semi stupid?  Grin
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
If you like living on the edge these days: "Malleable Operations" Wink

Indeed - btw - after some consideration the "use case" of the "dividend" doesn't actually seem to be a very good use case for scripting anyway (it could be done more efficiently with a special "pay to many" tx type).

So we are interested in some better use cases - a couple of ideas we have so far are:

1) A "lotto" in which the script contains the "hash" of a secret. People send funds to the script and then when the secret is revealed the funds are sent to the tx whose hash (or time stamp or combination) is closest.

2) A "dead man's switch" savings account that will send your funds to another account if you don't instruct it otherwise (say once per year).

Perhaps we could come up with something better than these as a more "compelling" use case to justify why we want to create such a script system?
legendary
Activity: 1092
Merit: 1010
for marketing: Adaptive Layer

Now that does sound like something you'd hear from marketing. Grin


If you like living on the edge these days: "Malleable Operations" Wink
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
for marketing: Adaptive Layer

Now that does sound like something you'd hear from marketing. Grin
member
Activity: 111
Merit: 10
aaa I didn't think we want it as a marketing sounding, I thought it was to be as close as possible to what you will be doing:)

for marketing: Adaptive Layer
legendary
Activity: 2142
Merit: 1009
Newbie
Scripting or Automation.
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
instructions

Hmm... don't think the marketing team would be jumping up and down about that.

Perhaps something like "Smart Transactions" might be a little "more catchy" (although I am not a marketing guy).
member
Activity: 111
Merit: 10
I think that I shouldn't have used the word "script" (anyone got a better name?).

instructions
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
This could make Nxt forging very lucrative.

Certainly the amount of fees cannot be too trivial or the burden on the network would be too great so I'd expect such "scripts" will have to be fairly generous in order to function reasonably.
legendary
Activity: 2142
Merit: 1125
Does Nxt Scripts use Nxt fees in order to be used ?
Indeed - basically a transaction to "execute" a script will be charged per "step" of execution (we can't tell how long a script will run as they will be "Turing complete"). If the payer hasn't provided enough fees then the script effectively "stops" at whatever step it is currently on (and can be resumed at a later point in time if a new fee paying tx asks it to).
There are also most likely going to be some basic limits as to the max. number of "steps" that a single forger would have to execute otherwise some paying an enormous fee to an "infinite loop" script could bring the network to a grinding halt.

This could make Nxt forging very lucrative.
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
Does Nxt Scripts use Nxt fees in order to be used ?

Indeed - basically a transaction to "execute" a script will be charged per "step" of execution (we can't tell how long a script will run as they will be "Turing complete"). If the payer hasn't provided enough fees then the script effectively "stops" at whatever step it is currently on (and can be resumed at a later point in time if a new fee paying tx asks it to).

There are also most likely going to be some basic limits as to the max. number of "steps" that a single forger would have to execute otherwise some paying an enormous fee to an "infinite loop" script could bring the network to a grinding halt.
legendary
Activity: 2142
Merit: 1125
A simple example (in fact our first "use case") is a script (or perhaps more correctly termed a "program" as we are not actually going to be using a typical "script" language) that pays a dividend to the shareholders of an Asset.
So in pseudo code this might look something like the following:
Code:
(see above)
I hope that isn't too confusing.

I love it. This would be very useful.
Does Nxt Scripts use Nxt fees in order to be used ?
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
Do you mean to say that external calls to something like getLastBlock() will not block until return?

At this stage I would expect function calls "to block" although there may be some special cases for async execution but I think that such cases would be very few (if any at all) as we need to have a "deterministic" system.
newbie
Activity: 32
Merit: 0
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
also could you write a javascript implenentaion of nxt client....?

I think that I shouldn't have used the word "script" (anyone got a better name?).

Although we may well add some sort of "higher level" language later (which might look similar to some popular scripting languages) at this stage we are focused on something that will be much more primitive.
legendary
Activity: 1890
Merit: 1078
Ian Knowles - CIYAM Lead Developer
but, what is a nxt scripts?

A simple example (in fact our first "use case") is a script (or perhaps more correctly termed a "program" as we are not actually going to be using a typical "script" language) that pays a dividend to the shareholders of an Asset.

So in pseudo code this might look something like the following:

Code:
var b = get_Balance( );
var n = get_Number_Of_Account_Users( );
if( n > 0 )
{
   var s = b / n;
   if( s > 0 )
   {
      while( true )
      {
         var a = get_Next_Account_User( );
         if( a == 0 )
            break;
         send_Amount_To_Account( s, a );
      }
   }
}

I hope that isn't too confusing.
legendary
Activity: 2618
Merit: 1022
also could you write a javascript implenentaion of nxt client....?
legendary
Activity: 2618
Merit: 1022
so

if you do this, will etherium be left with any technical advantage over nxt
newbie
Activity: 36
Merit: 0
It's a good timing to beat btc,hurry up guys
Pages:
Jump to: