signature.go 262 B

12345678910111213
  1. package filer_pb
  2. func (r *CreateEntryRequest) AddSignature(sig int32) {
  3. r.Signatures = append(r.Signatures, sig)
  4. }
  5. func (r *CreateEntryRequest) HasSigned(sig int32) bool {
  6. for _, s := range r.Signatures {
  7. if s == sig {
  8. return true
  9. }
  10. }
  11. return false
  12. }