mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
353229d50a
* add more tests * gaz * Merge refs/heads/master into addBLSMethods * Merge refs/heads/master into addBLSMethods * Merge refs/heads/master into addBLSMethods * Merge refs/heads/master into addBLSMethods
18 lines
518 B
Go
18 lines
518 B
Go
package bls
|
|
|
|
// SignatureSet refers to the defined set of
|
|
// signatures and its respective public keys and
|
|
// messages required to verify it.
|
|
type SignatureSet struct {
|
|
Signatures []Signature
|
|
PublicKeys []PublicKey
|
|
Messages [][32]byte
|
|
}
|
|
|
|
// Join merges the provided signature set to out current one.
|
|
func (s *SignatureSet) Join(set *SignatureSet) {
|
|
s.Signatures = append(s.Signatures, set.Signatures...)
|
|
s.PublicKeys = append(s.PublicKeys, set.PublicKeys...)
|
|
s.Messages = append(s.Messages, set.Messages...)
|
|
}
|