encodeAndSign method

Uint8List encodeAndSign(
  1. dynamic registry,
  2. SignatureType signatureType,
  3. KeyPair keyPair
)

Encodes the payload and signs it with the supplied keypair registry The registry signatureType The signature type keyPair The keypair Returns Uint8List Signature

Implementation

Uint8List encodeAndSign(
    dynamic registry, SignatureType signatureType, keyring.KeyPair keyPair) {
  return keyPair.sign(encode(registry, signatureType));
}