Skip to content

IEthereumTransaction #1

@MelbourneDeveloper

Description

@MelbourneDeveloper

The IEthereumTransaction interface is being constructed. This interface represents an Ethereum transaction to be signed by a hardware wallet. I'm looking for people to review this structure as it will be rolled out across Ledger.Net, Trezor.Net, and KeepKey.Net.

The code is here:
https://github.com/MelbourneDeveloper/Hardwarewallets.Net/blob/IEthereumWallet/src/Hardwarewallets.Net/Ethereum/IEthereumTransaction.cs

One questionable aspect of this interface is that I have suggested that decimal data types should be used. In each case, the decimal represents the value in ETH - not WEI or GWEI. The rationale behind this is that this library sits on top of multiple different coin types, and to maintain compatibility across coins, a standard should be used to represent values as users would see them on exchanges and so on. WEI and GWEI are Ethereum specific just as Satoshis are Bitcoin specific.

However, i can't guarantee that decimals will be able to represent all ETH values. Can I get a confirmation on whether or not decimal is reasonable? Should we use BigInteger? If so, can we at least keep a standard of one unit of measure instead of three different ones (WEI, GWEI, ETH)?

@thatslyguy, @juanfranblanco

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions