Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for Smart Transaction identification system #67

Closed
wants to merge 2 commits into from

Conversation

igormcoelho
Copy link

@igormcoelho igormcoelho commented Sep 22, 2018

This NEP intends to propose a 10-byte header with human-readable characters, embedable in general Remark fields, that can be used to easily understand the nature of Smart Transactions on Neo network. This NEP is fully backwards compatible and is only used for identification purposes (no behavior will change on the network). This can also be used to accelerate the detection of specific Smart Transaction and to implement reactive behavior based on the content of such transactions.

@igormcoelho
Copy link
Author

igormcoelho commented Sep 22, 2018

@erikzhang @PeterLinX please take a look at this NEP when you can. The idea is create a simple 10-byte mark that can be used on any Remark field, to be used in different purposes... the first one will be the staking idea, but it can help build so many different stuff. This is fully backwards compatible, but it can help to build deeper stuff that would be more complicated without it.
@erikzhang the plan is to use this in conjunction with a Script field, so the Script will do the actual validation of the staking, and the Staking behavior itself can be easily detected using an operation code field.

@igormcoelho
Copy link
Author

@igormcoelho
Copy link
Author

igormcoelho commented Sep 24, 2018

Simple example of this NEP-11 (no number yet?): transaction is sent starting with attribute remark NEP-11 STP, we know it's a Stake Propose transaction (and we treat it accordingly). If it's NEP-11 STV (Stake Validate), we know it's using a previous stake to backup this tx.

@shargon
Copy link
Member

shargon commented Sep 24, 2018

I don't see the advantage, if this flag is set based on rules, should do it who really need it, the explorers, etc etc

The people lie, so this flags are not trusted

@igormcoelho
Copy link
Author

igormcoelho commented Sep 24, 2018

Good to see you here @shargon.. perhaps it's not needed, true, but the purpose is not to avoid people to lie. It's just a simple standard to allow people to explain what the transaction is about. In the case of Staking, for example, it would be useful for the plugin to know that a "STP" operation code is there, much better than scanning the whole transaction to find the exact pattern of the Stake redeem script. It's also a place to put extra information, in the case of Staking, a list of public keys that are allowed to use the staked funds to backup transactions. If people lie, that's fine, the idea is just to give a hint on how to proceed with Stake redeem script with the correct keys (which will actually do the validation), so it will just be an invalid operation, just like any random Remark. Perhaps it's an overcomplication, but I really think it helps structuring something bigger. In my opinion, structured information is interesting, even if people lie about them.
But like I said, everything can be build without this, I just think it's more complicated and less organized.

@igormcoelho
Copy link
Author

I withdraw this proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants