Hi, I am looking to create a smart filer that does something like
function filterstreamitem()
{
var item=getfilterstreamitem();
for (var i=0;i<item.keys.length; i++) {
var key=item.keys[i];
if (key == 'Complete' && address1 != addressOfGenesisBlockMiner)
return 'Unable to publish this content';
}
}
In order to create a restriction on the keys that people post with (in this case only the genesis block miner can add the key 'complete'). Is it possible to, within a stream, access the address of someone trying to post something to a stream? Also is it possible to access the address of the genesis block miner with a function, or should I just hard code it? Thanks for your help