identityEncode method

  1. @override
BuBytes identityEncode({
  1. required String proto,
  2. String user = '',
  3. String host = '',
  4. String port = '',
  5. String path = '',
  6. int index = 0,
})
override

Trezor: encodes IdentityType; throws CryptoException on native failure.

Implementation

@override
BuBytes identityEncode({
  required String proto,
  String user = '',
  String host = '',
  String port = '',
  String path = '',
  int index = 0,
}) {
  return api
      .identityEncode(
        proto: proto,
        user: user,
        host: host,
        port: port,
        path: path,
        index: index,
      )
      .unwrapOrThrowCryptoError();
}