use top level for verification
This commit is contained in:
parent
ab5e7ad7a2
commit
06be21af05
@ -10,7 +10,7 @@ class LDSignatures {
|
||||
static function verify($data,$pubkey) {
|
||||
|
||||
$ohash = self::hash(self::signable_options($data['signature']));
|
||||
$dhash = self::hash(self::signable_data($data['signature']));
|
||||
$dhash = self::hash(self::signable_data($data));
|
||||
|
||||
return rsa_verify($ohash . $dhash,base64_decode($data['signature']['signatureValue']), $pubkey);
|
||||
}
|
||||
|
Reference in New Issue
Block a user