bitboxEncrypt method

  1. @override
BuBytes bitboxEncrypt({
  1. required BuBytes plaintext,
})
override

BitBox02: encrypts one message; throws CryptoException on native failure.

Implementation

@override
BuBytes bitboxEncrypt({required BuBytes plaintext}) {
  return api.bitboxEncrypt(plaintext: plaintext).unwrapOrThrowCryptoError();
}