Beispiel #1
0
 /**
  * Sets the sender and computes the signature
  *
  * @param me
  */
 public void sign_and_set_sender(D_Peer me) {
   if (me == null) {
     sender = null;
     signature = null;
     return;
   }
   // signature = null;
   byte[] msg = this.getSignEncoder().getBytes();
   signature = Util.sign(msg, me.getSK());
   this.sender = me;
 }