Skip to content

Add Scopes into Transaction#2657

Closed
shargon wants to merge 4 commits intoneo-project:developfrom
shargon:expose-scopes
Closed

Add Scopes into Transaction#2657
shargon wants to merge 4 commits intoneo-project:developfrom
shargon:expose-scopes

Conversation

@shargon
Copy link
Member

@shargon shargon commented Feb 8, 2022

It's required to have access to the transaction's scopes inside the smart contract in certain cases, I thought about create a new syscall, check if a witness it will be valid, but it depend of the callingscript, executionscript, in fact the whole ExecutionEngine...
I want to check inside my verify if the transaction was signed by the user.

@shargon shargon requested a review from erikzhang February 8, 2022 09:55
@erikzhang
Copy link
Member

How do you decode it in a contract?

@shargon
Copy link
Member Author

shargon commented Feb 16, 2022

How do you decode it in a contract?

Is not required to be decoded, you can hardcode the expected one, and don't allow anything else

@erikzhang
Copy link
Member

I think we should create a new syscall, and decode senders for the user.

@shargon
Copy link
Member Author

shargon commented Mar 31, 2022

I think we should create a new syscall, and decode senders for the user.

GetTransactionSigners?

@shargon shargon deleted the branch neo-project:develop April 6, 2022 10:31
@shargon shargon closed this Apr 6, 2022
@shargon shargon deleted the expose-scopes branch April 7, 2022 08:17
@shargon shargon mentioned this pull request Apr 7, 2022
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.

3 participants