Skip to content

Commit

Permalink
plugin methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ak88 committed Mar 21, 2024
1 parent 1034179 commit 503db49
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ public class ClefSignerPlugin : INethermindPlugin
{
private INethermindApi? _nethermindApi;

public string Name => throw new NotImplementedException();
public string Name => "Clef signer";

public string Description => throw new NotImplementedException();
public string Description => "Enabled signing from a remote Clef instance over Json RPC.";

public string Author => throw new NotImplementedException();
public string Author => "Nethermind";

public ValueTask DisposeAsync()
{
throw new NotImplementedException();
return ValueTask.CompletedTask;
}

public Task Init(INethermindApi nethermindApi)
Expand All @@ -52,9 +52,10 @@ public async Task InitRpcModules()
{
if (!string.IsNullOrEmpty(miningConfig.Signer))
{
ClefSigner signerAndStore =
JsonRpcUrl.Parse(miningConfig.Signer);
ClefSigner signer =
await SetupExternalSigner(miningConfig.Signer, _nethermindApi.Config<IKeyStoreConfig>().BlockAuthorAccount);
_nethermindApi.EngineSigner = signerAndStore;
_nethermindApi.EngineSigner = signer;
}
}
}
Expand Down

0 comments on commit 503db49

Please sign in to comment.