signToSignature method

  1. @override
Future<SignatureBase> signToSignature(
  1. List<int> payload
)
override

Signs the payload with a private key and returns the obtained signature.

Implementation

@override
Future<SignatureBase> signToSignature(List<int> payload) async {
  return Bip32SigningKey(Uint8List.fromList(privateKey))
      .sign(payload)
      .signature;
}