buildSignedExitPromoter function
Build a signed validator exit body (legacy name).
Implementation
Map<String, Object?> buildSignedExitPromoter({
String networkId = kNetworkId,
required int timestamp,
required Object fee,
required int nonce,
required String senderAddress,
required String publicKey,
required String promoterKey,
required String privHex,
}) {
final s = _sign(networkId, timestamp, fee, nonce, senderAddress, privHex,
exitPromoterPayload(promoterKey: promoterKey));
return {
'timestamp': timestamp,
'fee': normalizeAmount(fee),
'nonce': nonce,
'senderAddress': senderAddress,
'validatorKey': promoterKey,
'hash': s['hash'],
'senderSignature': s['signature'],
'senderPublicKey': publicKey,
};
}