Archive 07/10/2020.

Node failed to verify signed message

elkanawy

Hello friends,
Please help me out, although I successfully compiled and run my application, generated key pair, signed and verified a message but when I flash the same application to the iot node, the application does successfully verify message anymore; I even generated the key pairs yet the same problem. Thank you

key
key
New keypair generated:

  • Secret: E002F870F121D3605A8D54709BCE4D32936C14F50D9F51867A6062DF2E6C0249
  • Public: 93F6592CC893E1DDF549225603E20B5B9038C9DC1830102546AAC9521968AC55
    sign arif
    sign arif
    EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A607CBFA30DABBE27FBAE8C4c
    c
    shell: command not found: c
    verify arif EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A607CBFA30DABBE27FBAE8C4c
    verify arif EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A607CBFA30DABBE27FBAE8C4c
    Message not verified
    verify arif EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A607CBFA30DABBE27FBAE8C4c
    verify arif EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A607CBFA30DABBE27FBAE8C4c
    Message not verified
    sign arif
    sign arif
    EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A6

verify arif EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A6
verify arif EC84FBD091D2E8FD8CEBF135F93191E3B1EA04572F441D01BE6E2EC411F27B70AB9B5C1329D3D24FC3654C538A6FBC48F14411A6
Message not verified
key
key
New keypair generated:

  • Secret: 0036B058BE4F40676671C4146B80F9EF39BF45F1CD8A922C184E3842FB677058
  • Public: 77B3249CDEE798B9E0A52A5858EDC6D75F16CD3AD5DD415E13B1326E58E2606A
    sign arif
    sign arif
    332E690DB8CB048B2ED48258E8E62FDF0880F2A1C16C4AAE7C7CC8A2F9C1E60025E07EB95036CD0CE30DF0432545AEF9C2A09A9FFBBA15BF9AFE2

verify arif 332E690DB8CB048B2ED48258E8E62FDF0880F2A1C16C4AAE7C7CC8A2F9C1E60025E07EB95036CD0CE30DF0432545AEF9C2A09A9FFBBA15BF9AFE2
verify arif 332E690DB8CB048B2ED48258E8E62FDF0880F2A1C16C4AAE7C7CC8A2F9C1E60025E07EB95036CD0CE30DF0432545AEF9C2A09A9FFBBA15BF9AFE2
Message not verified

aabadie2

Hi,

There’s an issue in the signature notebook: the buffer where the computed signature is stored is not allocated with enough space. You have to replace:

static char signature_hex[EDSIGN_SIGNATURE_SIZE * 2] = { 0 };

with

static char signature_hex[EDSIGN_SIGNATURE_SIZE * 2 + 1] = { 0 };

in the code.

elkanawy

Yep! it worked like margic :wink:
Thank you