generate a commitment for the passed in message . concode_field_sep SecureRandom random concode_elem_sep Digest digest concode_elem_sep int byteLength concode_field_sep byte[] calculateCommitment concode_elem_sep boolean isRevealed
Commitment function ( byte [ ] arg0 ) { if ( arg0 . length > byteLength / 2 ) { throw new DataLengthException ( "srini_string" ) ; } byte [ ] loc0 = new byte [ byteLength - arg0 . length ] ; random . nextBytes ( loc0 ) ; return new Commitment ( loc0 , calculateCommitment ( loc0 , arg0 ) ) ; }