forked from 33cn/plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
40 lines (33 loc) · 894 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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 (
privacy "github.com/33cn/plugin/plugin/dapp/privacy/crypto"
privacytypes "github.com/33cn/plugin/plugin/dapp/privacy/types"
)
type addrAndprivacy struct {
PrivacyKeyPair *privacy.Privacy
Addr *string
}
// buildInputInfo 构建隐私交易输入的参数结构
type buildInputInfo struct {
tokenname string
sender string
amount int64
mixcount int32
}
// txOutputInfo 存储当前钱包地址下被选中的UTXO信息
type txOutputInfo struct {
amount int64
utxoGlobalIndex *privacytypes.UTXOGlobalIndex
txPublicKeyR []byte
onetimePublicKey []byte
}
type walletUTXO struct {
height int64
outinfo *txOutputInfo
}
type walletUTXOs struct {
utxos []*walletUTXO
}