Versions in this module Expand all Collapse all v0 v0.0.8-rc1 Apr 28, 2026 v0.0.7 May 4, 2026 v0.0.7-rc1 Apr 16, 2026 v0.0.6 Apr 14, 2026 v0.0.6-rc1 Apr 14, 2026 v0.0.5 Mar 27, 2026 Changes in this version + var ErrRequestBodyTooLarge = Error v0.0.4 Mar 24, 2026 Changes in this version type APIConfig + PinataConfig metadata.PinataMetadataProviderConfig v0.0.3-rc1 Mar 24, 2026 v0.0.2 Mar 5, 2026 Changes in this version + const BallotByIndexEndpoint + const BallotIndexURLParam + const NewEncryptionKeysEndpoint v0.0.2-rc1 Mar 5, 2026 v0.0.1 Feb 3, 2026 Changes in this version + const AddressURLParam + const CensusParticipantEndpoint + const HostLoadEndpoint + const InfoEndpoint + const MetadataGetEndpoint + const MetadataHashParam + const MetadataSetEndpoint + const PingEndpoint + const ProcessEndpoint + const ProcessURLParam + const ProcessesEndpoint + const SequencerUUIDURLParam + const SequencerWorkersEndpoint + const StaticFilesEndpoint + const VoteByAddressEndpoint + const VoteIDURLParam + const VoteStatusEndpoint + const VotesEndpoint + const WorkerAddressQueryParam + const WorkerJobEndpoint + const WorkerNameQueryParam + const WorkerTokenDataEndpoint + const WorkerTokenQueryParam + const WorkersEndpoint + var DisabledLogging = false + var ErrAddressAlreadyProcessing = Error + var ErrBallotAlreadyProcessing = Error + var ErrBallotAlreadySubmitted = Error + var ErrCensusNotFound = Error + var ErrExpiredWorkerAuthtoken = Error + var ErrGenericInternalServerError = Error + var ErrInvalidBallotInputsHash = Error + var ErrInvalidBallotProof = Error + var ErrInvalidCensusID = Error + var ErrInvalidCensusProof = Error + var ErrInvalidContractVersion = Error + var ErrInvalidCurveType = Error + var ErrInvalidSignature = Error + var ErrInvalidWorkerAuthtoken = Error + var ErrKeyLengthExceeded = Error + var ErrMalformedAddress = Error + var ErrMalformedBody = Error + var ErrMalformedNullifier = Error + var ErrMalformedParam = Error + var ErrMalformedProcessID = Error + var ErrMalformedWorkerInfo = Error + var ErrMarshalingServerJSONFailed = Error + var ErrProcessMaxVotersReached = Error + var ErrProcessNotAcceptingVotes = Error + var ErrProcessNotFound = Error + var ErrResourceNotFound = Error + var ErrUnauthorized = Error + var ErrWorkerBanned = Error + var ErrWorkerNotAvailable = Error + var ErrWorkerNotFound = Error + var LogExcludedPrefixes = []string + func EndpointWithParam(path, key, param string) string + type API struct + func New(ctx context.Context, conf *APIConfig) (*API, error) + func (a *API) ProcessIDVersion() ([4]byte, error) + func (a *API) Router() *chi.Mux + func (a *API) SequencerUUID() *uuid.UUID + type APIConfig struct + Host string + Network string + Port int + SequencerWorkersSeed string + Storage *stg.Storage + Web3Config config.DavinciWeb3Config + WorkerBanRules *workers.WorkerBanRules + WorkerJobTimeout time.Duration + WorkersAuthtokenExpiration time.Duration + type CensusParticipant struct + Key types.HexBytes + Weight *types.BigInt + type ContractAddresses struct + OrganizationRegistry string + ProcessRegistry string + ResultsZKVerifier string + StateTransitionZKVerifier string + type Error struct + Code int + Err error + HTTPstatus int + func (e Error) Error() string + func (e Error) MarshalJSON() ([]byte, error) + func (e Error) With(s string) Error + func (e Error) WithErr(err error) Error + func (e Error) Withf(format string, args ...any) Error + func (e Error) Write(w http.ResponseWriter) + type HostLoadResponse struct + HostDiskUsedPercent map[string]float64 + HostLoad1 float64 + HostMemUsedPercent float64 + MemStats any + type LoggingConfig struct + ExcludedPrefixes []string + MaxBodyLog int + func DefaultLoggingConfig() LoggingConfig + type ProcessList struct + Processes []types.ProcessID + type ProcessResponse struct + IsAcceptingVotes bool + type SequencerInfo struct + CircuitHash string + CircuitURL string + Contracts ContractAddresses + Network map[string]uint32 + ProvingKeyHash string + ProvingKeyURL string + SequencerAddress types.HexBytes + VerificationKeyHash string + VerificationKeyURL string + WASMhelperExecJsHash string + WASMhelperExecJsURL string + WASMhelperHash string + WASMhelperURL string + type SequencerStatsResponse struct + ActiveProcesses int + PendingVotes int + type SetMetadataResponse struct + Hash types.HexBytes + type Vote struct + Address types.HexBytes + Ballot *elgamal.Ballot + BallotInputsHash *types.BigInt + BallotProof *circomgnark.CircomProof + CensusProof types.CensusProof + ProcessID types.ProcessID + Signature types.HexBytes + VoteID types.HexBytes + type VoteResponse struct + VoteID types.HexBytes + type VoteStatusResponse struct + Status string + type WorkerAuthDataResponse struct + AuthTokenSuffix types.HexBytes + CreatedAt string + Message string + Signature types.HexBytes + type WorkerInfo struct + FailedCount int64 + Name string + SuccessCount int64 + type WorkerJobResponse struct + Address string + FailedCount int64 + SuccessCount int64 + VoteID types.HexBytes + type WorkersListResponse struct + Workers []WorkerInfo