I just need to confirm if I understood this right:
In order to give another user permission to write to my mdata I have to:
- get his app pubSignKey as byte
- convert the byte to NativeHandle using
NativeBindings.signPubKeyNew()
- get permissions NativeHandle with
mdataListPermissions
- use
mdataPermissionsInsert()
to insert new permissions for the given user/app.
I see that there is also method mdataSetUserPermissions()
which seems easier to use. Will it do the same?