credentialsFromPrivateKey method

Future<ToplSigningKey> credentialsFromPrivateKey(
  1. String privateKey,
  2. NetworkId network,
  3. PropositionType propositionType
)

Constructs a new Credentials with the provided privateKey by using a ToplSigningKey.

Implementation

Future<ToplSigningKey> credentialsFromPrivateKey(
    String privateKey, NetworkId network, PropositionType propositionType) {
  return _operations.privateKeyFromString(
      network, propositionType, privateKey);
}