ssbc / ssb-validate2-rsjs

Cryptographic validation of Scuttlebutt messages in the form of bindings (Rust) for Node.js.
3 stars 0 forks source link

Strange error #30

Closed staltz closed 3 years ago

staltz commented 3 years ago

@mycognosist I bumped into this when running tests in ssb-db2 using ssb-validate2-rsjs-node, do you recognize this problem? It says that the signature field is missing but it's right there.

 Error: found invalid message: Error parsing ssb message as json, it is invalid. Errored with: missing field `signature` at line 16 column 1: {
  "key": "%+xs8VHZ3tS72bVJRIYGro8pBShq34ShPptdSilPHffQ=.sha256",
  "value": {
  "previous": null,
  "sequence": 1,
  "author": "@kF7IWZhwNyijAMYSyIQm+PSp4vbifefUu2Qms9aXzCY=.ed25519",
  "timestamp": 1625499971262,
  "hash": "sha256",
  "content": {
  "type": "post",
  "text": "a"
  },
  "signature": "Nh6XG6sUrXwSoftOH0rVVKeMC73XKl04f3+gIB7L6pVrzn4WSd4DaPEbvpR6Y6iBHMT5cPkcnSwjUo18bjHqCA==.sig.ed25519"
  },
  "timestamp": 1625499971268
  }
  at Object.validateSingle
staltz commented 3 years ago

Pretend you didn't see this!