Add ed25519, tests will fail until ed25519 verification fix

This commit is contained in:
Christopher Goes
2018-05-30 03:42:47 +02:00
parent 3186dc4cef
commit ee411daa17
4 changed files with 214 additions and 14 deletions

19
ledger_common.go Normal file
View File

@ -0,0 +1,19 @@
package crypto
import (
ledger "github.com/zondax/ledger-goclient"
)
var device *ledger.Ledger
// Ledger derivation path
type DerivationPath = []uint32
// getLedger gets a copy of the device, and caches it
func getLedger() (*ledger.Ledger, error) {
var err error
if device == nil {
device, err = ledger.FindLedger()
}
return device, err
}