masterSkToPoolingAuthenticationSk static method

Future<PrivateKey> masterSkToPoolingAuthenticationSk(
  1. PrivateKey masterSk,
  2. int poolWalletIndex,
  3. int index
)

Obtain pooling authentication private key from master private key

Implementation

static Future<PrivateKey> masterSkToPoolingAuthenticationSk(
  PrivateKey masterSk,
  int poolWalletIndex,
  int index,
) async {
  final sk = await api.pubMasterToPoolAuthentication(
    sk: masterSk.byteList,
    poolWalletIdx: poolWalletIndex,
    idx: poolWalletIndex,
  );
  return PrivateKey(sk);
}