-
Notifications
You must be signed in to change notification settings - Fork 0
/
crypto.go
108 lines (82 loc) · 1.58 KB
/
crypto.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
package crypto
import (
"math/big"
"crypto/ecdsa"
"github.com/coolsnady/hcd/chaincfg/chainec"
)
type PrivateKey interface{
chainec.PrivateKey
PublicKey() PublicKey
}
type PublicKey interface{
chainec.PublicKey
}
type Signature interface{
chainec.Signature
}
type PublicKeyAdapter struct {
}
type PrivateKeyAdapter struct {
}
type SignatureAdapter struct {
}
//PrivateKeyAdapter
func (pa PrivateKeyAdapter) Serialize() []byte{
return nil
}
func (pa PrivateKeyAdapter)SerializeSecret() []byte{
return nil
}
func (pa PrivateKeyAdapter) Public() (*big.Int, *big.Int){
return nil, nil
}
func (pa PrivateKeyAdapter) PublicKey() PublicKey{
return nil
}
func (pa PrivateKeyAdapter) GetD() *big.Int{
return nil
}
func (pa PrivateKeyAdapter) GetType() int{
return 0
}
//PublicKeyAdapter
func (pa PublicKeyAdapter)Serialize() []byte{
return nil
}
func (pa PublicKeyAdapter) SerializeUncompressed() []byte{
return nil
}
func (pa PublicKeyAdapter) SerializeCompressed() []byte{
return nil
}
func (pa PublicKeyAdapter) SerializeHybrid() []byte{
return nil
}
func (pa PublicKeyAdapter) ToECDSA() *ecdsa.PublicKey{
return nil
}
func (pa PublicKeyAdapter) GetCurve() interface{}{
return nil
}
func (pa PublicKeyAdapter) GetX() *big.Int{
return nil
}
func (pa PublicKeyAdapter) GetY() *big.Int{
return nil
}
func (pa PublicKeyAdapter) GetType() int{
return 0
}
//SignatureAdapter
func (s SignatureAdapter) Serialize() []byte{
return nil
}
func (s SignatureAdapter) GetR() *big.Int{
return nil
}
func (s SignatureAdapter ) GetS() *big.Int{
return nil
}
func GetType() int{
return 0
}