signDidOperations method

Signed<ByteData> signDidOperations(
  1. KeyId id,
  2. ByteData data
)

Implementation

Ssi.Signed<ByteData> signDidOperations(KeyId id, ByteData data) {
  final nativeData = ByteSlice.fromBytes(data);
  try {
    final signedFfi = DartApi.native.morpheusPrivate
        .signDidOperations(_ffi, id.ffi, nativeData.addressOf)
        .extract((resp) => resp.asPointer<Void>());
    return _toSsiSignedBytes(signedFfi, data);
  } finally {
    nativeData.dispose();
  }
}