sign method

SignedBundle sign(
  1. PrivateKey privateKey
)

Implementation

SignedBundle sign(PrivateKey privateKey) {
  final signed = DartApi.native.coeusNoncedBundle
      .sign(_ffi, privateKey.ffi)
      .extract((res) => res.asPointer<Void>());
  return SignedBundle(signed, true);
}