Giter VIP home page Giter VIP logo

ledger-go's Introduction

ledger-go

License GithubActions

This project provides a library to connect to ledger devices.

It handles APDU encapsulation, Zemu and USB (HID) communication.

Linux, OSX and Windows are supported.

Building

go build

ledger-go's People

Contributors

brejski avatar chillyvee avatar claucece avatar cwgoes avatar felipemadero avatar ftheirs avatar jleni avatar mkrufky avatar raynaudoe avatar troian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ledger-go's Issues

Current version doesn't work with linux for me

github.com/zondax/[email protected]/ledger_hid.go has UsagePageLedgerNanoS = 0xffa0

I used admin.ListDevices and got

============ 0001:0014:01
VendorID      : 2c97
ProductID     : 1
Release       : 201
Serial        : 30303031
Manufacturer  : Ledger
Product       : Nano S
UsagePage     : 0
Usage         : 0

So if I set UsagePage : 0
It works for me.

I haven't investigated further, it could be just my machine, my distro (Ubuntu 22.04), my ledger...

🔗 zboto Link

Empty error message when signing

I'm signing a transaction using gaiad binary (v13.0.1) on the CLI, but ran into an error with no error message. Checked with another binary (kujirad, v0.9.1), same issue. Tried upgrading to ledger-go v0.14.3 with no change in behaviour. I suspect its related to this new version of Ledger OS.

gaiad tx bank send cosmos1…2d cosmos1…2d 1uatom --from ledger 

Default sign-mode 'direct' not supported by Ledger, using sign-mode 'amino-json'.
Error: 
Usage:
  gaiad tx bank send [from_key_or_address] [to_address] [amount] [flags]

Flags:
…

Some debugging led me to this line:

if sw != 0x9000 {
  return response[:swOffset], errors.New(ErrorMessage(sw))
}

sw had a value of 0x6984.

Setup:
ledger-go v0.14.3
ledger Nano X
ledger OS v2.2.3
Cosmos App v2.34.12

polkadot SignEd25519 error

I requested the SignEd25519 method to return an error:

[APDU_CODE_DATA_INVALID] Referenced data reversibly blocked (invalidated)

this is my transaction data:

04004597993318909e62ef6dc57a90cf2be0de8174930e27b64a9f288b2e42e504020700e40b54020000002f00000003000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423ee143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.