public function reloadSigningKeys(array $data = []) : self
{
if (empty($data)) {
$data = \Airship\loadJSON(ROOT . '/config/supplier_keys/' . $this->name . '.json');
}
if (isset($data['signing_keys'])) {
$keys = [];
foreach ($data['signing_keys'] as $sk) {
$keys[] = ['type' => $sk['type'], 'key' => new SignaturePublicKey(\Sodium\hex2bin($sk['public_key']))];
}
$this->signing_keys = $keys;
}
return $this;
}