keyByAddress method

Bip44PublicKey keyByAddress(
  1. String address
)

Implementation

Bip44PublicKey keyByAddress(String address) {
  final nativeAddr = address.toNativeUtf8();
  try {
    final bip44PubKey = DartApi.native.hydraPublic
        .keyByAddress(_ffi, nativeAddr)
        .extract((res) => res.asPointer<Void>());
    return Bip44PublicKey(bip44PubKey, true);
  } finally {
    calloc.free(nativeAddr);
  }
}