Skip to content

Commit 4dea4ef

Browse files
authored
Merge pull request #14 from Zondax/dev
Add more instructions
2 parents f7d2088 + cf33206 commit 4dea4ef

File tree

4 files changed

+111
-48
lines changed

4 files changed

+111
-48
lines changed

app.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ package ledger_filecoin_go
1818

1919
import (
2020
"fmt"
21-
"github.com/zondax/ledger-go"
21+
22+
ledger_go "github.com/zondax/ledger-go"
2223
)
2324

2425
const (
@@ -27,6 +28,9 @@ const (
2728
INSGetVersion = 0
2829
INSGetAddrSECP256K1 = 1
2930
INSSignSECP256K1 = 2
31+
INSSignDataCap = 5
32+
INSSignClientDeal = 6
33+
INSSignRawBytes = 7
3034
)
3135

3236
const (

app_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ package ledger_filecoin_go
1919
import (
2020
"encoding/hex"
2121
"fmt"
22-
"github.com/btcsuite/btcd/btcec"
22+
"testing"
23+
24+
"github.com/btcsuite/btcd"
2325
"github.com/ipsn/go-secp256k1"
2426
"github.com/stretchr/testify/assert"
2527
"github.com/stretchr/testify/require"
2628
"golang.org/x/crypto/blake2b"
27-
"testing"
2829
)
2930

3031
// Ledger Test Mnemonic: equip will roof matter pink blind book anxiety banner elbow sun young

go.mod

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,42 @@
11
module github.com/zondax/ledger-filecoin-go
22

3-
go 1.13
3+
go 1.21
44

55
require (
6-
github.com/btcsuite/btcd v0.20.1-beta
6+
github.com/btcsuite/btcd v0.24.0
77
github.com/ipsn/go-secp256k1 v0.0.0-20180726113642-9d62b9f0bc52
88
github.com/stretchr/testify v1.7.0
99
github.com/zondax/ledger-go v0.14.3
10-
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
10+
golang.org/x/crypto v0.17.0
11+
)
12+
13+
require (
14+
github.com/aead/siphash v1.0.1 // indirect
15+
github.com/btcsuite/btcd/btcec/v2 v2.1.3 // indirect
16+
github.com/btcsuite/btcd/btcutil v1.1.5 // indirect
17+
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
18+
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect
19+
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect
20+
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect
21+
github.com/btcsuite/winsvc v1.0.0 // indirect
22+
github.com/davecgh/go-spew v1.1.1 // indirect
23+
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
24+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
25+
github.com/decred/dcrd/lru v1.0.0 // indirect
26+
github.com/golang/protobuf v1.5.2 // indirect
27+
github.com/golang/snappy v0.0.4 // indirect
28+
github.com/jessevdk/go-flags v1.4.0 // indirect
29+
github.com/jrick/logrotate v1.0.0 // indirect
30+
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23 // indirect
31+
github.com/pkg/errors v0.9.1 // indirect
32+
github.com/pmezard/go-difflib v1.0.0 // indirect
33+
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
34+
github.com/zondax/hid v0.9.2 // indirect
35+
golang.org/x/net v0.10.0 // indirect
36+
golang.org/x/sys v0.15.0 // indirect
37+
golang.org/x/text v0.14.0 // indirect
38+
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
39+
google.golang.org/grpc v1.50.1 // indirect
40+
google.golang.org/protobuf v1.28.1 // indirect
41+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
1142
)

0 commit comments

Comments
 (0)