aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/JcsEddsa2022.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Lib/JcsEddsa2022.php')
-rw-r--r--Zotlabs/Lib/JcsEddsa2022.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Lib/JcsEddsa2022.php b/Zotlabs/Lib/JcsEddsa2022.php
index 425627b62..14f16c94b 100644
--- a/Zotlabs/Lib/JcsEddsa2022.php
+++ b/Zotlabs/Lib/JcsEddsa2022.php
@@ -37,6 +37,7 @@ class JcsEddsa2022 {
if (!str_starts_with($encodedSignature,'z')) {
return false;
}
+
$encodedSignature = substr($encodedSignature, 1);
$optionsHash = $this->hash($this->signableOptions($data['proof']), true);
$dataHash = $this->hash($this->signableData($data),true);
@@ -58,7 +59,7 @@ class JcsEddsa2022 {
$signableData = [];
if ($data) {
foreach ($data as $k => $v) {
- if ($k != 'proof') {
+ if (!in_array($k, ['proof', 'signature'])) {
$signableData[$k] = $v;
}
}