File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ import (
1717// options stores the Ledger Options that can be used to customize Ledger usage
1818var options Options
1919
20+ // AppName defines the Ledger app used for signing. Cosmos SDK uses the Cosmos app
21+ const AppName = "Cosmos"
22+
2023type (
2124 // discoverLedgerFn defines a Ledger discovery function that returns a
2225 // connected device or an error upon failure. Its allows a method to avoid CGO
@@ -66,7 +69,7 @@ func initOptionsDefault() {
6669 options .createPubkey = func (key []byte ) types.PubKey {
6770 return & secp256k1.PubKey {Key : key }
6871 }
69- options .appName = "Cosmos"
72+ options .appName = AppName
7073 options .skipDERConversion = false
7174}
7275
@@ -90,6 +93,11 @@ func SetSkipDERConversion() {
9093 options .skipDERConversion = true
9194}
9295
96+ // Set the skip DER Conversion requirement to default false
97+ func SetDERConversion () {
98+ options .skipDERConversion = false
99+ }
100+
93101// NewPrivKeySecp256k1Unsafe will generate a new key and store the public key for later use.
94102//
95103// This function is marked as unsafe as it will retrieve a pubkey without user verification.
You can’t perform that action at this time.
0 commit comments