3

Here is an code example:

shh.post({
  "from": myIdentity,
  "topic": [ web3.fromAscii(appName) ],
  "payload": [ web3.fromAscii(myName), web3.fromAscii("What is your name?") ],
  "ttl": 100,
  "priority": 1000
});

What stops us from putting files in the payload i.e., large base64 encoded or hexadecimal string?

1

Currently for the proof of concept nothing prevents this. However the next version of the protocol will include:

  • Hard limit on the payload size
  • Proof of work proportional to Size_bytes*Time_to_live

Source

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.