Commit 9841ecef authored by Zot's avatar Zot

support json-ld signatures

parent d7f799d2
......@@ -215,6 +215,8 @@ function pubcrawl_channel_mod_init($x) {
$headers = [];
$headers['Content-Type'] = 'application/activity+json' ;
$x['signature'] = \Zotlabs\Lib\LDSignatures::sign($x,$chan);
$ret = json_encode($x);
$hash = \Zotlabs\Web\HTTPSig::generate_digest($ret,false);
$headers['Digest'] = 'SHA-256=' . $hash;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment