updateDetails( subs, details );
byte[] contents = BEncoder.encode( details );
byte[] new_hash = new SHA1Simple().calculateHash( contents );
byte[] old_hash = (byte[])map.get( "hash" );
// backward compat from before az_version was introduced
if ( old_hash != null && !Arrays.equals( old_hash, new_hash )){
Map details_copy = new HashMap( details );
details_copy.remove( "az_version" );
contents = BEncoder.encode( details_copy );
new_hash = new SHA1Simple().calculateHash( contents );
}
if ( old_hash == null || !Arrays.equals( old_hash, new_hash )){
byte[] private_key = subs.getPrivateKey();