Zdeveloper

Zcash and Zclassic Development Information

User Tools

Site Tools


wiki:hidden_messages

Sending hidden messages!

One cool thing about z_addresses and z_transactions is that you can send messages with them.


ZMSG is a messaging system that makes it easier to send hidden messages over the blockchain. The recipient can see it at any time. There's no need for both parties to be online at the same time.


Setup

First have GO installed and a zcash or zclassic daemon. Then clone ZMSG.

  git clone https://github.com/whyrusleeping/zmsg

—-

Usage

Note: To use zmsg, you'll need a running zcash or zclassic daemon, a z_address, and some spare ZEC in that address. sendmsg

To send a message, use

  zmsg sendmsg:
  $export TARGET_ZADDR = zchfvC6iubfsAxaNrbM4kkGDSpwjafECjqQ1BZBFXtotXyXARz2NoYRVEyfLEKGCFRY7Xfj2Q3jFueoHHmQKb63C3zumYnU
  $ zmsg sendmsg -to=$TARGET_ZADDR "Hello zmsg! welcome to pretty secure messaging"
  message: "Hello zmsg! welcome to pretty secure messaging"
  sending message from <your z_addr>
  sending message...
  Message sent successfuly!
  message sent! (txid = <transaction id>)

Note that this will take about a minute to compute the zero-knowledge proof, and another few minutes before the transaction gets propagated and confirmed for the other side to see it. check

To check for messages, run

  zmsg check:
  ================================================================================
  > Got 2 messages.
  ================================================================================
  | Message #0 (val = 0.000010)
  | To: zchfvC6iubfsAxaNrbM4kkGDSpwjafECjqQ1BZBFXtotXyXARz2NoYRVEyfLEKGCFRY7Xfj2Q3jFueoHHmQKb63C3zumYnU
  | Date: 2016-11-11 17:36:31 -0800 PST
  |
  |  This is a test of zmsg, hello everyone!
  ================================================================================
  | Message #1 (val = 0.000010)
  | To: zchfvC6iubfsAxaNrbM4kkGDSpwjafECjqQ1BZBFXtotXyXARz2NoYRVEyfLEKGCFRY7Xfj2Q3jFueoHHmQKb63C3zumYnU
  | Date: 2016-11-11 17:44:44 -0800 PST
  |
  |  This is message number 'two', i'm sitting in a coffee shop. Don't tell anyone.
  ================================================================================
  

Help?

Post an issue at ZMSG

wiki/hidden_messages.txt · Last modified: 2016/12/25 15:48 by anarch3