Skip to content

Public method for signing a transaction #122

@ghost

Description

We are developing a software in .NET for interacting with IC using the EdjCase.ICP.Agent nuget package (https://www.nuget.org/packages/EdjCase.ICP.Agent). Our software basically consists of two components: the server side app (webapi) and the client side app (a console app), that securely holds the private key.

In our flow, the transaction submission process is divided into 4 steps:

  1. on the server side - prepare the transaction to be signed,
  2. on the client side - retrieve the (nonsigned) transaction from the server side, sign it and send the signed transaction back to the server-side,
  3. on the server side - submit the signed transaction to the IC using HTTP.API,
  4. on the server side - check the status of the transaction.

In the EdjCase.ICP.Agent library, steps 1-3 are performed within a private SendAsync method:
https://github.com/BoomDAO/ICP.NET/blob/93072497d0ea15e1460bb4161c4e39b7066c5851/src/Agent/Agents/HttpAgent.cs#L229.

What we would need to accomplish our flow, is to split this private method into 3 separate public methods:

icnuget

Can this functionality be added to the EdjCase.ICP.Agent nuget package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions