-
Notifications
You must be signed in to change notification settings - Fork 25
/
get.go
50 lines (40 loc) · 876 Bytes
/
get.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
package eddsa
import (
"crypto/ed25519"
)
// 获取 PrivateKey
func (this EdDSA) GetPrivateKey() ed25519.PrivateKey {
return this.privateKey
}
// 获取 PrivateKeySeed
func (this EdDSA) GetPrivateKeySeed() []byte {
return this.privateKey.Seed()
}
// 获取 PublicKey
func (this EdDSA) GetPublicKey() ed25519.PublicKey {
return this.publicKey
}
// 获取 Options
func (this EdDSA) GetOptions() *Options {
return this.options
}
// 获取 keyData
func (this EdDSA) GetKeyData() []byte {
return this.keyData
}
// 获取 data
func (this EdDSA) GetData() []byte {
return this.data
}
// 获取 parsedData
func (this EdDSA) GetParsedData() []byte {
return this.parsedData
}
// 获取验证后情况
func (this EdDSA) GetVerify() bool {
return this.verify
}
// 获取错误
func (this EdDSA) GetErrors() []error {
return this.Errors
}