# Packages

No description provided by the author
No description provided by the author

# Functions

NewCryptoComponentsHolderFactory creates a new instance of CryptoComponentsHolderFactory.
NewGuardianKeyGenerator returns a new instance of guardian key generator.
NewHttpClientWrapper returns a new instance of httpClientWrapper.

# Constants

ActiveGuardian represents an active guardian on chain.
LevelDB is the local levelDB.
MissingGuardian represents a guardian missing from chain.
MongoDB is the mongo db identifier.
NoExpiryValue is the returned value for a persistent key expiry time.
NotUsable represents a guardian recently generated but not verified.
PendingGuardian represents a pending guardian on chain.
RedisInstanceConnType specifies a redis connection to a single instance.
RedisSentinelConnType specifies a redis connection to a setup with sentinel.
Usable represents a verified guardian.
WebServerOffString represents the constant used to switch off the web server.

# Variables

ErrEmptyData signals that empty data was received.
No description provided by the author
ErrInvalidBucketHandlers signals than an invalid bucket handlers was provided.
ErrInvalidBucketID signals that an invalid bucket id was provided.
No description provided by the author
ErrInvalidNumberOfBuckets signals that an invalid number of buckets was provided.
ErrInvalidPubkeyConverterType signals that the provided pubkey converter type is invalid.
ErrInvalidRedisConnType signals that an invalid redis connection type has been provided.
ErrInvalidValue signals that an invalid value was provided.
ErrNilBucket signals that a nil bucket has been provided.
ErrNilBucketHandler signals that a nil bucket handler was provided.
ErrNilBucketIDProvider signals that a nil bucket id provider was provided.
ErrNilFacadeHandler signals that a nil facade handler has been provided.
ErrNilHttpClient signals that a nil http client has been provided.
ErrNilKeyGenerator signals that a nil key generator was provided.
ErrNilMetricsHandler signals that a nil metrics handler has been provided.
ErrNilMongoDBClient signals that a nil mongodb client has been provided.
ErrTooManyFailedAttempts signals that too many failed attempts were made.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ArgGuardianKeyGenerator is the DTO used to create a new instance of guardian key generator.
CryptoComponentsHolderFactory is the implementation of the CryptoComponentsHolderFactory interface.
GuardianInfo holds details about a guardian.
OTPInfo holds the encrypted otp along with its last update timestamp.
TcsConfig represents the TCS configuration to be exposed to the user.
UserInfo holds info about both user's guardians and its unique index.

# Interfaces

BucketIDProvider defines the methods for a component able to extract a bucket id from an address.
GuardedTxBuilder defines the component able to build and sign a guarded transaction.
HttpClient defines the behavior of http client able to make http requests.
HttpClientWrapper defines the behavior of wrapper over HttpClient.
IndexHandler defines the methods for a component which handles indexes.
KeyGenerator defines the methods for a component able to create a crypto.PrivateKey from a byte array.
KeysGenerator defines the methods for a component able to generate unique HD keys.
Marshaller defines the 2 basic operations: serialize (marshal) and deserialize (unmarshal).
NativeAuthWhitelistHandler defines the behavior of a component that handles whitelisted routes.
PubkeyConverter can convert public key bytes from a human-readable form.
ServiceResolver defines the methods available for a service.
StatusMetricsHandler defines the behavior of a component that handles status metrics.
StorageWithIndex defines the methods for a component that holds multiple BucketIndexHandler.
Storer provides storage services in a two layered storage construct, where the first layer is represented by a cache and second layer by a persistent storage (DB-like).

# Type aliases

DBType represents the type of DB.
GuardianState represents the state of the guardian.
OnChainGuardianState represents the on chain state of the guardian.
RedisConnType defines the redis connection type.