Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
89db65bd
Unverified
Commit
89db65bd
authored
Feb 07, 2022
by
Conner Fromknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: satisfy linter due to duplicate unused method
parent
f52fc61e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
crypto.go
go/bss-core/crypto.go
+0
-33
No files found.
go/bss-core/crypto.go
View file @
89db65bd
...
@@ -140,36 +140,3 @@ func ParseWalletPrivKeyAndContractAddr(
...
@@ -140,36 +140,3 @@ func ParseWalletPrivKeyAndContractAddr(
return
privKey
,
contractAddress
,
nil
return
privKey
,
contractAddress
,
nil
}
}
// parseWalletPrivKeyAndContractAddr returns the wallet private key to use for
// sending transactions as well as the contract address to send to for a
// particular sub-service.
func
parseWalletPrivKeyAndContractAddr
(
name
string
,
mnemonic
string
,
hdPath
string
,
privKeyStr
string
,
contractAddrStr
string
,
)
(
*
ecdsa
.
PrivateKey
,
common
.
Address
,
error
)
{
// Parse wallet private key from either privkey string or BIP39 mnemonic
// and BIP32 HD derivation path.
privKey
,
err
:=
GetConfiguredPrivateKey
(
mnemonic
,
hdPath
,
privKeyStr
)
if
err
!=
nil
{
return
nil
,
common
.
Address
{},
err
}
// Parse the target contract address the wallet will send to.
contractAddress
,
err
:=
ParseAddress
(
contractAddrStr
)
if
err
!=
nil
{
return
nil
,
common
.
Address
{},
err
}
// Log wallet address rather than private key...
walletAddress
:=
crypto
.
PubkeyToAddress
(
privKey
.
PublicKey
)
log
.
Info
(
name
+
" wallet params parsed successfully"
,
"wallet_address"
,
walletAddress
,
"contract_address"
,
contractAddress
)
return
privKey
,
contractAddress
,
nil
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment