add a nonce
This commit is contained in:
parent
77267e049a
commit
d47df8663f
@ -23,6 +23,7 @@ class LDSignatures {
|
|||||||
static function sign($data,$channel) {
|
static function sign($data,$channel) {
|
||||||
$options = [
|
$options = [
|
||||||
'type' => 'RsaSignature2017',
|
'type' => 'RsaSignature2017',
|
||||||
|
'nonce' => random_string(64),
|
||||||
'creator' => z_root() . '/channel/' . $channel['channel_address'] . '/public_key_pem',
|
'creator' => z_root() . '/channel/' . $channel['channel_address'] . '/public_key_pem',
|
||||||
'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')
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user