Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go_coin_util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
huanyu
go_coin_util
Commits
e5adfee8
Commit
e5adfee8
authored
Oct 26, 2020
by
huanyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复签名 公私钥问题
parent
2d7a3b17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
run.go
run/run.go
+2
-3
No files found.
run/run.go
View file @
e5adfee8
...
...
@@ -71,8 +71,8 @@ func main() {
var
coinName
string
//方法名称
var
f
string
flag
.
StringVar
(
&
priKey
,
"p
ub"
,
""
,
"Public
Key默认为空"
)
flag
.
StringVar
(
&
pubKey
,
"p
ri
"
,
""
,
"PublicKey默认为空"
)
flag
.
StringVar
(
&
priKey
,
"p
ri"
,
""
,
"Private
Key默认为空"
)
flag
.
StringVar
(
&
pubKey
,
"p
ub
"
,
""
,
"PublicKey默认为空"
)
flag
.
StringVar
(
&
coinName
,
"coin"
,
""
,
"Coin默认为空"
)
flag
.
StringVar
(
&
f
,
"f"
,
""
,
"function默认为空"
)
flag
.
Uint64Var
(
&
nonce
,
"nonce"
,
0
,
"nonce默认为空"
)
...
...
@@ -97,7 +97,6 @@ func main() {
replace
:=
strings
.
Replace
(
signedtx
,
"
\n
"
,
""
,
-
1
)
result
:=
filutils
.
SignedMessage
{}
json
.
Unmarshal
([]
byte
(
replace
),
&
result
)
fmt
.
Println
(
result
)
signInfo
:=
bean
.
SignatureInfo
{
TxId
:
txid
,
HexTx
:
hextx
,
...
...
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