fromSecretKey static method

Ed25519KeyIdentity fromSecretKey(
  1. Uint8List secretKey
)

Implementation

static Ed25519KeyIdentity fromSecretKey(Uint8List secretKey) {
  final keyPair = SigningKey.fromValidBytes(secretKey);
  final identity = Ed25519KeyIdentity.fromKeyPair(
    keyPair.publicKey.asTypedList,
    secretKey,
  );
  return identity;
}