credentialsFromPrivateKey method

  1. @Deprecated('Use EthPrivateKey.fromHex instead')
Future<EthPrivateKey> credentialsFromPrivateKey(
  1. String privateKey
)

Constructs a new Credentials with the provided privateKey by using an EthPrivateKey.

Implementation

@Deprecated('Use EthPrivateKey.fromHex instead')
Future<EthPrivateKey> credentialsFromPrivateKey(String privateKey) {
  return Future.value(EthPrivateKey.fromHex(privateKey));
}