helium / helium-wallet-rs

Rust implementation of a helium wallet CLI
Apache License 2.0
258 stars 114 forks source link

Support for dragino gateways #137

Closed astritm closed 3 years ago

astritm commented 3 years ago

How do we make it work in Dragino gateways (LPS8):

root@dragino-1f8d74:/# uname -a Linux dragino-1f8d74 4.9.109 #0 Fri Jun 29 16:58:53 2018 mips GNU/Linux

root@dragino-1f8d74:/tmp/helium-wallet-v1.5.4-x86-64-linux# ./helium-wallet info ./helium-wallet: line 1: syntax error: unterminated quoted string

mfalkvidd commented 3 years ago

Could you expand on the reason you want to run your wallet on a gateway? Isn't it easier (and more secure) to run it on a separate machine (Linux, MacOS or Windows)?

astritm commented 3 years ago

Hi Mikael,

Thanks for replying... Indeed, it's more secure to have the wallet in a separate machine. However, as explained in helium docs about onboarding light gateways as part of Milestone 1.5, I thought the wallet should be part of the gateway.

https://docs.helium.com/mine-hnt/light-hotspots/guides/dragino/ "This process will require using the Helium command-line interface (CLI) Wallet https://github.com/helium/helium-wallet-rs to submit the onboarding and assert location transactions."

Thanks, Astrit

On Fri, May 21, 2021 at 3:00 PM Mikael Falkvidd @.***> wrote:

Could you expand on the reason you want to run your wallet on a gateway? Isn't it easier (and more secure) to run it on a separate machine (Linux, MacOS or Windows)?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/helium/helium-wallet-rs/issues/137#issuecomment-845933469, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2Q4ZZNBGD73HZLEQZ4KZDTOZKQJANCNFSM45I7CVAQ .

--

Astrit Morina

mfalkvidd commented 3 years ago

Yes, that doc is not very clear. I am pretty sure you can run the wallet elsewhere. That's how it worked for the DIY packet forwarders back in fall of 2020 and I don't see any reason to run the wallet on a light gateway either.

astritm commented 3 years ago

I see! And how do you make payments for Assert Locations?

On Fri, May 21, 2021 at 3:17 PM Mikael Falkvidd @.***> wrote:

Yes, that doc is not very clear. I am pretty sure you can run the wallet elsewhere. That's how it worked for the DIY packet forwarders back in fall of 2020 and I don't see any reason to run the wallet on a light gateway either.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/helium/helium-wallet-rs/issues/137#issuecomment-845943547, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2Q4Z6SDRJBQOHGB27DO6TTOZMOVANCNFSM45I7CVAQ .

--

Astrit Morina

mfalkvidd commented 3 years ago

I think all that's needed is to follow the instructions in the help:

./helium-wallet hotspots assert --help
helium-wallet-hotspots-assert 1.5.4
Assert a hotspot location on the blockchain. The original transaction is created by the hotspot miner and supplied here
for owner signing. Use an onboarding key to get the transaction signed by the DeWi staking server

USAGE:
    helium-wallet hotspots assert [FLAGS] [OPTIONS] --gateway <gateway> --lat <lat> --lon <lon>

FLAGS:
        --commit
    -h, --help          Prints help information
        --onboarding    Use the DeWi "staking" server to pay for the assert location. Note that no, or only a limited
                        number of asserts may available for use by the staking server
    -V, --version       Prints version information

OPTIONS:
        --elevation <elevation>    The elevation for the asserted hotspot in meters relative to sea level. Defaults to
                                   the last assserted value
        --gain <gain>              The antenna gain for the asserted hotspotin dBi, with one digit of accuracy. Defaults
                                   to the last asserted value
        --gateway <gateway>        Address of hotspot to assert
        --lat <lat>                Lattitude of hotspot location to assert
        --lon <lon>                Longitude of hotspot location to assert
madninja commented 3 years ago

but NOTE Light hotspot support hasn't been enabled yet on mainnet