streamline keyId and creator/actor
This commit is contained in:
parent
80f56a1315
commit
f94faeeace
@ -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
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@ -132,4 +132,4 @@ class LDSignatures {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user