elective-stereophonic
elective-stereophonic
Transactions without Signature
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.11.15 | Latest Experimental Nxt Client: Nxt 1.12.0e

Author Topic: Transactions without Signature  (Read 3610 times)

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Transactions without Signature
« on: August 12, 2014, 04:37:51 pm »

How to distinguish normal transactions from SC transactions AND how to make sure nobody can create SC transactions?
Logged

Come-from-Beyond

  • Hero Member
  • *****
  • Karma: +794/-671
  • Offline Offline
  • Posts: 4013
    • View Profile
Re: Transactions without Signature
« Reply #1 on: August 12, 2014, 04:40:40 pm »

How to distinguish normal transactions from SC transactions AND how to make sure nobody can create SC transactions?

NRS knows which transactions r created manually and which r created by SCs. API won't be able to return signature for SC-generated transactions so it's easy to distinguish them. Smart contracts won't have ability to "see" what transactions r manual and what r SC-generated though.
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: Transactions without Signature
« Reply #2 on: August 13, 2014, 10:15:21 am »

Smart contracts won't have ability to "see" what transactions r manual and what r SC-generated though.

Why not?
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: Transactions without Signature
« Reply #3 on: August 13, 2014, 10:18:49 am »

Question remains: why should I not be able to create a block that includes a transaction without a signature so that I can pretend that it was created by an SC. (maybe, in order to harm an SC account by drawing its funds, or because SC transactions are cheaper, etc.)
Logged

Come-from-Beyond

  • Hero Member
  • *****
  • Karma: +794/-671
  • Offline Offline
  • Posts: 4013
    • View Profile
Re: Transactions without Signature
« Reply #4 on: August 13, 2014, 11:20:46 am »

Why not?

Why it should be visible? We can add this feature, but we can't remove it once added.
Logged

Come-from-Beyond

  • Hero Member
  • *****
  • Karma: +794/-671
  • Offline Offline
  • Posts: 4013
    • View Profile
Re: Transactions without Signature
« Reply #5 on: August 13, 2014, 11:21:30 am »

Question remains: why should I not be able to create a block that includes a transaction without a signature so that I can pretend that it was created by an SC. (maybe, in order to harm an SC account by drawing its funds, or because SC transactions are cheaper, etc.)

Coz blocks can't include transactions without signatures.
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: Transactions without Signature
« Reply #6 on: August 13, 2014, 10:27:31 pm »

Question remains: why should I not be able to create a block that includes a transaction without a signature so that I can pretend that it was created by an SC. (maybe, in order to harm an SC account by drawing its funds, or because SC transactions are cheaper, etc.)

Coz blocks can't include transactions without signatures.

So, what happens to SC transactions? They have no signatures, so they will not included in a block?
Logged

Come-from-Beyond

  • Hero Member
  • *****
  • Karma: +794/-671
  • Offline Offline
  • Posts: 4013
    • View Profile
Re: Transactions without Signature
« Reply #7 on: August 14, 2014, 07:08:19 am »

So, what happens to SC transactions? They have no signatures, so they will not included in a block?

They don't need to be included into a block, the transactions can be restored via SC execution.
Logged

ChuckOne

  • Hero Member
  • *****
  • Karma: +293/-17
  • Offline Offline
  • Posts: 3450
  • ☕ NXT-4BTE-8Y4K-CDS2-6TB82
    • View Profile
Re: Transactions without Signature
« Reply #8 on: August 14, 2014, 07:12:16 am »

So, what happens to SC transactions? They have no signatures, so they will not included in a block?

They don't need to be included into a block, the transactions can be restored via SC execution.

So, no materialization? Hmmm. Not sure if that is efficient. Maybe, I am wrong. You should talk to JL about that.
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly