forked from filecoin-project/ffi-stub
/
bls.go
39 lines (30 loc) · 760 Bytes
/
bls.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
package ffi
func Hash(message Message) Digest {
return Digest{}
}
func Verify(signature *Signature, digests []Digest, publicKeys []PublicKey) bool {
return true
}
func HashVerify(signature *Signature, messages []Message, publicKeys []PublicKey) bool {
return true
}
func Aggregate(signatures []Signature) *Signature {
var s Signature
return &s
}
func PrivateKeyGenerate() PrivateKey {
return PrivateKey{}
}
func PrivateKeyGenerateWithSeed(seed PrivateKeyGenSeed) PrivateKey {
return PrivateKey{}
}
func PrivateKeySign(privateKey PrivateKey, message Message) *Signature {
var s Signature
return &s
}
func PrivateKeyPublicKey(privateKey PrivateKey) PublicKey {
return PublicKey{}
}
func CreateZeroSignature() Signature {
return Signature{}
}