Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
6fc4d52e
Commit
6fc4d52e
authored
Jan 22, 2021
by
madengji
Committed by
vipwzw
Sep 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add transfer proof
parent
25cf36cb
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1304 additions
and
418 deletions
+1304
-418
mix.go
plugin/dapp/mix/commands/mix.go
+42
-88
mix.go
plugin/dapp/mix/executor/mix.go
+2
-23
transfer.go
plugin/dapp/mix/executor/transfer.go
+8
-17
mix.proto
plugin/dapp/mix/proto/mix.proto
+56
-7
rpc.go
plugin/dapp/mix/rpc/rpc.go
+3
-12
mix.go
plugin/dapp/mix/types/mix.go
+6
-0
mix.pb.go
plugin/dapp/mix/types/mix.pb.go
+643
-236
type.go
plugin/dapp/mix/types/type.go
+39
-0
exec.go
plugin/dapp/mix/wallet/exec.go
+8
-0
mixbizdb_test.go
plugin/dapp/mix/wallet/mixbizdb_test.go
+3
-2
mixsignature.go
plugin/dapp/mix/wallet/mixsignature.go
+26
-33
proof.go
plugin/dapp/mix/wallet/proof.go
+430
-0
proof_test.go
plugin/dapp/mix/wallet/proof_test.go
+38
-0
No files found.
plugin/dapp/mix/commands/mix.go
View file @
6fc4d52e
...
@@ -930,8 +930,7 @@ func ProofCmd() *cobra.Command {
...
@@ -930,8 +930,7 @@ func ProofCmd() *cobra.Command {
Short
:
"circuit proof inputs"
,
Short
:
"circuit proof inputs"
,
}
}
cmd
.
AddCommand
(
DepositInputsCmd
())
cmd
.
AddCommand
(
DepositInputsCmd
())
cmd
.
AddCommand
(
PayInInputsCmd
())
cmd
.
AddCommand
(
TransferInputsCmd
())
cmd
.
AddCommand
(
PayOutInputsCmd
())
cmd
.
AddCommand
(
WithdrawInputsCmd
())
cmd
.
AddCommand
(
WithdrawInputsCmd
())
cmd
.
AddCommand
(
AuthInputsCmd
())
cmd
.
AddCommand
(
AuthInputsCmd
())
...
@@ -957,7 +956,7 @@ func depositSecretCmdFlags(cmd *cobra.Command) {
...
@@ -957,7 +956,7 @@ func depositSecretCmdFlags(cmd *cobra.Command) {
cmd
.
Flags
()
.
StringP
(
"authorize"
,
"a"
,
""
,
"authorize addr"
)
cmd
.
Flags
()
.
StringP
(
"authorize"
,
"a"
,
""
,
"authorize addr"
)
cmd
.
Flags
()
.
StringP
(
"amount"
,
"m"
,
""
,
"amount"
)
cmd
.
Flags
()
.
Uint64P
(
"amount"
,
"m"
,
0
,
"amount"
)
cmd
.
MarkFlagRequired
(
"amount"
)
cmd
.
MarkFlagRequired
(
"amount"
)
}
}
...
@@ -967,7 +966,7 @@ func depositSecret(cmd *cobra.Command, args []string) {
...
@@ -967,7 +966,7 @@ func depositSecret(cmd *cobra.Command, args []string) {
payment
,
_
:=
cmd
.
Flags
()
.
GetString
(
"payment"
)
payment
,
_
:=
cmd
.
Flags
()
.
GetString
(
"payment"
)
returnKey
,
_
:=
cmd
.
Flags
()
.
GetString
(
"return"
)
returnKey
,
_
:=
cmd
.
Flags
()
.
GetString
(
"return"
)
authorize
,
_
:=
cmd
.
Flags
()
.
GetString
(
"authorize"
)
authorize
,
_
:=
cmd
.
Flags
()
.
GetString
(
"authorize"
)
amount
,
_
:=
cmd
.
Flags
()
.
Get
String
(
"amount"
)
amount
,
_
:=
cmd
.
Flags
()
.
Get
Uint64
(
"amount"
)
req
:=
&
mixTy
.
DepositProofReq
{
req
:=
&
mixTy
.
DepositProofReq
{
PaymentAddr
:
payment
,
PaymentAddr
:
payment
,
...
@@ -981,89 +980,53 @@ func depositSecret(cmd *cobra.Command, args []string) {
...
@@ -981,89 +980,53 @@ func depositSecret(cmd *cobra.Command, args []string) {
ctx
.
Run
()
ctx
.
Run
()
}
}
//
Deposit
InputsCmd get para chain status by height
//
Transfer
InputsCmd get para chain status by height
func
PayIn
InputsCmd
()
*
cobra
.
Command
{
func
Transfer
InputsCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"
payin
"
,
Use
:
"
transfer
"
,
Short
:
"one key get
pay in
put data"
,
Short
:
"one key get
transfer input out
put data"
,
Run
:
payIn
Secret
,
Run
:
transfer
Secret
,
}
}
payIn
SecretCmdFlags
(
cmd
)
transfer
SecretCmdFlags
(
cmd
)
return
cmd
return
cmd
}
}
func
payInSecretCmdFlags
(
cmd
*
cobra
.
Command
)
{
func
transferSecretCmdFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"payment"
,
"p"
,
""
,
"payment addr"
)
cmd
.
Flags
()
.
StringP
(
"noteHash"
,
"n"
,
""
,
"note hash to spend"
)
cmd
.
MarkFlagRequired
(
"payment"
)
cmd
.
MarkFlagRequired
(
"noteHash"
)
cmd
.
Flags
()
.
StringP
(
"return"
,
"r"
,
""
,
"return addr"
)
cmd
.
Flags
()
.
StringP
(
"authorize"
,
"a"
,
""
,
"authorize addr"
)
cmd
.
Flags
()
.
StringP
(
"amount"
,
"m"
,
""
,
"amount"
)
cmd
.
MarkFlagRequired
(
"amount"
)
}
func
payInSecret
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
payment
,
_
:=
cmd
.
Flags
()
.
GetString
(
"payment"
)
returnKey
,
_
:=
cmd
.
Flags
()
.
GetString
(
"return"
)
authorize
,
_
:=
cmd
.
Flags
()
.
GetString
(
"authorize"
)
amount
,
_
:=
cmd
.
Flags
()
.
GetString
(
"amount"
)
req
:=
&
mixTy
.
DepositProofReq
{
PaymentAddr
:
payment
,
ReturnAddr
:
returnKey
,
AuthorizeAddr
:
authorize
,
Amount
:
amount
,
}
var
res
mixTy
.
DHSecretGroup
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"mix.PayInProof"
,
req
,
&
res
)
ctx
.
Run
()
}
// DepositInputsCmd get para chain status by height
func
PayOutInputsCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"payout"
,
Short
:
"one key get payout input data"
,
Run
:
payOutSecret
,
}
payOutSecretCmdFlags
(
cmd
)
return
cmd
}
func
payOutSecretCmdFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"toAddr"
,
"t"
,
""
,
"transfer to addr"
)
cmd
.
Flags
()
.
StringP
(
"payment"
,
"p"
,
""
,
"payment addr"
)
cmd
.
MarkFlagRequired
(
"toAddr"
)
cmd
.
MarkFlagRequired
(
"payment"
)
cmd
.
Flags
()
.
StringP
(
"return"
,
"r"
,
""
,
"return addr"
)
cmd
.
Flags
()
.
StringP
(
"auth"
,
"a"
,
""
,
"transfer to auth addr"
)
cmd
.
MarkFlagRequired
(
"auth"
)
cmd
.
Flags
()
.
StringP
(
"authorize"
,
"a"
,
""
,
"authorize addr"
)
cmd
.
Flags
()
.
StringP
(
"returner"
,
"r"
,
""
,
"transfer to returner addr"
)
cmd
.
MarkFlagRequired
(
"returner"
)
cmd
.
Flags
()
.
StringP
(
"amount"
,
"m"
,
""
,
"
amount"
)
cmd
.
Flags
()
.
Uint64P
(
"amount"
,
"m"
,
0
,
"transfer
amount"
)
cmd
.
MarkFlagRequired
(
"amount"
)
cmd
.
MarkFlagRequired
(
"amount"
)
}
}
func
payOut
Secret
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
transfer
Secret
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
payment
,
_
:=
cmd
.
Flags
()
.
GetString
(
"payment"
)
noteHash
,
_
:=
cmd
.
Flags
()
.
GetString
(
"noteHash"
)
returnKey
,
_
:=
cmd
.
Flags
()
.
GetString
(
"return"
)
toAddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"toAddr"
)
authorize
,
_
:=
cmd
.
Flags
()
.
GetString
(
"authorize"
)
auth
,
_
:=
cmd
.
Flags
()
.
GetString
(
"auth"
)
amount
,
_
:=
cmd
.
Flags
()
.
GetString
(
"amount"
)
returner
,
_
:=
cmd
.
Flags
()
.
GetString
(
"returner"
)
amount
,
_
:=
cmd
.
Flags
()
.
GetUint64
(
"amount"
)
req
:=
&
mixTy
.
DepositProofReq
{
req
:=
&
mixTy
.
TransferProofReq
{
PaymentAddr
:
payment
,
NoteHash
:
noteHash
,
ReturnAddr
:
returnKey
,
ToAddr
:
toAddr
,
AuthorizeAddr
:
authorize
,
ToAuthAddr
:
auth
,
ReturnAddr
:
returner
,
Amount
:
amount
,
Amount
:
amount
,
}
}
var
res
mixTy
.
Deposit
ProofResp
var
res
mixTy
.
Transfer
ProofResp
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"mix.
PayOut
Proof"
,
req
,
&
res
)
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"mix.
Transfer
Proof"
,
req
,
&
res
)
ctx
.
Run
()
ctx
.
Run
()
}
}
...
@@ -1109,33 +1072,24 @@ func AuthInputsCmd() *cobra.Command {
...
@@ -1109,33 +1072,24 @@ func AuthInputsCmd() *cobra.Command {
}
}
func
authSecretCmdFlags
(
cmd
*
cobra
.
Command
)
{
func
authSecretCmdFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"payment"
,
"p"
,
""
,
"payment addr"
)
cmd
.
Flags
()
.
StringP
(
"noteHash"
,
"n"
,
""
,
"note hash to spend"
)
cmd
.
MarkFlagRequired
(
"payment"
)
cmd
.
MarkFlagRequired
(
"noteHash"
)
cmd
.
Flags
()
.
StringP
(
"return"
,
"r"
,
""
,
"return addr"
)
cmd
.
Flags
()
.
StringP
(
"authorize"
,
"a"
,
""
,
"authorize addr"
)
cmd
.
Flags
()
.
StringP
(
"amount"
,
"m"
,
""
,
"amount"
)
cmd
.
MarkFlagRequired
(
"amount"
)
cmd
.
Flags
()
.
Uint32P
(
"toReturn"
,
"r"
,
0
,
"authorize to returner,0:to payment,1:to returner"
)
cmd
.
MarkFlagRequired
(
"noteHash"
)
}
}
func
authSecret
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
func
authSecret
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
payment
,
_
:=
cmd
.
Flags
()
.
GetString
(
"payment"
)
noteHash
,
_
:=
cmd
.
Flags
()
.
GetString
(
"noteHash"
)
returnKey
,
_
:=
cmd
.
Flags
()
.
GetString
(
"return"
)
toReturn
,
_
:=
cmd
.
Flags
()
.
GetUint32
(
"toReturn"
)
authorize
,
_
:=
cmd
.
Flags
()
.
GetString
(
"authorize"
)
amount
,
_
:=
cmd
.
Flags
()
.
GetString
(
"amount"
)
req
:=
&
mixTy
.
DepositProofReq
{
req
:=
&
mixTy
.
AuthProofReq
{
PaymentAddr
:
payment
,
NoteHash
:
noteHash
,
ReturnAddr
:
returnKey
,
ToReturn
:
toReturn
,
AuthorizeAddr
:
authorize
,
Amount
:
amount
,
}
}
var
res
mixTy
.
DHSecretGrou
p
var
res
mixTy
.
AuthProofRes
p
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"mix.AuthProof"
,
req
,
&
res
)
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"mix.AuthProof"
,
req
,
&
res
)
ctx
.
Run
()
ctx
.
Run
()
}
}
plugin/dapp/mix/executor/mix.go
View file @
6fc4d52e
...
@@ -62,29 +62,8 @@ func (m *Mix) CheckTx(tx *types.Transaction, index int) error {
...
@@ -62,29 +62,8 @@ func (m *Mix) CheckTx(tx *types.Transaction, index int) error {
// mix隐私交易,只私对私需要特殊签名验证
// mix隐私交易,只私对私需要特殊签名验证
return
m
.
DriverBase
.
CheckTx
(
tx
,
index
)
return
m
.
DriverBase
.
CheckTx
(
tx
,
index
)
}
}
minTxFee
:=
m
.
GetAPI
()
.
GetConfig
()
.
GInt
(
"wallet.minFee"
)
_
,
_
,
err
:=
MixTransferInfoVerify
(
m
.
GetStateDB
(),
action
.
GetTransfer
())
_
,
_
,
err
:=
MixTransferInfoVerify
(
m
.
GetStateDB
(),
action
.
GetTransfer
(),
minTxFee
)
if
err
!=
nil
{
mlog
.
Error
(
"checkTx"
,
"err"
,
err
)
return
err
}
return
nil
}
// CheckTx check transaction
func
(
m
*
Mix
)
CheckTx
(
tx
*
types
.
Transaction
,
index
int
)
error
{
action
:=
new
(
mixTy
.
MixAction
)
if
err
:=
types
.
Decode
(
tx
.
Payload
,
action
);
err
!=
nil
{
mlog
.
Error
(
"CheckTx decode"
,
"err"
,
err
)
return
err
}
if
action
.
Ty
!=
mixTy
.
MixActionTransfer
{
// mix隐私交易,只私对私需要特殊签名验证
return
m
.
DriverBase
.
CheckTx
(
tx
,
index
)
}
_
,
_
,
err
:=
MixTransferInfoVerify
(
m
.
GetStateDB
(),
action
.
GetTransfer
())
if
err
!=
nil
{
if
err
!=
nil
{
mlog
.
Error
(
"checkTx"
,
"err"
,
err
)
mlog
.
Error
(
"checkTx"
,
"err"
,
err
)
return
err
return
err
...
...
plugin/dapp/mix/executor/transfer.go
View file @
6fc4d52e
...
@@ -13,7 +13,6 @@ import (
...
@@ -13,7 +13,6 @@ import (
"github.com/consensys/gurvy/bn256/twistededwards"
"github.com/consensys/gurvy/bn256/twistededwards"
dbm
"github.com/33cn/chain33/common/db"
dbm
"github.com/33cn/chain33/common/db"
"github.com/consensys/gurvy/bn256/fr"
"github.com/pkg/errors"
"github.com/pkg/errors"
)
)
...
@@ -72,18 +71,7 @@ func transferOutputVerify(db dbm.KV, proof *mixTy.ZkProofInfo) (*mixTy.TransferO
...
@@ -72,18 +71,7 @@ func transferOutputVerify(db dbm.KV, proof *mixTy.ZkProofInfo) (*mixTy.TransferO
}
}
func
getFee
()
*
twistededwards
.
Point
{
func
VerifyCommitValues
(
inputs
[]
*
mixTy
.
TransferInputPublicInput
,
outputs
[]
*
mixTy
.
TransferOutputPublicInput
,
minFee
int64
)
bool
{
//手续费 可配, 缺省100000, 即0.001, point=fee*G + 0*H
var
fee
fr
.
Element
fee
.
SetUint64
(
100000
)
.
FromMont
()
var
pointFee
twistededwards
.
Point
ed
:=
twistededwards
.
GetEdwardsCurve
()
pointFee
.
ScalarMul
(
&
ed
.
Base
,
fee
)
return
&
pointFee
}
func
VerifyCommitValues
(
inputs
[]
*
mixTy
.
TransferInputPublicInput
,
outputs
[]
*
mixTy
.
TransferOutputPublicInput
)
bool
{
var
inputPoints
,
outputPoints
[]
*
twistededwards
.
Point
var
inputPoints
,
outputPoints
[]
*
twistededwards
.
Point
for
_
,
in
:=
range
inputs
{
for
_
,
in
:=
range
inputs
{
var
p
twistededwards
.
Point
var
p
twistededwards
.
Point
...
@@ -99,7 +87,9 @@ func VerifyCommitValues(inputs []*mixTy.TransferInputPublicInput, outputs []*mix
...
@@ -99,7 +87,9 @@ func VerifyCommitValues(inputs []*mixTy.TransferInputPublicInput, outputs []*mix
outputPoints
=
append
(
outputPoints
,
&
p
)
outputPoints
=
append
(
outputPoints
,
&
p
)
}
}
//out value add fee
//out value add fee
outputPoints
=
append
(
outputPoints
,
getFee
())
//对于平行链来说, 隐私交易需要一个公共账户扣主链的手续费,隐私交易只需要扣平行链执行器内的费用即可
//由于平行链的隐私交易没有实际扣平行链mix合约的手续费,平行链Mix合约会有手续费留下,平行链隐私可以考虑手续费为0
outputPoints
=
append
(
outputPoints
,
mixTy
.
MulCurvePointG
(
uint64
(
minFee
)))
//sum input and output
//sum input and output
sumInput
:=
inputPoints
[
0
]
sumInput
:=
inputPoints
[
0
]
...
@@ -117,7 +107,7 @@ func VerifyCommitValues(inputs []*mixTy.TransferInputPublicInput, outputs []*mix
...
@@ -117,7 +107,7 @@ func VerifyCommitValues(inputs []*mixTy.TransferInputPublicInput, outputs []*mix
return
false
return
false
}
}
func
MixTransferInfoVerify
(
db
dbm
.
KV
,
transfer
*
mixTy
.
MixTransferAction
)
([]
*
mixTy
.
TransferInputPublicInput
,
[]
*
mixTy
.
TransferOutputPublicInput
,
error
)
{
func
MixTransferInfoVerify
(
db
dbm
.
KV
,
transfer
*
mixTy
.
MixTransferAction
,
minFee
int64
)
([]
*
mixTy
.
TransferInputPublicInput
,
[]
*
mixTy
.
TransferOutputPublicInput
,
error
)
{
var
inputs
[]
*
mixTy
.
TransferInputPublicInput
var
inputs
[]
*
mixTy
.
TransferInputPublicInput
var
outputs
[]
*
mixTy
.
TransferOutputPublicInput
var
outputs
[]
*
mixTy
.
TransferOutputPublicInput
...
@@ -137,7 +127,7 @@ func MixTransferInfoVerify(db dbm.KV, transfer *mixTy.MixTransferAction) ([]*mix
...
@@ -137,7 +127,7 @@ func MixTransferInfoVerify(db dbm.KV, transfer *mixTy.MixTransferAction) ([]*mix
outputs
=
append
(
outputs
,
out
)
outputs
=
append
(
outputs
,
out
)
}
}
if
!
VerifyCommitValues
(
inputs
,
outputs
)
{
if
!
VerifyCommitValues
(
inputs
,
outputs
,
minFee
)
{
return
nil
,
nil
,
errors
.
Wrap
(
mixTy
.
ErrSpendInOutValueNotMatch
,
"verifyValue"
)
return
nil
,
nil
,
errors
.
Wrap
(
mixTy
.
ErrSpendInOutValueNotMatch
,
"verifyValue"
)
}
}
...
@@ -150,7 +140,8 @@ func MixTransferInfoVerify(db dbm.KV, transfer *mixTy.MixTransferAction) ([]*mix
...
@@ -150,7 +140,8 @@ func MixTransferInfoVerify(db dbm.KV, transfer *mixTy.MixTransferAction) ([]*mix
3. add nullifier to pool
3. add nullifier to pool
*/
*/
func
(
a
*
action
)
Transfer
(
transfer
*
mixTy
.
MixTransferAction
)
(
*
types
.
Receipt
,
error
)
{
func
(
a
*
action
)
Transfer
(
transfer
*
mixTy
.
MixTransferAction
)
(
*
types
.
Receipt
,
error
)
{
inputs
,
outputs
,
err
:=
MixTransferInfoVerify
(
a
.
db
,
transfer
)
minTxFee
:=
a
.
api
.
GetConfig
()
.
GInt
(
"wallet.minFee"
)
inputs
,
outputs
,
err
:=
MixTransferInfoVerify
(
a
.
db
,
transfer
,
minTxFee
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"Transfer.MixTransferInfoVerify"
)
return
nil
,
errors
.
Wrap
(
err
,
"Transfer.MixTransferInfoVerify"
)
}
}
...
...
plugin/dapp/mix/proto/mix.proto
View file @
6fc4d52e
...
@@ -135,11 +135,7 @@ message WithdrawPublicInput {
...
@@ -135,11 +135,7 @@ message WithdrawPublicInput {
}
}
//加密了的input/output amount
message
commitAmount
{
string
X
=
1
;
string
Y
=
2
;
}
message
TransferInputPublicInput
{
message
TransferInputPublicInput
{
string
treeRootHash
=
1
;
string
treeRootHash
=
1
;
...
@@ -264,7 +260,7 @@ message DepositProofReq{
...
@@ -264,7 +260,7 @@ message DepositProofReq{
string
paymentAddr
=
1
;
string
paymentAddr
=
1
;
string
returnAddr
=
2
;
string
returnAddr
=
2
;
string
authorizeAddr
=
3
;
string
authorizeAddr
=
3
;
string
amount
=
4
;
uint64
amount
=
4
;
}
}
...
@@ -301,7 +297,7 @@ message WithdrawProofResp{
...
@@ -301,7 +297,7 @@ message WithdrawProofResp{
message
AuthProofReq
{
message
AuthProofReq
{
string
noteHash
=
1
;
string
noteHash
=
1
;
uint32
auth
Return
=
2
;
uint32
to
Return
=
2
;
}
}
message
AuthProofResp
{
message
AuthProofResp
{
...
@@ -316,6 +312,59 @@ message AuthProofResp{
...
@@ -316,6 +312,59 @@ message AuthProofResp{
}
}
message
TransferProofReq
{
string
noteHash
=
1
;
string
toAddr
=
2
;
string
toAuthAddr
=
3
;
string
returnAddr
=
4
;
uint64
amount
=
5
;
}
//加密了的input/output amount
message
commitValue
{
string
X
=
1
;
string
Y
=
2
;
}
message
TransferInputProof
{
SecretData
proof
=
1
;
string
nullifierHash
=
2
;
string
authSpendHash
=
3
;
string
noteHash
=
4
;
string
spendPrivKey
=
5
;
uint32
spendFlag
=
6
;
uint32
authFlag
=
7
;
TreePathProof
treeProof
=
8
;
commitValue
commitValue
=
9
;
string
spendRandom
=
10
;
}
message
TransferOutputProof
{
SecretData
proof
=
1
;
string
noteHash
=
2
;
DHSecretGroup
secrets
=
3
;
commitValue
commitValue
=
4
;
string
spendRandom
=
5
;
}
message
TransferProofResp
{
TransferInputProof
transferInput
=
1
;
TransferOutputProof
targetOutput
=
2
;
TransferOutputProof
changeOutput
=
3
;
}
message
CommitValueRst
{
string
noteRandom
=
1
;
string
transferRandom
=
2
;
string
changeRandom
=
3
;
commitValue
note
=
4
;
commitValue
transfer
=
5
;
commitValue
change
=
6
;
}
enum
NoteStatus
{
enum
NoteStatus
{
UNDEF
=
0
;
UNDEF
=
0
;
...
...
plugin/dapp/mix/rpc/rpc.go
View file @
6fc4d52e
...
@@ -142,7 +142,7 @@ func (c *Jrpc) DepositProof(in *mixTy.DepositProofReq, result *json.RawMessage)
...
@@ -142,7 +142,7 @@ func (c *Jrpc) DepositProof(in *mixTy.DepositProofReq, result *json.RawMessage)
return
err
return
err
}
}
func
(
c
*
Jrpc
)
AuthProof
(
in
*
mixTy
.
Deposit
ProofReq
,
result
*
json
.
RawMessage
)
error
{
func
(
c
*
Jrpc
)
AuthProof
(
in
*
mixTy
.
Auth
ProofReq
,
result
*
json
.
RawMessage
)
error
{
reply
,
err
:=
c
.
cli
.
ExecWalletFunc
(
mixTy
.
MixX
,
"AuthProof"
,
in
)
reply
,
err
:=
c
.
cli
.
ExecWalletFunc
(
mixTy
.
MixX
,
"AuthProof"
,
in
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
@@ -151,17 +151,8 @@ func (c *Jrpc) AuthProof(in *mixTy.DepositProofReq, result *json.RawMessage) err
...
@@ -151,17 +151,8 @@ func (c *Jrpc) AuthProof(in *mixTy.DepositProofReq, result *json.RawMessage) err
return
err
return
err
}
}
func
(
c
*
Jrpc
)
PayInProof
(
in
*
mixTy
.
DepositProofReq
,
result
*
json
.
RawMessage
)
error
{
func
(
c
*
Jrpc
)
TransferProof
(
in
*
mixTy
.
TransferProofReq
,
result
*
json
.
RawMessage
)
error
{
reply
,
err
:=
c
.
cli
.
ExecWalletFunc
(
mixTy
.
MixX
,
"PayInProof"
,
in
)
reply
,
err
:=
c
.
cli
.
ExecWalletFunc
(
mixTy
.
MixX
,
"TransferProof"
,
in
)
if
err
!=
nil
{
return
err
}
*
result
,
err
=
types
.
PBToJSON
(
reply
)
return
err
}
func
(
c
*
Jrpc
)
PayOutProof
(
in
*
mixTy
.
DepositProofReq
,
result
*
json
.
RawMessage
)
error
{
reply
,
err
:=
c
.
cli
.
ExecWalletFunc
(
mixTy
.
MixX
,
"PayOutProof"
,
in
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
plugin/dapp/mix/types/mix.go
View file @
6fc4d52e
...
@@ -39,3 +39,9 @@ const (
...
@@ -39,3 +39,9 @@ const (
MixActionTransfer
MixActionTransfer
MixActionAuth
MixActionAuth
)
)
//curve H point
const
(
PointHX
=
"10190477835300927557649934238820360529458681672073866116232821892325659279502"
PointHY
=
"7969140283216448215269095418467361784159407896899334866715345504515077887397"
)
plugin/dapp/mix/types/mix.pb.go
View file @
6fc4d52e
...
@@ -1050,54 +1050,6 @@ func (m *WithdrawPublicInput) GetAmount() string {
...
@@ -1050,54 +1050,6 @@ func (m *WithdrawPublicInput) GetAmount() string {
return
""
return
""
}
}
//加密了的input/output amount
type
CommitAmount
struct
{
X
string
`protobuf:"bytes,1,opt,name=X,proto3" json:"X,omitempty"`
Y
string
`protobuf:"bytes,2,opt,name=Y,proto3" json:"Y,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
CommitAmount
)
Reset
()
{
*
m
=
CommitAmount
{}
}
func
(
m
*
CommitAmount
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitAmount
)
ProtoMessage
()
{}
func
(
*
CommitAmount
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
15
}
}
func
(
m
*
CommitAmount
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_CommitAmount
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
CommitAmount
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_CommitAmount
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
CommitAmount
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CommitAmount
.
Merge
(
m
,
src
)
}
func
(
m
*
CommitAmount
)
XXX_Size
()
int
{
return
xxx_messageInfo_CommitAmount
.
Size
(
m
)
}
func
(
m
*
CommitAmount
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_CommitAmount
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_CommitAmount
proto
.
InternalMessageInfo
func
(
m
*
CommitAmount
)
GetX
()
string
{
if
m
!=
nil
{
return
m
.
X
}
return
""
}
func
(
m
*
CommitAmount
)
GetY
()
string
{
if
m
!=
nil
{
return
m
.
Y
}
return
""
}
type
TransferInputPublicInput
struct
{
type
TransferInputPublicInput
struct
{
TreeRootHash
string
`protobuf:"bytes,1,opt,name=treeRootHash,proto3" json:"treeRootHash,omitempty"`
TreeRootHash
string
`protobuf:"bytes,1,opt,name=treeRootHash,proto3" json:"treeRootHash,omitempty"`
AmountX
string
`protobuf:"bytes,2,opt,name=amountX,proto3" json:"amountX,omitempty"`
AmountX
string
`protobuf:"bytes,2,opt,name=amountX,proto3" json:"amountX,omitempty"`
...
@@ -1113,7 +1065,7 @@ func (m *TransferInputPublicInput) Reset() { *m = TransferInputPublicInp
...
@@ -1113,7 +1065,7 @@ func (m *TransferInputPublicInput) Reset() { *m = TransferInputPublicInp
func
(
m
*
TransferInputPublicInput
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
TransferInputPublicInput
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferInputPublicInput
)
ProtoMessage
()
{}
func
(
*
TransferInputPublicInput
)
ProtoMessage
()
{}
func
(
*
TransferInputPublicInput
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
TransferInputPublicInput
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
6
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
5
}
}
}
func
(
m
*
TransferInputPublicInput
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
TransferInputPublicInput
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1183,7 +1135,7 @@ func (m *TransferOutputPublicInput) Reset() { *m = TransferOutputPublicI
...
@@ -1183,7 +1135,7 @@ func (m *TransferOutputPublicInput) Reset() { *m = TransferOutputPublicI
func
(
m
*
TransferOutputPublicInput
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
TransferOutputPublicInput
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferOutputPublicInput
)
ProtoMessage
()
{}
func
(
*
TransferOutputPublicInput
)
ProtoMessage
()
{}
func
(
*
TransferOutputPublicInput
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
TransferOutputPublicInput
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
7
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
6
}
}
}
func
(
m
*
TransferOutputPublicInput
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
TransferOutputPublicInput
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1246,7 +1198,7 @@ func (m *AuthorizePublicInput) Reset() { *m = AuthorizePublicInput{} }
...
@@ -1246,7 +1198,7 @@ func (m *AuthorizePublicInput) Reset() { *m = AuthorizePublicInput{} }
func
(
m
*
AuthorizePublicInput
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
AuthorizePublicInput
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AuthorizePublicInput
)
ProtoMessage
()
{}
func
(
*
AuthorizePublicInput
)
ProtoMessage
()
{}
func
(
*
AuthorizePublicInput
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
AuthorizePublicInput
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
8
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
7
}
}
}
func
(
m
*
AuthorizePublicInput
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
AuthorizePublicInput
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1307,7 +1259,7 @@ func (m *ExistValue) Reset() { *m = ExistValue{} }
...
@@ -1307,7 +1259,7 @@ func (m *ExistValue) Reset() { *m = ExistValue{} }
func
(
m
*
ExistValue
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ExistValue
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ExistValue
)
ProtoMessage
()
{}
func
(
*
ExistValue
)
ProtoMessage
()
{}
func
(
*
ExistValue
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ExistValue
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
9
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
1
8
}
}
}
func
(
m
*
ExistValue
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
ExistValue
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1346,7 +1298,7 @@ func (m *CommitTreeLeaves) Reset() { *m = CommitTreeLeaves{} }
...
@@ -1346,7 +1298,7 @@ func (m *CommitTreeLeaves) Reset() { *m = CommitTreeLeaves{} }
func
(
m
*
CommitTreeLeaves
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
CommitTreeLeaves
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitTreeLeaves
)
ProtoMessage
()
{}
func
(
*
CommitTreeLeaves
)
ProtoMessage
()
{}
func
(
*
CommitTreeLeaves
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
CommitTreeLeaves
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
20
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
19
}
}
}
func
(
m
*
CommitTreeLeaves
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
CommitTreeLeaves
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1385,7 +1337,7 @@ func (m *CommitTreeRoots) Reset() { *m = CommitTreeRoots{} }
...
@@ -1385,7 +1337,7 @@ func (m *CommitTreeRoots) Reset() { *m = CommitTreeRoots{} }
func
(
m
*
CommitTreeRoots
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
CommitTreeRoots
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitTreeRoots
)
ProtoMessage
()
{}
func
(
*
CommitTreeRoots
)
ProtoMessage
()
{}
func
(
*
CommitTreeRoots
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
CommitTreeRoots
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
1
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
0
}
}
}
func
(
m
*
CommitTreeRoots
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
CommitTreeRoots
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1428,7 +1380,7 @@ func (m *CommitTreeProve) Reset() { *m = CommitTreeProve{} }
...
@@ -1428,7 +1380,7 @@ func (m *CommitTreeProve) Reset() { *m = CommitTreeProve{} }
func
(
m
*
CommitTreeProve
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
CommitTreeProve
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitTreeProve
)
ProtoMessage
()
{}
func
(
*
CommitTreeProve
)
ProtoMessage
()
{}
func
(
*
CommitTreeProve
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
CommitTreeProve
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
2
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
1
}
}
}
func
(
m
*
CommitTreeProve
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
CommitTreeProve
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1496,7 +1448,7 @@ func (m *TreeInfoReq) Reset() { *m = TreeInfoReq{} }
...
@@ -1496,7 +1448,7 @@ func (m *TreeInfoReq) Reset() { *m = TreeInfoReq{} }
func
(
m
*
TreeInfoReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
TreeInfoReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TreeInfoReq
)
ProtoMessage
()
{}
func
(
*
TreeInfoReq
)
ProtoMessage
()
{}
func
(
*
TreeInfoReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
TreeInfoReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
3
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
2
}
}
}
func
(
m
*
TreeInfoReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
TreeInfoReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1542,7 +1494,7 @@ func (m *TreeListResp) Reset() { *m = TreeListResp{} }
...
@@ -1542,7 +1494,7 @@ func (m *TreeListResp) Reset() { *m = TreeListResp{} }
func
(
m
*
TreeListResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
TreeListResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TreeListResp
)
ProtoMessage
()
{}
func
(
*
TreeListResp
)
ProtoMessage
()
{}
func
(
*
TreeListResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
TreeListResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
4
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
3
}
}
}
func
(
m
*
TreeListResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
TreeListResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1585,7 +1537,7 @@ func (m *PaymentKeyPair) Reset() { *m = PaymentKeyPair{} }
...
@@ -1585,7 +1537,7 @@ func (m *PaymentKeyPair) Reset() { *m = PaymentKeyPair{} }
func
(
m
*
PaymentKeyPair
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
PaymentKeyPair
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PaymentKeyPair
)
ProtoMessage
()
{}
func
(
*
PaymentKeyPair
)
ProtoMessage
()
{}
func
(
*
PaymentKeyPair
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
PaymentKeyPair
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
5
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
4
}
}
}
func
(
m
*
PaymentKeyPair
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
PaymentKeyPair
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1635,7 +1587,7 @@ func (m *PubKey) Reset() { *m = PubKey{} }
...
@@ -1635,7 +1587,7 @@ func (m *PubKey) Reset() { *m = PubKey{} }
func
(
m
*
PubKey
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
PubKey
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PubKey
)
ProtoMessage
()
{}
func
(
*
PubKey
)
ProtoMessage
()
{}
func
(
*
PubKey
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
PubKey
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
6
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
5
}
}
}
func
(
m
*
PubKey
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
PubKey
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1681,7 +1633,7 @@ func (m *PrivKey) Reset() { *m = PrivKey{} }
...
@@ -1681,7 +1633,7 @@ func (m *PrivKey) Reset() { *m = PrivKey{} }
func
(
m
*
PrivKey
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
PrivKey
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PrivKey
)
ProtoMessage
()
{}
func
(
*
PrivKey
)
ProtoMessage
()
{}
func
(
*
PrivKey
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
PrivKey
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
7
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
6
}
}
}
func
(
m
*
PrivKey
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
PrivKey
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1721,7 +1673,7 @@ func (m *ShareSecretKeyPair) Reset() { *m = ShareSecretKeyPair{} }
...
@@ -1721,7 +1673,7 @@ func (m *ShareSecretKeyPair) Reset() { *m = ShareSecretKeyPair{} }
func
(
m
*
ShareSecretKeyPair
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ShareSecretKeyPair
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ShareSecretKeyPair
)
ProtoMessage
()
{}
func
(
*
ShareSecretKeyPair
)
ProtoMessage
()
{}
func
(
*
ShareSecretKeyPair
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ShareSecretKeyPair
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
8
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
7
}
}
}
func
(
m
*
ShareSecretKeyPair
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
ShareSecretKeyPair
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1770,7 +1722,7 @@ func (m *AccountPrivacyKey) Reset() { *m = AccountPrivacyKey{} }
...
@@ -1770,7 +1722,7 @@ func (m *AccountPrivacyKey) Reset() { *m = AccountPrivacyKey{} }
func
(
m
*
AccountPrivacyKey
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
AccountPrivacyKey
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AccountPrivacyKey
)
ProtoMessage
()
{}
func
(
*
AccountPrivacyKey
)
ProtoMessage
()
{}
func
(
*
AccountPrivacyKey
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
AccountPrivacyKey
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
9
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
2
8
}
}
}
func
(
m
*
AccountPrivacyKey
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
AccountPrivacyKey
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1817,7 +1769,7 @@ func (m *WalletAddrPrivacy) Reset() { *m = WalletAddrPrivacy{} }
...
@@ -1817,7 +1769,7 @@ func (m *WalletAddrPrivacy) Reset() { *m = WalletAddrPrivacy{} }
func
(
m
*
WalletAddrPrivacy
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletAddrPrivacy
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletAddrPrivacy
)
ProtoMessage
()
{}
func
(
*
WalletAddrPrivacy
)
ProtoMessage
()
{}
func
(
*
WalletAddrPrivacy
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletAddrPrivacy
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
30
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
29
}
}
}
func
(
m
*
WalletAddrPrivacy
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletAddrPrivacy
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1867,7 +1819,7 @@ func (m *SecretData) Reset() { *m = SecretData{} }
...
@@ -1867,7 +1819,7 @@ func (m *SecretData) Reset() { *m = SecretData{} }
func
(
m
*
SecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
SecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
SecretData
)
ProtoMessage
()
{}
func
(
*
SecretData
)
ProtoMessage
()
{}
func
(
*
SecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
SecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
1
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
0
}
}
}
func
(
m
*
SecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
SecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1935,7 +1887,7 @@ func (m *EncodedSecretData) Reset() { *m = EncodedSecretData{} }
...
@@ -1935,7 +1887,7 @@ func (m *EncodedSecretData) Reset() { *m = EncodedSecretData{} }
func
(
m
*
EncodedSecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
EncodedSecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
EncodedSecretData
)
ProtoMessage
()
{}
func
(
*
EncodedSecretData
)
ProtoMessage
()
{}
func
(
*
EncodedSecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
EncodedSecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
2
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
1
}
}
}
func
(
m
*
EncodedSecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
EncodedSecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -1982,7 +1934,7 @@ func (m *EncryptSecretData) Reset() { *m = EncryptSecretData{} }
...
@@ -1982,7 +1934,7 @@ func (m *EncryptSecretData) Reset() { *m = EncryptSecretData{} }
func
(
m
*
EncryptSecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
EncryptSecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
EncryptSecretData
)
ProtoMessage
()
{}
func
(
*
EncryptSecretData
)
ProtoMessage
()
{}
func
(
*
EncryptSecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
EncryptSecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
3
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
2
}
}
}
func
(
m
*
EncryptSecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
EncryptSecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2030,7 +1982,7 @@ func (m *DecryptSecretData) Reset() { *m = DecryptSecretData{} }
...
@@ -2030,7 +1982,7 @@ func (m *DecryptSecretData) Reset() { *m = DecryptSecretData{} }
func
(
m
*
DecryptSecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
DecryptSecretData
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DecryptSecretData
)
ProtoMessage
()
{}
func
(
*
DecryptSecretData
)
ProtoMessage
()
{}
func
(
*
DecryptSecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
DecryptSecretData
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
4
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
3
}
}
}
func
(
m
*
DecryptSecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
DecryptSecretData
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2077,7 +2029,7 @@ type DepositProofReq struct {
...
@@ -2077,7 +2029,7 @@ type DepositProofReq struct {
PaymentAddr
string
`protobuf:"bytes,1,opt,name=paymentAddr,proto3" json:"paymentAddr,omitempty"`
PaymentAddr
string
`protobuf:"bytes,1,opt,name=paymentAddr,proto3" json:"paymentAddr,omitempty"`
ReturnAddr
string
`protobuf:"bytes,2,opt,name=returnAddr,proto3" json:"returnAddr,omitempty"`
ReturnAddr
string
`protobuf:"bytes,2,opt,name=returnAddr,proto3" json:"returnAddr,omitempty"`
AuthorizeAddr
string
`protobuf:"bytes,3,opt,name=authorizeAddr,proto3" json:"authorizeAddr,omitempty"`
AuthorizeAddr
string
`protobuf:"bytes,3,opt,name=authorizeAddr,proto3" json:"authorizeAddr,omitempty"`
Amount
string
`protobuf:"bytes
,4,opt,name=amount,proto3" json:"amount,omitempty"`
Amount
uint64
`protobuf:"varint
,4,opt,name=amount,proto3" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
@@ -2087,7 +2039,7 @@ func (m *DepositProofReq) Reset() { *m = DepositProofReq{} }
...
@@ -2087,7 +2039,7 @@ func (m *DepositProofReq) Reset() { *m = DepositProofReq{} }
func
(
m
*
DepositProofReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
DepositProofReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DepositProofReq
)
ProtoMessage
()
{}
func
(
*
DepositProofReq
)
ProtoMessage
()
{}
func
(
*
DepositProofReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
DepositProofReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
5
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
4
}
}
}
func
(
m
*
DepositProofReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
DepositProofReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2129,11 +2081,11 @@ func (m *DepositProofReq) GetAuthorizeAddr() string {
...
@@ -2129,11 +2081,11 @@ func (m *DepositProofReq) GetAuthorizeAddr() string {
return
""
return
""
}
}
func
(
m
*
DepositProofReq
)
GetAmount
()
string
{
func
(
m
*
DepositProofReq
)
GetAmount
()
uint64
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
Amount
return
m
.
Amount
}
}
return
""
return
0
}
}
type
DepositProofResp
struct
{
type
DepositProofResp
struct
{
...
@@ -2149,7 +2101,7 @@ func (m *DepositProofResp) Reset() { *m = DepositProofResp{} }
...
@@ -2149,7 +2101,7 @@ func (m *DepositProofResp) Reset() { *m = DepositProofResp{} }
func
(
m
*
DepositProofResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
DepositProofResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
DepositProofResp
)
ProtoMessage
()
{}
func
(
*
DepositProofResp
)
ProtoMessage
()
{}
func
(
*
DepositProofResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
DepositProofResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
6
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
5
}
}
}
func
(
m
*
DepositProofResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
DepositProofResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2205,7 +2157,7 @@ func (m *TreePathProof) Reset() { *m = TreePathProof{} }
...
@@ -2205,7 +2157,7 @@ func (m *TreePathProof) Reset() { *m = TreePathProof{} }
func
(
m
*
TreePathProof
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
TreePathProof
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TreePathProof
)
ProtoMessage
()
{}
func
(
*
TreePathProof
)
ProtoMessage
()
{}
func
(
*
TreePathProof
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
TreePathProof
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
7
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
6
}
}
}
func
(
m
*
TreePathProof
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
TreePathProof
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2265,7 +2217,7 @@ func (m *WithdrawProofReq) Reset() { *m = WithdrawProofReq{} }
...
@@ -2265,7 +2217,7 @@ func (m *WithdrawProofReq) Reset() { *m = WithdrawProofReq{} }
func
(
m
*
WithdrawProofReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WithdrawProofReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WithdrawProofReq
)
ProtoMessage
()
{}
func
(
*
WithdrawProofReq
)
ProtoMessage
()
{}
func
(
*
WithdrawProofReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WithdrawProofReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
8
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
7
}
}
}
func
(
m
*
WithdrawProofReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WithdrawProofReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2311,7 +2263,7 @@ func (m *WithdrawProofResp) Reset() { *m = WithdrawProofResp{} }
...
@@ -2311,7 +2263,7 @@ func (m *WithdrawProofResp) Reset() { *m = WithdrawProofResp{} }
func
(
m
*
WithdrawProofResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WithdrawProofResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WithdrawProofResp
)
ProtoMessage
()
{}
func
(
*
WithdrawProofResp
)
ProtoMessage
()
{}
func
(
*
WithdrawProofResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WithdrawProofResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
9
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
3
8
}
}
}
func
(
m
*
WithdrawProofResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WithdrawProofResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2390,7 +2342,7 @@ func (m *WithdrawProofResp) GetTreeProof() *TreePathProof {
...
@@ -2390,7 +2342,7 @@ func (m *WithdrawProofResp) GetTreeProof() *TreePathProof {
type
AuthProofReq
struct
{
type
AuthProofReq
struct
{
NoteHash
string
`protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
NoteHash
string
`protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
AuthReturn
uint32
`protobuf:"varint,2,opt,name=authReturn,proto3" json:"auth
Return,omitempty"`
ToReturn
uint32
`protobuf:"varint,2,opt,name=toReturn,proto3" json:"to
Return,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
@@ -2400,7 +2352,7 @@ func (m *AuthProofReq) Reset() { *m = AuthProofReq{} }
...
@@ -2400,7 +2352,7 @@ func (m *AuthProofReq) Reset() { *m = AuthProofReq{} }
func
(
m
*
AuthProofReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
AuthProofReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AuthProofReq
)
ProtoMessage
()
{}
func
(
*
AuthProofReq
)
ProtoMessage
()
{}
func
(
*
AuthProofReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
AuthProofReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
40
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
39
}
}
}
func
(
m
*
AuthProofReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
AuthProofReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2428,9 +2380,9 @@ func (m *AuthProofReq) GetNoteHash() string {
...
@@ -2428,9 +2380,9 @@ func (m *AuthProofReq) GetNoteHash() string {
return
""
return
""
}
}
func
(
m
*
AuthProofReq
)
Get
Auth
Return
()
uint32
{
func
(
m
*
AuthProofReq
)
Get
To
Return
()
uint32
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
Auth
Return
return
m
.
To
Return
}
}
return
0
return
0
}
}
...
@@ -2453,7 +2405,7 @@ func (m *AuthProofResp) Reset() { *m = AuthProofResp{} }
...
@@ -2453,7 +2405,7 @@ func (m *AuthProofResp) Reset() { *m = AuthProofResp{} }
func
(
m
*
AuthProofResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
AuthProofResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AuthProofResp
)
ProtoMessage
()
{}
func
(
*
AuthProofResp
)
ProtoMessage
()
{}
func
(
*
AuthProofResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
AuthProofResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
1
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
0
}
}
}
func
(
m
*
AuthProofResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
AuthProofResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2530,6 +2482,441 @@ func (m *AuthProofResp) GetTreeProof() *TreePathProof {
...
@@ -2530,6 +2482,441 @@ func (m *AuthProofResp) GetTreeProof() *TreePathProof {
return
nil
return
nil
}
}
type
TransferProofReq
struct
{
NoteHash
string
`protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
ToAddr
string
`protobuf:"bytes,2,opt,name=toAddr,proto3" json:"toAddr,omitempty"`
ToAuthAddr
string
`protobuf:"bytes,3,opt,name=toAuthAddr,proto3" json:"toAuthAddr,omitempty"`
ReturnAddr
string
`protobuf:"bytes,4,opt,name=returnAddr,proto3" json:"returnAddr,omitempty"`
Amount
uint64
`protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TransferProofReq
)
Reset
()
{
*
m
=
TransferProofReq
{}
}
func
(
m
*
TransferProofReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferProofReq
)
ProtoMessage
()
{}
func
(
*
TransferProofReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
41
}
}
func
(
m
*
TransferProofReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransferProofReq
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransferProofReq
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransferProofReq
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TransferProofReq
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransferProofReq
.
Merge
(
m
,
src
)
}
func
(
m
*
TransferProofReq
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransferProofReq
.
Size
(
m
)
}
func
(
m
*
TransferProofReq
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TransferProofReq
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TransferProofReq
proto
.
InternalMessageInfo
func
(
m
*
TransferProofReq
)
GetNoteHash
()
string
{
if
m
!=
nil
{
return
m
.
NoteHash
}
return
""
}
func
(
m
*
TransferProofReq
)
GetToAddr
()
string
{
if
m
!=
nil
{
return
m
.
ToAddr
}
return
""
}
func
(
m
*
TransferProofReq
)
GetToAuthAddr
()
string
{
if
m
!=
nil
{
return
m
.
ToAuthAddr
}
return
""
}
func
(
m
*
TransferProofReq
)
GetReturnAddr
()
string
{
if
m
!=
nil
{
return
m
.
ReturnAddr
}
return
""
}
func
(
m
*
TransferProofReq
)
GetAmount
()
uint64
{
if
m
!=
nil
{
return
m
.
Amount
}
return
0
}
//加密了的input/output amount
type
CommitValue
struct
{
X
string
`protobuf:"bytes,1,opt,name=X,proto3" json:"X,omitempty"`
Y
string
`protobuf:"bytes,2,opt,name=Y,proto3" json:"Y,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
CommitValue
)
Reset
()
{
*
m
=
CommitValue
{}
}
func
(
m
*
CommitValue
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitValue
)
ProtoMessage
()
{}
func
(
*
CommitValue
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
42
}
}
func
(
m
*
CommitValue
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_CommitValue
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
CommitValue
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_CommitValue
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
CommitValue
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CommitValue
.
Merge
(
m
,
src
)
}
func
(
m
*
CommitValue
)
XXX_Size
()
int
{
return
xxx_messageInfo_CommitValue
.
Size
(
m
)
}
func
(
m
*
CommitValue
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_CommitValue
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_CommitValue
proto
.
InternalMessageInfo
func
(
m
*
CommitValue
)
GetX
()
string
{
if
m
!=
nil
{
return
m
.
X
}
return
""
}
func
(
m
*
CommitValue
)
GetY
()
string
{
if
m
!=
nil
{
return
m
.
Y
}
return
""
}
type
TransferInputProof
struct
{
Proof
*
SecretData
`protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
NullifierHash
string
`protobuf:"bytes,2,opt,name=nullifierHash,proto3" json:"nullifierHash,omitempty"`
AuthSpendHash
string
`protobuf:"bytes,3,opt,name=authSpendHash,proto3" json:"authSpendHash,omitempty"`
NoteHash
string
`protobuf:"bytes,4,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
SpendPrivKey
string
`protobuf:"bytes,5,opt,name=spendPrivKey,proto3" json:"spendPrivKey,omitempty"`
SpendFlag
uint32
`protobuf:"varint,6,opt,name=spendFlag,proto3" json:"spendFlag,omitempty"`
AuthFlag
uint32
`protobuf:"varint,7,opt,name=authFlag,proto3" json:"authFlag,omitempty"`
TreeProof
*
TreePathProof
`protobuf:"bytes,8,opt,name=treeProof,proto3" json:"treeProof,omitempty"`
CommitValue
*
CommitValue
`protobuf:"bytes,9,opt,name=commitValue,proto3" json:"commitValue,omitempty"`
SpendRandom
string
`protobuf:"bytes,10,opt,name=spendRandom,proto3" json:"spendRandom,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TransferInputProof
)
Reset
()
{
*
m
=
TransferInputProof
{}
}
func
(
m
*
TransferInputProof
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferInputProof
)
ProtoMessage
()
{}
func
(
*
TransferInputProof
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
43
}
}
func
(
m
*
TransferInputProof
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransferInputProof
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransferInputProof
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransferInputProof
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TransferInputProof
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransferInputProof
.
Merge
(
m
,
src
)
}
func
(
m
*
TransferInputProof
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransferInputProof
.
Size
(
m
)
}
func
(
m
*
TransferInputProof
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TransferInputProof
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TransferInputProof
proto
.
InternalMessageInfo
func
(
m
*
TransferInputProof
)
GetProof
()
*
SecretData
{
if
m
!=
nil
{
return
m
.
Proof
}
return
nil
}
func
(
m
*
TransferInputProof
)
GetNullifierHash
()
string
{
if
m
!=
nil
{
return
m
.
NullifierHash
}
return
""
}
func
(
m
*
TransferInputProof
)
GetAuthSpendHash
()
string
{
if
m
!=
nil
{
return
m
.
AuthSpendHash
}
return
""
}
func
(
m
*
TransferInputProof
)
GetNoteHash
()
string
{
if
m
!=
nil
{
return
m
.
NoteHash
}
return
""
}
func
(
m
*
TransferInputProof
)
GetSpendPrivKey
()
string
{
if
m
!=
nil
{
return
m
.
SpendPrivKey
}
return
""
}
func
(
m
*
TransferInputProof
)
GetSpendFlag
()
uint32
{
if
m
!=
nil
{
return
m
.
SpendFlag
}
return
0
}
func
(
m
*
TransferInputProof
)
GetAuthFlag
()
uint32
{
if
m
!=
nil
{
return
m
.
AuthFlag
}
return
0
}
func
(
m
*
TransferInputProof
)
GetTreeProof
()
*
TreePathProof
{
if
m
!=
nil
{
return
m
.
TreeProof
}
return
nil
}
func
(
m
*
TransferInputProof
)
GetCommitValue
()
*
CommitValue
{
if
m
!=
nil
{
return
m
.
CommitValue
}
return
nil
}
func
(
m
*
TransferInputProof
)
GetSpendRandom
()
string
{
if
m
!=
nil
{
return
m
.
SpendRandom
}
return
""
}
type
TransferOutputProof
struct
{
Proof
*
SecretData
`protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
NoteHash
string
`protobuf:"bytes,2,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
Secrets
*
DHSecretGroup
`protobuf:"bytes,3,opt,name=secrets,proto3" json:"secrets,omitempty"`
CommitValue
*
CommitValue
`protobuf:"bytes,4,opt,name=commitValue,proto3" json:"commitValue,omitempty"`
SpendRandom
string
`protobuf:"bytes,5,opt,name=spendRandom,proto3" json:"spendRandom,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TransferOutputProof
)
Reset
()
{
*
m
=
TransferOutputProof
{}
}
func
(
m
*
TransferOutputProof
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferOutputProof
)
ProtoMessage
()
{}
func
(
*
TransferOutputProof
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
44
}
}
func
(
m
*
TransferOutputProof
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransferOutputProof
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransferOutputProof
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransferOutputProof
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TransferOutputProof
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransferOutputProof
.
Merge
(
m
,
src
)
}
func
(
m
*
TransferOutputProof
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransferOutputProof
.
Size
(
m
)
}
func
(
m
*
TransferOutputProof
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TransferOutputProof
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TransferOutputProof
proto
.
InternalMessageInfo
func
(
m
*
TransferOutputProof
)
GetProof
()
*
SecretData
{
if
m
!=
nil
{
return
m
.
Proof
}
return
nil
}
func
(
m
*
TransferOutputProof
)
GetNoteHash
()
string
{
if
m
!=
nil
{
return
m
.
NoteHash
}
return
""
}
func
(
m
*
TransferOutputProof
)
GetSecrets
()
*
DHSecretGroup
{
if
m
!=
nil
{
return
m
.
Secrets
}
return
nil
}
func
(
m
*
TransferOutputProof
)
GetCommitValue
()
*
CommitValue
{
if
m
!=
nil
{
return
m
.
CommitValue
}
return
nil
}
func
(
m
*
TransferOutputProof
)
GetSpendRandom
()
string
{
if
m
!=
nil
{
return
m
.
SpendRandom
}
return
""
}
type
TransferProofResp
struct
{
TransferInput
*
TransferInputProof
`protobuf:"bytes,1,opt,name=transferInput,proto3" json:"transferInput,omitempty"`
TargetOutput
*
TransferOutputProof
`protobuf:"bytes,2,opt,name=targetOutput,proto3" json:"targetOutput,omitempty"`
ChangeOutput
*
TransferOutputProof
`protobuf:"bytes,3,opt,name=changeOutput,proto3" json:"changeOutput,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
TransferProofResp
)
Reset
()
{
*
m
=
TransferProofResp
{}
}
func
(
m
*
TransferProofResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TransferProofResp
)
ProtoMessage
()
{}
func
(
*
TransferProofResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
45
}
}
func
(
m
*
TransferProofResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TransferProofResp
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
TransferProofResp
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_TransferProofResp
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
TransferProofResp
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_TransferProofResp
.
Merge
(
m
,
src
)
}
func
(
m
*
TransferProofResp
)
XXX_Size
()
int
{
return
xxx_messageInfo_TransferProofResp
.
Size
(
m
)
}
func
(
m
*
TransferProofResp
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_TransferProofResp
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_TransferProofResp
proto
.
InternalMessageInfo
func
(
m
*
TransferProofResp
)
GetTransferInput
()
*
TransferInputProof
{
if
m
!=
nil
{
return
m
.
TransferInput
}
return
nil
}
func
(
m
*
TransferProofResp
)
GetTargetOutput
()
*
TransferOutputProof
{
if
m
!=
nil
{
return
m
.
TargetOutput
}
return
nil
}
func
(
m
*
TransferProofResp
)
GetChangeOutput
()
*
TransferOutputProof
{
if
m
!=
nil
{
return
m
.
ChangeOutput
}
return
nil
}
type
CommitValueRst
struct
{
NoteRandom
string
`protobuf:"bytes,1,opt,name=noteRandom,proto3" json:"noteRandom,omitempty"`
TransferRandom
string
`protobuf:"bytes,2,opt,name=transferRandom,proto3" json:"transferRandom,omitempty"`
ChangeRandom
string
`protobuf:"bytes,3,opt,name=changeRandom,proto3" json:"changeRandom,omitempty"`
Note
*
CommitValue
`protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
Transfer
*
CommitValue
`protobuf:"bytes,5,opt,name=transfer,proto3" json:"transfer,omitempty"`
Change
*
CommitValue
`protobuf:"bytes,6,opt,name=change,proto3" json:"change,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
CommitValueRst
)
Reset
()
{
*
m
=
CommitValueRst
{}
}
func
(
m
*
CommitValueRst
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
CommitValueRst
)
ProtoMessage
()
{}
func
(
*
CommitValueRst
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
46
}
}
func
(
m
*
CommitValueRst
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_CommitValueRst
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
CommitValueRst
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_CommitValueRst
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
CommitValueRst
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_CommitValueRst
.
Merge
(
m
,
src
)
}
func
(
m
*
CommitValueRst
)
XXX_Size
()
int
{
return
xxx_messageInfo_CommitValueRst
.
Size
(
m
)
}
func
(
m
*
CommitValueRst
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_CommitValueRst
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_CommitValueRst
proto
.
InternalMessageInfo
func
(
m
*
CommitValueRst
)
GetNoteRandom
()
string
{
if
m
!=
nil
{
return
m
.
NoteRandom
}
return
""
}
func
(
m
*
CommitValueRst
)
GetTransferRandom
()
string
{
if
m
!=
nil
{
return
m
.
TransferRandom
}
return
""
}
func
(
m
*
CommitValueRst
)
GetChangeRandom
()
string
{
if
m
!=
nil
{
return
m
.
ChangeRandom
}
return
""
}
func
(
m
*
CommitValueRst
)
GetNote
()
*
CommitValue
{
if
m
!=
nil
{
return
m
.
Note
}
return
nil
}
func
(
m
*
CommitValueRst
)
GetTransfer
()
*
CommitValue
{
if
m
!=
nil
{
return
m
.
Transfer
}
return
nil
}
func
(
m
*
CommitValueRst
)
GetChange
()
*
CommitValue
{
if
m
!=
nil
{
return
m
.
Change
}
return
nil
}
type
WalletIndexInfo
struct
{
type
WalletIndexInfo
struct
{
NoteHash
string
`protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
NoteHash
string
`protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
Nullifier
string
`protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
Nullifier
string
`protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
...
@@ -2547,7 +2934,7 @@ func (m *WalletIndexInfo) Reset() { *m = WalletIndexInfo{} }
...
@@ -2547,7 +2934,7 @@ func (m *WalletIndexInfo) Reset() { *m = WalletIndexInfo{} }
func
(
m
*
WalletIndexInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletIndexInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletIndexInfo
)
ProtoMessage
()
{}
func
(
*
WalletIndexInfo
)
ProtoMessage
()
{}
func
(
*
WalletIndexInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletIndexInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
2
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
7
}
}
}
func
(
m
*
WalletIndexInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletIndexInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2629,7 +3016,7 @@ func (m *WalletDbMixInfo) Reset() { *m = WalletDbMixInfo{} }
...
@@ -2629,7 +3016,7 @@ func (m *WalletDbMixInfo) Reset() { *m = WalletDbMixInfo{} }
func
(
m
*
WalletDbMixInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletDbMixInfo
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletDbMixInfo
)
ProtoMessage
()
{}
func
(
*
WalletDbMixInfo
)
ProtoMessage
()
{}
func
(
*
WalletDbMixInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletDbMixInfo
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
3
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
8
}
}
}
func
(
m
*
WalletDbMixInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletDbMixInfo
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2681,7 +3068,7 @@ func (m *WalletMixIndexReq) Reset() { *m = WalletMixIndexReq{} }
...
@@ -2681,7 +3068,7 @@ func (m *WalletMixIndexReq) Reset() { *m = WalletMixIndexReq{} }
func
(
m
*
WalletMixIndexReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletMixIndexReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletMixIndexReq
)
ProtoMessage
()
{}
func
(
*
WalletMixIndexReq
)
ProtoMessage
()
{}
func
(
*
WalletMixIndexReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletMixIndexReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
4
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
4
9
}
}
}
func
(
m
*
WalletMixIndexReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletMixIndexReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2762,7 +3149,7 @@ func (m *WalletIndexResp) Reset() { *m = WalletIndexResp{} }
...
@@ -2762,7 +3149,7 @@ func (m *WalletIndexResp) Reset() { *m = WalletIndexResp{} }
func
(
m
*
WalletIndexResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletIndexResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletIndexResp
)
ProtoMessage
()
{}
func
(
*
WalletIndexResp
)
ProtoMessage
()
{}
func
(
*
WalletIndexResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletIndexResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
45
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
50
}
}
}
func
(
m
*
WalletIndexResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletIndexResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2801,7 +3188,7 @@ func (m *WalletReqAddrs) Reset() { *m = WalletReqAddrs{} }
...
@@ -2801,7 +3188,7 @@ func (m *WalletReqAddrs) Reset() { *m = WalletReqAddrs{} }
func
(
m
*
WalletReqAddrs
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletReqAddrs
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletReqAddrs
)
ProtoMessage
()
{}
func
(
*
WalletReqAddrs
)
ProtoMessage
()
{}
func
(
*
WalletReqAddrs
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletReqAddrs
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
46
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
51
}
}
}
func
(
m
*
WalletReqAddrs
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletReqAddrs
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2842,7 +3229,7 @@ func (m *WalletEnablePrivacyRst) Reset() { *m = WalletEnablePrivacyRst{}
...
@@ -2842,7 +3229,7 @@ func (m *WalletEnablePrivacyRst) Reset() { *m = WalletEnablePrivacyRst{}
func
(
m
*
WalletEnablePrivacyRst
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletEnablePrivacyRst
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletEnablePrivacyRst
)
ProtoMessage
()
{}
func
(
*
WalletEnablePrivacyRst
)
ProtoMessage
()
{}
func
(
*
WalletEnablePrivacyRst
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletEnablePrivacyRst
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
47
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
52
}
}
}
func
(
m
*
WalletEnablePrivacyRst
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletEnablePrivacyRst
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2895,7 +3282,7 @@ func (m *WalletEnablePrivacyResp) Reset() { *m = WalletEnablePrivacyResp
...
@@ -2895,7 +3282,7 @@ func (m *WalletEnablePrivacyResp) Reset() { *m = WalletEnablePrivacyResp
func
(
m
*
WalletEnablePrivacyResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
WalletEnablePrivacyResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
WalletEnablePrivacyResp
)
ProtoMessage
()
{}
func
(
*
WalletEnablePrivacyResp
)
ProtoMessage
()
{}
func
(
*
WalletEnablePrivacyResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
WalletEnablePrivacyResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
48
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
53
}
}
}
func
(
m
*
WalletEnablePrivacyResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
WalletEnablePrivacyResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2936,7 +3323,7 @@ func (m *LocalMixTx) Reset() { *m = LocalMixTx{} }
...
@@ -2936,7 +3323,7 @@ func (m *LocalMixTx) Reset() { *m = LocalMixTx{} }
func
(
m
*
LocalMixTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
LocalMixTx
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
LocalMixTx
)
ProtoMessage
()
{}
func
(
*
LocalMixTx
)
ProtoMessage
()
{}
func
(
*
LocalMixTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
LocalMixTx
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
49
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
54
}
}
}
func
(
m
*
LocalMixTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
LocalMixTx
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -2994,7 +3381,7 @@ func (m *MixTxListReq) Reset() { *m = MixTxListReq{} }
...
@@ -2994,7 +3381,7 @@ func (m *MixTxListReq) Reset() { *m = MixTxListReq{} }
func
(
m
*
MixTxListReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
MixTxListReq
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
MixTxListReq
)
ProtoMessage
()
{}
func
(
*
MixTxListReq
)
ProtoMessage
()
{}
func
(
*
MixTxListReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
MixTxListReq
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
0
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
5
}
}
}
func
(
m
*
MixTxListReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
MixTxListReq
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -3068,7 +3455,7 @@ func (m *MixTxListResp) Reset() { *m = MixTxListResp{} }
...
@@ -3068,7 +3455,7 @@ func (m *MixTxListResp) Reset() { *m = MixTxListResp{} }
func
(
m
*
MixTxListResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
MixTxListResp
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
MixTxListResp
)
ProtoMessage
()
{}
func
(
*
MixTxListResp
)
ProtoMessage
()
{}
func
(
*
MixTxListResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
MixTxListResp
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
1
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
6
}
}
}
func
(
m
*
MixTxListResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
MixTxListResp
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -3109,7 +3496,7 @@ func (m *PrivacyAddrResult) Reset() { *m = PrivacyAddrResult{} }
...
@@ -3109,7 +3496,7 @@ func (m *PrivacyAddrResult) Reset() { *m = PrivacyAddrResult{} }
func
(
m
*
PrivacyAddrResult
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
PrivacyAddrResult
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
PrivacyAddrResult
)
ProtoMessage
()
{}
func
(
*
PrivacyAddrResult
)
ProtoMessage
()
{}
func
(
*
PrivacyAddrResult
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
PrivacyAddrResult
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
2
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
7
}
}
}
func
(
m
*
PrivacyAddrResult
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
PrivacyAddrResult
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -3162,7 +3549,7 @@ func (m *ReqEnablePrivacyRst) Reset() { *m = ReqEnablePrivacyRst{} }
...
@@ -3162,7 +3549,7 @@ func (m *ReqEnablePrivacyRst) Reset() { *m = ReqEnablePrivacyRst{} }
func
(
m
*
ReqEnablePrivacyRst
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ReqEnablePrivacyRst
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqEnablePrivacyRst
)
ProtoMessage
()
{}
func
(
*
ReqEnablePrivacyRst
)
ProtoMessage
()
{}
func
(
*
ReqEnablePrivacyRst
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ReqEnablePrivacyRst
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
3
}
return
fileDescriptor_5c21d519a9be369a
,
[]
int
{
5
8
}
}
}
func
(
m
*
ReqEnablePrivacyRst
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
ReqEnablePrivacyRst
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -3211,7 +3598,6 @@ func init() {
...
@@ -3211,7 +3598,6 @@ func init() {
proto
.
RegisterType
((
*
MixAction
)(
nil
),
"types.MixAction"
)
proto
.
RegisterType
((
*
MixAction
)(
nil
),
"types.MixAction"
)
proto
.
RegisterType
((
*
DepositPublicInput
)(
nil
),
"types.DepositPublicInput"
)
proto
.
RegisterType
((
*
DepositPublicInput
)(
nil
),
"types.DepositPublicInput"
)
proto
.
RegisterType
((
*
WithdrawPublicInput
)(
nil
),
"types.WithdrawPublicInput"
)
proto
.
RegisterType
((
*
WithdrawPublicInput
)(
nil
),
"types.WithdrawPublicInput"
)
proto
.
RegisterType
((
*
CommitAmount
)(
nil
),
"types.commitAmount"
)
proto
.
RegisterType
((
*
TransferInputPublicInput
)(
nil
),
"types.TransferInputPublicInput"
)
proto
.
RegisterType
((
*
TransferInputPublicInput
)(
nil
),
"types.TransferInputPublicInput"
)
proto
.
RegisterType
((
*
TransferOutputPublicInput
)(
nil
),
"types.TransferOutputPublicInput"
)
proto
.
RegisterType
((
*
TransferOutputPublicInput
)(
nil
),
"types.TransferOutputPublicInput"
)
proto
.
RegisterType
((
*
AuthorizePublicInput
)(
nil
),
"types.AuthorizePublicInput"
)
proto
.
RegisterType
((
*
AuthorizePublicInput
)(
nil
),
"types.AuthorizePublicInput"
)
...
@@ -3238,6 +3624,12 @@ func init() {
...
@@ -3238,6 +3624,12 @@ func init() {
proto
.
RegisterType
((
*
WithdrawProofResp
)(
nil
),
"types.WithdrawProofResp"
)
proto
.
RegisterType
((
*
WithdrawProofResp
)(
nil
),
"types.WithdrawProofResp"
)
proto
.
RegisterType
((
*
AuthProofReq
)(
nil
),
"types.AuthProofReq"
)
proto
.
RegisterType
((
*
AuthProofReq
)(
nil
),
"types.AuthProofReq"
)
proto
.
RegisterType
((
*
AuthProofResp
)(
nil
),
"types.AuthProofResp"
)
proto
.
RegisterType
((
*
AuthProofResp
)(
nil
),
"types.AuthProofResp"
)
proto
.
RegisterType
((
*
TransferProofReq
)(
nil
),
"types.TransferProofReq"
)
proto
.
RegisterType
((
*
CommitValue
)(
nil
),
"types.commitValue"
)
proto
.
RegisterType
((
*
TransferInputProof
)(
nil
),
"types.TransferInputProof"
)
proto
.
RegisterType
((
*
TransferOutputProof
)(
nil
),
"types.TransferOutputProof"
)
proto
.
RegisterType
((
*
TransferProofResp
)(
nil
),
"types.TransferProofResp"
)
proto
.
RegisterType
((
*
CommitValueRst
)(
nil
),
"types.CommitValueRst"
)
proto
.
RegisterType
((
*
WalletIndexInfo
)(
nil
),
"types.WalletIndexInfo"
)
proto
.
RegisterType
((
*
WalletIndexInfo
)(
nil
),
"types.WalletIndexInfo"
)
proto
.
RegisterType
((
*
WalletDbMixInfo
)(
nil
),
"types.WalletDbMixInfo"
)
proto
.
RegisterType
((
*
WalletDbMixInfo
)(
nil
),
"types.WalletDbMixInfo"
)
proto
.
RegisterType
((
*
WalletMixIndexReq
)(
nil
),
"types.WalletMixIndexReq"
)
proto
.
RegisterType
((
*
WalletMixIndexReq
)(
nil
),
"types.WalletMixIndexReq"
)
...
@@ -3257,149 +3649,164 @@ func init() {
...
@@ -3257,149 +3649,164 @@ func init() {
}
}
var
fileDescriptor_5c21d519a9be369a
=
[]
byte
{
var
fileDescriptor_5c21d519a9be369a
=
[]
byte
{
// 2266 bytes of a gzipped FileDescriptorProto
// 2503 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
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0x47
,
0x3d
,
0x0f
,
0x10
,
0x7a
,
0xd6
,
0xb1
,
0x46
,
0x5b
,
0xe5
,
0x50
,
0x3c
,
0xf2
,
0x5d
,
0x6b
,
0x72
,
0x8a
,
0xd7
,
0xd0
,
0xa7
,
0x90
,
0x17
,
0x5d
,
0xd8
,
0x32
,
0xae
,
0xd4
,
0xe3
,
0x73
,
0x28
,
0x46
,
0x22
,
0x00
,
0x6d
,
0x84
,
0x20
,
0x9e
,
0x52
,
0xb6
,
0xb6
,
0x42
,
0x45
,
0x3c
,
0x56
,
0xf0
,
0xda
,
0x71
,
0x86
,
0xff
,
0x40
,
0x7f
,
0xf0
,
0x9f
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0x8e
,
0xab
,
0x71
,
0x40
,
0x75
,
0x1f
,
0x00
,
0x00
,
}
}
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
...
...
plugin/dapp/mix/types/type.go
View file @
6fc4d52e
...
@@ -13,6 +13,8 @@ import (
...
@@ -13,6 +13,8 @@ import (
log
"github.com/33cn/chain33/common/log/log15"
log
"github.com/33cn/chain33/common/log/log15"
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/types"
"github.com/consensys/gurvy/bn256/fr"
"github.com/consensys/gurvy/bn256/twistededwards"
)
)
var
(
var
(
...
@@ -205,3 +207,40 @@ func DecodePubInput(ty VerifyType, input string) (interface{}, error) {
...
@@ -205,3 +207,40 @@ func DecodePubInput(ty VerifyType, input string) (interface{}, error) {
}
}
return
nil
,
types
.
ErrInvalidParam
return
nil
,
types
.
ErrInvalidParam
}
}
func
MulCurvePointG
(
val
interface
{})
*
twistededwards
.
Point
{
v
:=
fr
.
FromInterface
(
val
)
var
point
twistededwards
.
Point
ed
:=
twistededwards
.
GetEdwardsCurve
()
point
.
ScalarMul
(
&
ed
.
Base
,
*
v
.
FromMont
())
return
&
point
}
func
MulCurvePointH
(
val
string
)
*
twistededwards
.
Point
{
v
:=
fr
.
FromInterface
(
val
)
var
pointV
,
pointH
twistededwards
.
Point
pointH
.
X
.
SetString
(
PointHX
)
pointH
.
Y
.
SetString
(
PointHY
)
pointV
.
ScalarMul
(
&
pointH
,
*
v
.
FromMont
())
return
&
pointV
}
//A=B+C
func
CheckSumEqual
(
points
...*
twistededwards
.
Point
)
bool
{
if
len
(
points
)
<
2
{
return
false
}
//Add之前需初始化pointSum,不能空值,不然会等于0
pointSum
:=
twistededwards
.
NewPoint
(
points
[
1
]
.
X
,
points
[
1
]
.
Y
)
for
_
,
a
:=
range
points
[
2
:
]
{
pointSum
.
Add
(
&
pointSum
,
a
)
}
if
pointSum
.
X
.
Equal
(
&
points
[
0
]
.
X
)
&&
pointSum
.
Y
.
Equal
(
&
points
[
0
]
.
Y
)
{
return
true
}
return
false
}
plugin/dapp/mix/wallet/exec.go
View file @
6fc4d52e
...
@@ -54,3 +54,11 @@ func (policy *mixPolicy) On_DepositProof(req *mixTy.DepositProofReq) (types.Mess
...
@@ -54,3 +54,11 @@ func (policy *mixPolicy) On_DepositProof(req *mixTy.DepositProofReq) (types.Mess
func
(
policy
*
mixPolicy
)
On_WithdrawProof
(
req
*
mixTy
.
WithdrawProofReq
)
(
types
.
Message
,
error
)
{
func
(
policy
*
mixPolicy
)
On_WithdrawProof
(
req
*
mixTy
.
WithdrawProofReq
)
(
types
.
Message
,
error
)
{
return
policy
.
withdrawProof
(
req
)
return
policy
.
withdrawProof
(
req
)
}
}
func
(
policy
*
mixPolicy
)
On_AuthProof
(
req
*
mixTy
.
AuthProofReq
)
(
types
.
Message
,
error
)
{
return
policy
.
authProof
(
req
)
}
func
(
policy
*
mixPolicy
)
On_TransferProof
(
req
*
mixTy
.
TransferProofReq
)
(
types
.
Message
,
error
)
{
return
policy
.
transferProof
(
req
)
}
plugin/dapp/mix/wallet/mixbizdb_test.go
View file @
6fc4d52e
...
@@ -41,9 +41,10 @@ func TestNewPrivacyWithPrivKey(t *testing.T) {
...
@@ -41,9 +41,10 @@ func TestNewPrivacyWithPrivKey(t *testing.T) {
// NoteRandom:"2824204835",
// NoteRandom:"2824204835",
// Amount:"28242048",
// Amount:"28242048",
//}
//}
pub1
,
cryptData1
,
err
:=
encryptData
(
pairs
.
ShareSecretKey
.
ReceivingPk
,
types
.
Encode
(
secret1
))
data
:=
encryptData
(
pairs
.
ShareSecretKey
.
ReceivingPk
,
types
.
Encode
(
secret1
))
crypData
,
err
:=
common
.
FromHex
(
data
.
Secret
)
assert
.
Nil
(
t
,
err
)
assert
.
Nil
(
t
,
err
)
decryData1
,
err
:=
decryptData
(
pairs
.
ShareSecretKey
.
PrivKey
,
pub1
,
cryptData1
)
decryData1
,
err
:=
decryptData
(
pairs
.
ShareSecretKey
.
PrivKey
,
data
.
Epk
,
crypData
)
assert
.
Nil
(
t
,
err
)
assert
.
Nil
(
t
,
err
)
var
val
mixTy
.
SecretData
var
val
mixTy
.
SecretData
err
=
types
.
Decode
(
decryData1
,
&
val
)
err
=
types
.
Decode
(
decryData1
,
&
val
)
...
...
plugin/dapp/mix/wallet/mixsignature.go
View file @
6fc4d52e
...
@@ -12,13 +12,10 @@ import (
...
@@ -12,13 +12,10 @@ import (
"bytes"
"bytes"
"fmt"
"fmt"
"github.com/pkg/errors"
"github.com/33cn/chain33/common"
"github.com/33cn/chain33/common"
"github.com/33cn/chain33/common/crypto"
"github.com/33cn/chain33/common/crypto"
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/types"
mixExec
"github.com/33cn/plugin/plugin/dapp/mix/executor"
mixTy
"github.com/33cn/plugin/plugin/dapp/mix/types"
mixTy
"github.com/33cn/plugin/plugin/dapp/mix/types"
)
)
...
@@ -102,31 +99,32 @@ func (pubkey *MixSignPublicKey) Bytes() []byte {
...
@@ -102,31 +99,32 @@ func (pubkey *MixSignPublicKey) Bytes() []byte {
return
pubkey
.
key
[
:
]
return
pubkey
.
key
[
:
]
}
}
func
verifyCommitAmount
(
transfer
*
mixTy
.
MixTransferAction
)
error
{
//
var
inputs
[]
*
mixTy
.
TransferInputPublicInput
//func verifyCommitAmount(transfer *mixTy.MixTransferAction) error {
var
outputs
[]
*
mixTy
.
TransferOutputPublicInput
// var inputs []*mixTy.TransferInputPublicInput
// var outputs []*mixTy.TransferOutputPublicInput
for
_
,
k
:=
range
transfer
.
Input
{
//
v
,
err
:=
mixTy
.
DecodePubInput
(
mixTy
.
VerifyType_TRANSFERINPUT
,
k
.
PublicInput
)
// for _, k := range transfer.Input {
if
err
!=
nil
{
// v, err := mixTy.DecodePubInput(mixTy.VerifyType_TRANSFERINPUT, k.PublicInput)
return
errors
.
Wrap
(
types
.
ErrInvalidParam
,
"decode transfer Input"
)
// if err != nil {
}
// return errors.Wrap(types.ErrInvalidParam, "decode transfer Input")
inputs
=
append
(
inputs
,
v
.
(
*
mixTy
.
TransferInputPublicInput
))
// }
}
// inputs = append(inputs, v.(*mixTy.TransferInputPublicInput))
// }
for
_
,
k
:=
range
transfer
.
Output
{
//
v
,
err
:=
mixTy
.
DecodePubInput
(
mixTy
.
VerifyType_TRANSFEROUTPUT
,
k
.
PublicInput
)
// for _, k := range transfer.Output {
if
err
!=
nil
{
// v, err := mixTy.DecodePubInput(mixTy.VerifyType_TRANSFEROUTPUT, k.PublicInput)
return
errors
.
Wrap
(
types
.
ErrInvalidParam
,
"decode transfer output"
)
// if err != nil {
}
// return errors.Wrap(types.ErrInvalidParam, "decode transfer output")
outputs
=
append
(
outputs
,
v
.
(
*
mixTy
.
TransferOutputPublicInput
))
// }
}
// outputs = append(outputs, v.(*mixTy.TransferOutputPublicInput))
// }
if
!
mixExec
.
VerifyCommitValues
(
inputs
,
outputs
)
{
//
return
errors
.
Wrap
(
types
.
ErrInvalidParam
,
"verify commit amount"
)
// if !mixExec.VerifyCommitValues(inputs, outputs) {
}
// return errors.Wrap(types.ErrInvalidParam, "verify commit amount")
return
nil
// }
}
// return nil
//}
// VerifyBytes verify bytes
// VerifyBytes verify bytes
func
(
pubkey
*
MixSignPublicKey
)
VerifyBytes
(
msg
[]
byte
,
sign
crypto
.
Signature
)
bool
{
func
(
pubkey
*
MixSignPublicKey
)
VerifyBytes
(
msg
[]
byte
,
sign
crypto
.
Signature
)
bool
{
...
@@ -157,11 +155,6 @@ func (pubkey *MixSignPublicKey) VerifyBytes(msg []byte, sign crypto.Signature) b
...
@@ -157,11 +155,6 @@ func (pubkey *MixSignPublicKey) VerifyBytes(msg []byte, sign crypto.Signature) b
return
false
return
false
}
}
if
err
:=
verifyCommitAmount
(
action
.
GetTransfer
());
err
!=
nil
{
bizlog
.
Error
(
"pubkey.VerifyBytes verify amount"
,
"err"
,
err
)
return
false
}
return
true
return
true
}
}
...
...
plugin/dapp/mix/wallet/proof.go
0 → 100644
View file @
6fc4d52e
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
wallet
import
(
"math/big"
"strconv"
"github.com/pkg/errors"
"github.com/33cn/chain33/common"
"github.com/33cn/chain33/types"
mixTy
"github.com/33cn/plugin/plugin/dapp/mix/types"
fr_bn256
"github.com/consensys/gurvy/bn256/fr"
)
//对secretData 编码为string,同时增加随机值
func
encodeSecretData
(
secret
*
mixTy
.
SecretData
)
(
*
mixTy
.
EncodedSecretData
,
error
)
{
if
secret
==
nil
{
return
nil
,
errors
.
Wrap
(
types
.
ErrInvalidParam
,
"para is nil"
)
}
if
len
(
secret
.
PaymentPubKey
)
<=
0
{
return
nil
,
errors
.
Wrap
(
types
.
ErrInvalidParam
,
"spendPubKey is nil"
)
}
var
val
big
.
Int
ret
,
succ
:=
val
.
SetString
(
secret
.
Amount
,
10
)
if
!
succ
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"wrong amount = %s"
,
secret
.
Amount
)
}
if
ret
.
Sign
()
<=
0
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"amount = %s, need bigger than 0"
,
secret
.
Amount
)
}
//获取随机值
var
fr
fr_bn256
.
Element
fr
.
SetRandom
()
secret
.
NoteRandom
=
fr
.
String
()
code
:=
types
.
Encode
(
secret
)
var
resp
mixTy
.
EncodedSecretData
resp
.
Encoded
=
common
.
ToHex
(
code
)
resp
.
RawData
=
secret
return
&
resp
,
nil
}
//产生随机秘钥和receivingPk对data DH加密,返回随机秘钥的公钥
func
encryptSecretData
(
req
*
mixTy
.
EncryptSecretData
)
(
*
mixTy
.
DHSecret
,
error
)
{
secret
,
err
:=
common
.
FromHex
(
req
.
Secret
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"decode secret"
)
}
return
encryptData
(
req
.
ReceivingPk
,
secret
),
nil
}
func
decryptSecretData
(
req
*
mixTy
.
DecryptSecretData
)
(
*
mixTy
.
SecretData
,
error
)
{
secret
,
err
:=
common
.
FromHex
(
req
.
Secret
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"decode req.secret"
)
}
decrypt
,
err
:=
decryptData
(
req
.
ReceivingPriKey
,
req
.
Epk
,
secret
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"decrypt secret"
)
}
var
raw
mixTy
.
SecretData
err
=
types
.
Decode
(
decrypt
,
&
raw
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
mixTy
.
ErrDecryptDataFail
,
"decode decrypt.secret"
)
}
return
&
raw
,
nil
}
func
(
policy
*
mixPolicy
)
getPaymentKey
(
addr
string
)
(
*
mixTy
.
PaymentKey
,
error
)
{
msg
,
err
:=
policy
.
walletOperate
.
GetAPI
()
.
QueryChain
(
&
types
.
ChainExecutor
{
Driver
:
"mix"
,
FuncName
:
"PaymentPubKey"
,
Param
:
types
.
Encode
(
&
types
.
ReqString
{
Data
:
addr
}),
})
if
err
!=
nil
{
return
nil
,
err
}
return
msg
.
(
*
mixTy
.
PaymentKey
),
err
}
func
(
policy
*
mixPolicy
)
depositProof
(
req
*
mixTy
.
DepositProofReq
)
(
*
mixTy
.
DepositProofResp
,
error
)
{
if
req
==
nil
||
len
(
req
.
PaymentAddr
)
<=
0
{
return
nil
,
errors
.
Wrap
(
types
.
ErrInvalidParam
,
"paymentAddr is nil"
)
}
if
req
.
Amount
<=
0
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"deposit amount=%d need big than 0"
,
req
.
Amount
)
}
var
secret
mixTy
.
SecretData
secret
.
Amount
=
strconv
.
FormatUint
(
req
.
Amount
,
10
)
//1. nullifier 获取随机值
var
fr
fr_bn256
.
Element
fr
.
SetRandom
()
secret
.
NoteRandom
=
fr
.
String
()
// 获取addr对应的paymentKey
toKey
,
errr
:=
policy
.
getPaymentKey
(
req
.
PaymentAddr
)
if
errr
!=
nil
{
return
nil
,
errors
.
Wrapf
(
errr
,
"get payment key for addr = %s"
,
req
.
PaymentAddr
)
}
secret
.
PaymentPubKey
=
toKey
.
PayingKey
var
returnKey
*
mixTy
.
PaymentKey
var
err
error
if
len
(
req
.
ReturnAddr
)
>
0
{
returnKey
,
err
=
policy
.
getPaymentKey
(
req
.
PaymentAddr
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"get payment key for addr = %s"
,
req
.
PaymentAddr
)
}
secret
.
ReturnPubKey
=
returnKey
.
PayingKey
}
var
authKey
*
mixTy
.
PaymentKey
if
len
(
req
.
ReturnAddr
)
>
0
{
authKey
,
err
=
policy
.
getPaymentKey
(
req
.
PaymentAddr
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"get payment key for addr = %s"
,
req
.
PaymentAddr
)
}
secret
.
AuthorizePubKey
=
authKey
.
PayingKey
}
//DH加密
data
:=
types
.
Encode
(
&
secret
)
var
group
mixTy
.
DHSecretGroup
group
.
Payment
=
encryptData
(
toKey
.
ReceivingKey
,
data
)
if
returnKey
!=
nil
{
group
.
Returner
=
encryptData
(
returnKey
.
ReceivingKey
,
data
)
}
if
authKey
!=
nil
{
group
.
Authorize
=
encryptData
(
authKey
.
ReceivingKey
,
data
)
}
var
resp
mixTy
.
DepositProofResp
resp
.
Proof
=
&
secret
resp
.
Secrets
=
&
group
keys
:=
[]
string
{
secret
.
PaymentPubKey
,
secret
.
ReturnPubKey
,
secret
.
AuthorizePubKey
,
secret
.
Amount
,
secret
.
NoteRandom
,
}
resp
.
NoteHash
=
getFrString
(
mimcHashString
(
keys
))
return
&
resp
,
nil
}
func
(
policy
*
mixPolicy
)
getPathProof
(
leaf
string
)
(
*
mixTy
.
CommitTreeProve
,
error
)
{
msg
,
err
:=
policy
.
walletOperate
.
GetAPI
()
.
QueryChain
(
&
types
.
ChainExecutor
{
Driver
:
"mix"
,
FuncName
:
"GetTreePath"
,
Param
:
types
.
Encode
(
&
mixTy
.
TreeInfoReq
{
LeafHash
:
leaf
}),
})
if
err
!=
nil
{
return
nil
,
err
}
return
msg
.
(
*
mixTy
.
CommitTreeProve
),
nil
}
func
(
policy
*
mixPolicy
)
getNoteInfo
(
noteHash
string
,
noteStatus
mixTy
.
NoteStatus
)
(
*
mixTy
.
WalletIndexInfo
,
error
)
{
if
policy
.
walletOperate
.
IsWalletLocked
()
{
return
nil
,
types
.
ErrWalletIsLocked
}
var
index
mixTy
.
WalletMixIndexReq
index
.
NoteHash
=
noteHash
msg
,
err
:=
policy
.
listMixInfos
(
&
index
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"list table fail noteHash=%s"
,
noteHash
)
}
note
:=
msg
.
(
*
mixTy
.
WalletIndexResp
)
.
Datas
[
0
]
if
note
.
Status
!=
noteStatus
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrNotAllow
,
"note status=%s"
,
note
.
Status
.
String
())
}
return
note
,
nil
}
func
(
policy
*
mixPolicy
)
withdrawProof
(
req
*
mixTy
.
WithdrawProofReq
)
(
*
mixTy
.
WithdrawProofResp
,
error
)
{
note
,
err
:=
policy
.
getNoteInfo
(
req
.
NoteHash
,
mixTy
.
NoteStatus_VALID
)
if
err
!=
nil
{
return
nil
,
err
}
var
resp
mixTy
.
WithdrawProofResp
resp
.
Proof
=
note
.
Secret
resp
.
NullifierHash
=
note
.
Nullifier
resp
.
AuthSpendHash
=
note
.
AuthSpendHash
resp
.
NoteHash
=
note
.
NoteHash
resp
.
SpendFlag
=
1
if
note
.
IsReturner
{
resp
.
SpendFlag
=
0
}
if
len
(
resp
.
AuthSpendHash
)
>
0
{
resp
.
AuthFlag
=
1
}
//get spend privacy key
privacyKey
,
err
:=
policy
.
getAccountPrivacyKey
(
note
.
Account
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"getAccountPrivacyKey addr=%s"
,
note
.
Account
)
}
resp
.
SpendPrivKey
=
privacyKey
.
Privacy
.
PaymentKey
.
SpendKey
//get tree path
path
,
err
:=
policy
.
getPathProof
(
note
.
NoteHash
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"get tree proof for noteHash=%s"
,
note
.
NoteHash
)
}
resp
.
TreeProof
.
TreePath
=
path
.
ProofSet
[
1
:
]
resp
.
TreeProof
.
Helpers
=
path
.
Helpers
for
i
:=
0
;
i
<
len
(
resp
.
TreeProof
.
TreePath
);
i
++
{
resp
.
TreeProof
.
ValidPath
=
append
(
resp
.
TreeProof
.
ValidPath
,
1
)
}
resp
.
TreeProof
.
TreeRootHash
=
path
.
RootHash
return
&
resp
,
nil
}
func
(
policy
*
mixPolicy
)
authProof
(
req
*
mixTy
.
AuthProofReq
)
(
*
mixTy
.
AuthProofResp
,
error
)
{
note
,
err
:=
policy
.
getNoteInfo
(
req
.
NoteHash
,
mixTy
.
NoteStatus_FROZEN
)
if
err
!=
nil
{
return
nil
,
err
}
//get spend privacy key
privacyKey
,
err
:=
policy
.
getAccountPrivacyKey
(
note
.
Account
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"getAccountPrivacyKey addr=%s"
,
note
.
Account
)
}
var
resp
mixTy
.
AuthProofResp
resp
.
Proof
=
note
.
Secret
resp
.
NoteHash
=
note
.
NoteHash
resp
.
AuthPrivKey
=
privacyKey
.
Privacy
.
PaymentKey
.
SpendKey
resp
.
AuthPubKey
=
privacyKey
.
Privacy
.
PaymentKey
.
PayKey
if
privacyKey
.
Privacy
.
PaymentKey
.
PayKey
!=
note
.
Secret
.
AuthorizePubKey
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"auth pubkey from note=%s, from privacyKey=%s,for account =%s"
,
note
.
Secret
.
AuthorizePubKey
,
privacyKey
.
Privacy
.
PaymentKey
.
PayKey
,
note
.
Account
)
}
resp
.
AuthHash
=
getFrString
(
mimcHashString
([]
string
{
resp
.
AuthPubKey
,
note
.
Secret
.
NoteRandom
}))
//default auto to paymenter
resp
.
SpendFlag
=
1
resp
.
AuthSpendHash
=
getFrString
(
mimcHashString
([]
string
{
note
.
Secret
.
PaymentPubKey
,
note
.
Secret
.
Amount
,
note
.
Secret
.
NoteRandom
}))
if
req
.
ToReturn
!=
0
{
resp
.
SpendFlag
=
0
//auth to returner
resp
.
AuthSpendHash
=
getFrString
(
mimcHashString
([]
string
{
note
.
Secret
.
ReturnPubKey
,
note
.
Secret
.
Amount
,
note
.
Secret
.
NoteRandom
}))
}
//get tree path
path
,
err
:=
policy
.
getPathProof
(
note
.
NoteHash
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"get tree proof for noteHash=%s"
,
note
.
NoteHash
)
}
resp
.
TreeProof
.
TreePath
=
path
.
ProofSet
[
1
:
]
resp
.
TreeProof
.
Helpers
=
path
.
Helpers
for
i
:=
0
;
i
<
len
(
resp
.
TreeProof
.
TreePath
);
i
++
{
resp
.
TreeProof
.
ValidPath
=
append
(
resp
.
TreeProof
.
ValidPath
,
1
)
}
resp
.
TreeProof
.
TreeRootHash
=
path
.
RootHash
return
&
resp
,
nil
}
func
(
policy
*
mixPolicy
)
getTransferInputPart
(
note
*
mixTy
.
WalletIndexInfo
)
(
*
mixTy
.
TransferInputProof
,
error
)
{
//get spend privacy key
privacyKey
,
err
:=
policy
.
getAccountPrivacyKey
(
note
.
Account
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"getAccountPrivacyKey addr=%s"
,
note
.
Account
)
}
var
input
mixTy
.
TransferInputProof
input
.
Proof
=
note
.
Secret
input
.
NoteHash
=
note
.
NoteHash
input
.
NullifierHash
=
note
.
Nullifier
//自己是payment 还是returner已经在解析note时候算好了,authSpendHash也对应算好了,如果note valid,则就用本地即可
input
.
AuthSpendHash
=
note
.
AuthSpendHash
input
.
SpendPrivKey
=
privacyKey
.
Privacy
.
PaymentKey
.
SpendKey
if
privacyKey
.
Privacy
.
PaymentKey
.
PayKey
!=
note
.
Secret
.
AuthorizePubKey
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"payment pubkey from note=%s not match from privacyKey=%s,for account =%s"
,
note
.
Secret
.
AuthorizePubKey
,
privacyKey
.
Privacy
.
PaymentKey
.
PayKey
,
note
.
Account
)
}
input
.
SpendFlag
=
1
if
note
.
IsReturner
{
input
.
SpendFlag
=
0
}
if
len
(
input
.
AuthSpendHash
)
>
0
{
input
.
AuthFlag
=
1
}
return
&
input
,
nil
}
func
getCommitValue
(
noteAmount
,
transferAmount
,
minTxFee
uint64
)
(
*
mixTy
.
CommitValueRst
,
error
)
{
if
noteAmount
<
transferAmount
+
minTxFee
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"transfer amount=%d big than note=%d - fee=%d"
,
transferAmount
,
noteAmount
,
minTxFee
)
}
change
:=
noteAmount
-
transferAmount
-
minTxFee
//get amount*G point
//note = transfer + change + minTxFee
noteAmountG
:=
mixTy
.
MulCurvePointG
(
noteAmount
)
transAmountG
:=
mixTy
.
MulCurvePointG
(
transferAmount
)
changeAmountG
:=
mixTy
.
MulCurvePointG
(
change
)
minTxFeeG
:=
mixTy
.
MulCurvePointG
(
minTxFee
)
if
!
mixTy
.
CheckSumEqual
(
noteAmountG
,
transAmountG
,
changeAmountG
,
minTxFeeG
)
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"amount sum fail for mul G point"
)
}
//获取随机值,截取一半给change和transfer,和值给Note,直接用完整的random值会溢出
var
changeRandom
,
transRandom
,
v
fr_bn256
.
Element
random
:=
v
.
SetRandom
()
.
String
()
changeRandom
.
SetString
(
random
[
0
:
len
(
random
)
/
2
])
transRandom
.
SetString
(
random
[
len
(
random
)
/
2
:
])
var
noteRandom
fr_bn256
.
Element
noteRandom
.
Add
(
&
changeRandom
,
&
transRandom
)
noteH
:=
mixTy
.
MulCurvePointH
(
noteRandom
.
String
())
transferH
:=
mixTy
.
MulCurvePointH
(
transRandom
.
String
())
changeH
:=
mixTy
.
MulCurvePointH
(
changeRandom
.
String
())
//fmt.Println("change",changeRandom.String())
//fmt.Println("transfer",transRandom.String())
//fmt.Println("note",noteRandom.String())
if
!
mixTy
.
CheckSumEqual
(
noteH
,
transferH
,
changeH
)
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"random sum error"
)
}
noteAmountG
.
Add
(
noteAmountG
,
noteH
)
transAmountG
.
Add
(
transAmountG
,
transferH
)
changeAmountG
.
Add
(
changeAmountG
,
changeH
)
if
!
mixTy
.
CheckSumEqual
(
noteAmountG
,
transAmountG
,
changeAmountG
,
minTxFeeG
)
{
return
nil
,
errors
.
Wrapf
(
types
.
ErrInvalidParam
,
"amount sum fail for G+H point"
)
}
rst
:=
&
mixTy
.
CommitValueRst
{
NoteRandom
:
noteRandom
.
String
(),
TransferRandom
:
transRandom
.
String
(),
ChangeRandom
:
changeRandom
.
String
(),
Note
:
&
mixTy
.
CommitValue
{
X
:
noteAmountG
.
X
.
String
(),
Y
:
noteAmountG
.
Y
.
String
()},
Transfer
:
&
mixTy
.
CommitValue
{
X
:
transAmountG
.
X
.
String
(),
Y
:
transAmountG
.
Y
.
String
()},
Change
:
&
mixTy
.
CommitValue
{
X
:
changeAmountG
.
X
.
String
(),
Y
:
changeAmountG
.
Y
.
String
()},
}
return
rst
,
nil
}
func
(
policy
*
mixPolicy
)
transferProof
(
req
*
mixTy
.
TransferProofReq
)
(
*
mixTy
.
TransferProofResp
,
error
)
{
note
,
err
:=
policy
.
getNoteInfo
(
req
.
NoteHash
,
mixTy
.
NoteStatus_VALID
)
if
err
!=
nil
{
return
nil
,
err
}
inputPart
,
err
:=
policy
.
getTransferInputPart
(
note
)
noteAmount
,
err
:=
strconv
.
ParseUint
(
note
.
Secret
.
Amount
,
10
,
64
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"input part parseUint=%s"
,
inputPart
.
Proof
.
Amount
)
}
//还要扣除手续费
minTxFee
:=
uint64
(
policy
.
walletOperate
.
GetConfig
()
.
MinFee
)
//output toAddr part
reqTransfer
:=
&
mixTy
.
DepositProofReq
{
PaymentAddr
:
req
.
ToAddr
,
AuthorizeAddr
:
req
.
ToAuthAddr
,
ReturnAddr
:
req
.
ReturnAddr
,
Amount
:
req
.
Amount
,
}
depositTransfer
,
err
:=
policy
.
depositProof
(
reqTransfer
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"deposit toAddr"
)
}
//output 找零 part,如果找零为0也需要设置,否则只有一个输入一个输出,H部分的随机数要相等,就能推测出转账值来
//在transfer output 部分特殊处理,如果amount是0的值则不加进tree
reqChange
:=
&
mixTy
.
DepositProofReq
{
PaymentAddr
:
note
.
Account
,
Amount
:
noteAmount
-
req
.
Amount
-
minTxFee
,
}
depositChange
,
err
:=
policy
.
depositProof
(
reqChange
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrapf
(
err
,
"deposit toAddr"
)
}
commitValue
,
err
:=
getCommitValue
(
noteAmount
,
req
.
Amount
,
minTxFee
)
if
err
!=
nil
{
return
nil
,
err
}
//noteCommitX, transferX, changeX
inputPart
.
CommitValue
=
commitValue
.
Note
inputPart
.
SpendRandom
=
commitValue
.
NoteRandom
transferOutput
:=
&
mixTy
.
TransferOutputProof
{
Proof
:
depositTransfer
.
Proof
,
NoteHash
:
depositTransfer
.
NoteHash
,
Secrets
:
depositTransfer
.
Secrets
,
CommitValue
:
commitValue
.
Transfer
,
SpendRandom
:
commitValue
.
TransferRandom
,
}
changeOutput
:=
&
mixTy
.
TransferOutputProof
{
Proof
:
depositChange
.
Proof
,
NoteHash
:
depositChange
.
NoteHash
,
Secrets
:
depositChange
.
Secrets
,
CommitValue
:
commitValue
.
Change
,
SpendRandom
:
commitValue
.
ChangeRandom
,
}
return
&
mixTy
.
TransferProofResp
{
TransferInput
:
inputPart
,
TargetOutput
:
transferOutput
,
ChangeOutput
:
changeOutput
},
nil
}
plugin/dapp/mix/wallet/proof_test.go
0 → 100644
View file @
6fc4d52e
package
wallet
import
(
"testing"
"github.com/stretchr/testify/assert"
)
func
TestGetCommitValue
(
t
*
testing
.
T
)
{
var
note
,
transfer
,
minFee
uint64
note
=
100
transfer
=
60
minFee
=
1
_
,
err
:=
getCommitValue
(
note
,
transfer
,
minFee
)
assert
.
Nil
(
t
,
err
)
//transfer > note
note
=
100
transfer
=
100
minFee
=
1
_
,
err
=
getCommitValue
(
note
,
transfer
,
minFee
)
t
.
Log
(
err
)
assert
.
NotNil
(
t
,
err
)
note
=
100
transfer
=
101
minFee
=
0
_
,
err
=
getCommitValue
(
note
,
transfer
,
minFee
)
t
.
Log
(
err
)
assert
.
NotNil
(
t
,
err
)
//change=0
note
=
100
transfer
=
99
minFee
=
1
_
,
err
=
getCommitValue
(
note
,
transfer
,
minFee
)
assert
.
Nil
(
t
,
err
)
}
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