Skip to content

Commit

Permalink
Update CBOR.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Dec 15, 2024
1 parent d250700 commit 7de6b7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Support/CBOR.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public static function normalize(mixed $data): mixed
if (in_array($key, ['v', 't', 'l', 'data'], true) && $item instanceof CidTag) {
return $item->mst();
}
if ($key === 'sig') {
return base64_encode($item);
}

return self::normalize($item);
})->toArray();
Expand Down

0 comments on commit 7de6b7e

Please sign in to comment.