"><span><?php 
            echo $lang_profile['Public key'];
            ?>
</span></label><br />
						<!--<span class="fld-input"><input id="fld<?php 
            php;
            ?>
" type="text" name="form[pubkey]" value="<?php 
            //echo(isset($form['pubkey']) ? validate_pubkey(forum_htmlencode($form['pubkey'])) : validate_pubkey(forum_htmlencode($user['pubkey'])))
            ?>
" size="35" maxlength="3500" /></span>-->
						<span class="fld-input"><textarea id="fld<?php 
            echo $forum_page['fld_count'];
            ?>
" cols="60" rows="2" name="form[pubkey]" >"<?php 
            echo htmlspecialchars(isset($form['pubkey']) ? validate_pubkey(forum_htmlencode($form['pubkey'])) : validate_pubkey(forum_htmlencode($user['pubkey'])));
            ?>
"</textarea> </span>
					</div>
				</div>
				

<?php 
            ($hook = get_hook('pf_change_details_identity_pre_contact_fieldset_end')) ? eval($hook) : null;
            ?>
			</fieldset>
<?php 
            ($hook = get_hook('pf_change_details_identity_contact_fieldset_end')) ? eval($hook) : null;
            ?>
			<div class="frm-buttons">
				<span class="submit primary"><input type="submit" name="update" value="<?php 
function pubkeys_to_script($hex)
{
    $keys = explode(",", $hex);
    $script = false;
    switch (count($keys)) {
        case 1:
            $k = validate_pubkey($keys[0]);
            if ($k === false) {
                return false;
            }
            // <push-pubkey-len-bytes><pubkey> OP_CHECKSIG
            $script = chr(strlen($k)) . $k . "¬";
            break;
        case 2:
            $k1 = validate_pubkey($keys[0]);
            $k2 = validate_pubkey($keys[1]);
            if ($k1 === false || $k2 === false) {
                return false;
            }
            // OP_2 <k1> <k2> OP_2 OP_CHECKMULTISIG
            $script = "R";
            $script .= chr(strlen($k1)) . $k1;
            $script .= chr(strlen($k2)) . $k2;
            $script .= "R";
            $script .= "®";
            break;
        case 3:
            $k1 = validate_pubkey($keys[0]);
            $k2 = validate_pubkey($keys[1]);
            $k3 = validate_pubkey($keys[2]);
            if ($k1 === false || $k2 === false || $k3 === false) {
                return false;
            }
            // OP_3 <k1> <k2> <k3> OP_3 OP_CHECKMULTISIG
            $script = "S";
            $script .= chr(strlen($k1)) . $k1;
            $script .= chr(strlen($k2)) . $k2;
            $script .= chr(strlen($k3)) . $k3;
            $script .= "S";
            $script .= "®";
            break;
    }
    return $script;
}