class Commitment {

    public Commitment(byte[] data)
        throws NoSuchAlgorithmException {

        this.salt = Digest.makeRand();

        byte[] d = serialize(data);
        this.value = Digest.digest(d);
    }

    public  Commitment(byte[] data);

}