addKey method
Implementation
MorpheusOperation addKey(String authentication, int expiresAtHeight) {
final nativeAuth = authentication.toNativeUtf8();
try {
final op = DartApi.native.morpheusOperationBuilder
.addKey(_ffi, nativeAuth, expiresAtHeight)
.extract((res) => res.asPointer<Void>());
return MorpheusOperation(op, true);
} finally {
calloc.free(nativeAuth);
}
}