Documentation ¶
Index ¶
- Constants
- func VerifySignature(obj types.HashTreeRoot, d types.Domain, pkBytes, sigBytes []byte) (bool, error)
- func VerifySignatureBytes(msg [32]byte, sigBytes, pkBytes []byte) (ok bool, err error)
- type ProcessManagerMetrics
- type Request
- type Resp
- type StoreResp
- type VerificationManager
- func (rm *VerificationManager) AttachMetrics(m *metrics.Metrics)
- func (rm *VerificationManager) Enqueue(ctx context.Context, sig [96]byte, pubkey [48]byte, msg [32]byte) (err error)
- func (rm *VerificationManager) GetVerifyChan(stack uint) chan Request
- func (rm *VerificationManager) RunVerify(num uint)
- func (rm *VerificationManager) VerifyChan() chan Request
- func (rm *VerificationManager) VerifyParallel()
Constants ¶
View Source
const ( ResponseQueueSubmit = iota ResponseQueueRegister ResponseQueueOther )
View Source
const BLST_SUCCESS = 0x0
Variables ¶
This section is empty.
Functions ¶
func VerifySignature ¶
Types ¶
type ProcessManagerMetrics ¶
type ProcessManagerMetrics struct { VerifyTiming *prometheus.HistogramVec RunningWorkers *prometheus.GaugeVec }
type Request ¶
type Request struct { Signature [96]byte Pubkey [48]byte Msg [32]byte // Unique identifier of payload // if needed to be passed back in response ID int Response *StoreResp }
VerifyReq is a request structure used in communication between api calls and fixed set of worker goroutines it's using return channel pattern, meaning that after sent the sender locks on that channel to get the response
type Resp ¶
Resp respone structure - potential candidate for structure pool as it's almost constant size
type StoreResp ¶
type StoreResp struct {
// contains filtered or unexported fields
}
func (*StoreResp) SuccessfullIndexes ¶
type VerificationManager ¶
type VerificationManager struct { VerifySubmitBlockCh chan Request VerifyRegisterValidatorCh chan Request VerifyOtherCh chan Request // contains filtered or unexported fields }
func NewVerificationManager ¶
func NewVerificationManager(l log.Logger, verifySize uint) *VerificationManager
func (*VerificationManager) AttachMetrics ¶
func (rm *VerificationManager) AttachMetrics(m *metrics.Metrics)
func (*VerificationManager) GetVerifyChan ¶
func (rm *VerificationManager) GetVerifyChan(stack uint) chan Request
func (*VerificationManager) RunVerify ¶
func (rm *VerificationManager) RunVerify(num uint)
func (*VerificationManager) VerifyChan ¶
func (rm *VerificationManager) VerifyChan() chan Request
func (*VerificationManager) VerifyParallel ¶
func (rm *VerificationManager) VerifyParallel()
Click to show internal directories.
Click to hide internal directories.