status-go/services/shhext
Frank Mueller b543d32a31
Move ssh_requestMessages to sshext_requestMessages (#862)
* Add RequestMessage to sshext

* E2E tests now use shhext_requestMessages

* Typo in comment

* Enhanced maintainability

* Drop former mailservice

* Code reorg after review

* Fix missed changes after update to 1.8.5
2018-04-26 07:56:19 +02:00
..
README.md Implement `personal_sign`. 2018-04-17 11:18:58 +02:00
api.go Move ssh_requestMessages to sshext_requestMessages (#862) 2018-04-26 07:56:19 +02:00
service.go Move ssh_requestMessages to sshext_requestMessages (#862) 2018-04-26 07:56:19 +02:00
service_test.go Move ssh_requestMessages to sshext_requestMessages (#862) 2018-04-26 07:56:19 +02:00
signal.go Implement `personal_sign`. 2018-04-17 11:18:58 +02:00

README.md

Whisper API Extension

API

shhext_post

Accepts same input as shh_post (see https://github.com/ethereum/wiki/wiki/JSON-RPC#shh_post)

Returns

DATA, 32 Bytes - the envelope hash

Signals

Sends sent signal once per envelope.

{
  "type": "envelope.sent",
  "event": {
    "hash": "0xea0b93079ed32588628f1cabbbb5ed9e4d50b7571064c2962c3853972db67790"
  }
}

Sends expired signal if envelope dropped from whisper local queue before it was sent to any peer on the network.

{
  "type": "envelope.expired",
  "event": {
    "hash": "0x754f4c12dccb14886f791abfeb77ffb86330d03d5a4ba6f37a8c21281988b69e"
  }
}