Skip to content
Snippets Groups Projects
Commit e2ed9c5c authored by poka's avatar poka
Browse files

fix identity revocation call

parent 3825bf04
No related branches found
No related tags found
1 merge request!29Revocation mechanisme
Pipeline #17112 waiting for manual action
...@@ -854,7 +854,9 @@ newKeySig: $newKeySig"""); ...@@ -854,7 +854,9 @@ newKeySig: $newKeySig""");
// final pubkeyHexa = '0x${HEX.encode(pubkey)}'; // final pubkeyHexa = '0x${HEX.encode(pubkey)}';
final messageToSign = final messageToSign =
Uint8List.fromList(prefix + genesisHash + idtyIndexBytes); Uint8List.fromList(prefix + genesisHash + idtyIndexBytes);
final revocationSig = await _signMessage(messageToSign, address, password); final revocationSig =
(await _signMessage(messageToSign, address, password)).substring(2);
final revocationSigTyped = '0x01$revocationSig';
final txInfo = TxInfoData( final txInfo = TxInfoData(
'identity', 'identity',
...@@ -863,9 +865,10 @@ newKeySig: $newKeySig"""); ...@@ -863,9 +865,10 @@ newKeySig: $newKeySig""");
); );
log.d('''DEBUGG: messageToSign: $messageToSign log.d('''DEBUGG: messageToSign: $messageToSign
revocationSig: $revocationSig'''); revocationSig: $revocationSig
revocationSigTyped: $revocationSigTyped''');
final txOptions = [idtyIndex, address, revocationSig]; final txOptions = [idtyIndex, address, revocationSigTyped];
return await _executeCall(txInfo, txOptions, password); return await _executeCall(txInfo, txOptions, password);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment