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

Tech: [blockchain-object] - Signature validation #1296

Open
andy-shi88 opened this issue Oct 15, 2020 · 0 comments
Open

Tech: [blockchain-object] - Signature validation #1296

andy-shi88 opened this issue Oct 15, 2020 · 0 comments
Assignees
Labels
CORE core functionalities postponed

Comments

@andy-shi88
Copy link
Contributor

Description

Blockchain object can be placed as a transaction sender. To validate transaction that has blockchain_object as a sender, we'll need to add a new account_type: AccountTypeBlockchainObject.

In signature validation, everytime we see a transaction comes from a blockchain object sender:

  • look up into blockchain_object table, get the owner
  • validate signature against its owner.

IF the owner of the blockchain object is another blockchain object, we will do another database lookup to get its owner, we'll set a restriction of blockchain-object as owner to 3 level.

  • if we have look up 3 times and the owner is still blockchain object, then validation of signature fails.

Breakdown

  • Add new account type
  • Update signature validation for the new type.

Additional Diagram / File

Put additional diagram or file

@andy-shi88 andy-shi88 added the CORE core functionalities label Oct 15, 2020
@andy-shi88 andy-shi88 added this to the Milestone 20 milestone Oct 15, 2020
@nawikart nawikart self-assigned this Nov 2, 2020
@abiman7u abiman7u modified the milestones: Milestone 20, V.0.0.2.W.01 Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE core functionalities postponed
Projects
None yet
Development

No branches or pull requests

4 participants