How to verify the signature of data returned from $ cleos get block BLOCKNUM to insure that the data returned came from the blockchain and not 'spoofed' by a man-in-the-middle?

cleos get block 132

  "trx": {
    "id": "a4c3cd072387dbb00dd27b99b2ed6d4ea8520239a11a775fdc6036bdc690aa55",
    "signatures": [

You can recover public key of the producer which signed the Block.

Take a look at https://github.com/EOSIO/eosjs-ecc, it contains all the neccessary cryptographic functions you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.