streamline keyId and creator/actor

This commit is contained in:
Mario Vavti 2019-07-17 23:36:41 +02:00
parent 80f56a1315
commit f94faeeace

View File

@ -29,7 +29,7 @@ class LDSignatures {
$options = [ $options = [
'type' => 'RsaSignature2017', 'type' => 'RsaSignature2017',
'nonce' => random_string(64), 'nonce' => random_string(64),
'creator' => z_root() . '/channel/' . $channel['channel_address'] . '/public_key_pem', 'creator' => z_root() . '/channel/' . $channel['channel_address'],
'created' => datetime_convert('UTC','UTC', 'now', 'Y-m-d\Th:i:s\Z') 'created' => datetime_convert('UTC','UTC', 'now', 'Y-m-d\Th:i:s\Z')
]; ];
@ -124,7 +124,7 @@ class LDSignatures {
'meDataType' => $data_type, 'meDataType' => $data_type,
'meEncoding' => $encoding, 'meEncoding' => $encoding,
'meAlgorithm' => $algorithm, 'meAlgorithm' => $algorithm,
'meCreator' => z_root() . '/channel/' . $channel['channel_address'] . '/public_key_pem', 'meCreator' => z_root() . '/channel/' . $channel['channel_address'],
'meSignatureValue' => $signature 'meSignatureValue' => $signature
]); ]);