keyByPublicKey method

Bip44Key keyByPublicKey(
  1. SecpPublicKey secpPk
)

Implementation

Bip44Key keyByPublicKey(SecpPublicKey secpPk) {
  final ffiKey = DartApi.native.hydraPrivate
      .keyByPk(_ffi, secpPk.ffi)
      .extract((resp) => resp.asPointer<Void>());
  return Bip44Key(ffiKey, true);
}