Commit e5adfee8 authored by huanyu's avatar huanyu

修复签名 公私钥问题

parent 2d7a3b17
......@@ -71,8 +71,8 @@ func main() {
var coinName string
//方法名称
var f string
flag.StringVar(&priKey, "pub", "", "PublicKey默认为空")
flag.StringVar(&pubKey, "pri", "", "PublicKey默认为空")
flag.StringVar(&priKey, "pri", "", "PrivateKey默认为空")
flag.StringVar(&pubKey, "pub", "", "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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment