Skip to content

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

Open
@andy-shi88

Description

@andy-shi88

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions