encodeAndSign method
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));
}