private byte[] SHA256hash(byte[] tobeHashed){
  SHA256Digest digester=new SHA256Digest();
  byte[] retValue=new byte[digester.getDigestSize()];
  digester.update(tobeHashed,0,tobeHashed.length);
  digester.doFinal(retValue,0);
  return retValue;
}

private byte [ ] SHA256hash ( byte [ ] tobeHashed ) { SHA256Digest digester = new SHA256Digest ( ) ; byte [ ] retValue = new byte [ digester . getDigestSize ( ) ] ; digester . update ( tobeHashed , 0 , tobeHashed . length ) ; digester . doFinal ( retValue , 0 ) ; return retValue ; }
this is the sha - 256 hashing function that is performed on the public key
