signDataItem()
Othent JS SDK signDataItem() function
Last updated
Othent JS SDK signDataItem() function
Last updated
The signDataItem()
function allows you to create and sign a DataItem
object, compatible with . These data items can then be submitted to an compatible bundler.
Bug: Using signDataItem()
and then calling dataItem.isValid()
always returns false
, so the example below will never submit the data item to a bundler. Track the progress on this .
This function assumes (and requires) a user is authenticated. See .
dataItem: DataItem
The bundled data item's data (not ) to sign.
return Promise<ArrayBufferLike>
A Promise
containing an ArrayBuffer
with the DataItem
's signed data, which can be loaded into a for validation.