Skip to content

verify sender from VRS, not hardcoded client ID #65

Description

@arcolife

the client could just be anyone.
So verify the sender of the block by obtaining the VRS in block, deconstructing public key from that and comparing the obtained key with stored public key of the sender.

Also fix the 3 modes, 2 out of which are currently dummy, as per https://github.com/truechain/truechain-consensus-core/blob/master/README.md#step-3

4. `TRUE_SIMULATION` is as follows:
  - if set to 0 (default) - should tell the project to pickup testbed configurations. 
  - if set to 1 - staging, meaning all CI/CD tests are run before draft run. (dummy functionality at the moment)
  - if set to 2 - production. Will try to connect to boot nodes. (dummy functionality at the moment)

Metadata

Metadata

Assignees

Labels

C-leveltrivial low-level difficultybugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions