Documentation ¶
Overview ¶
Package notary attests to updates
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RefreshInterval = 1 * time.Second
RefreshInterval is how long to wait before refreshing. TODO: This should be done in config.
Functions ¶
func HashAttestation ¶
func HashAttestation(attestation types.Attestation) ([32]byte, error)
HashAttestation hashes an attestation.
Types ¶
type AttestationProducer ¶
type AttestationProducer struct {
// contains filtered or unexported fields
}
AttestationProducer updates a producer. TODO: this needs to become an interface.
func NewAttestationProducer ¶
func NewAttestationProducer(domain domains.DomainClient, db db.SynapseDB, signer signer.Signer, interval time.Duration) AttestationProducer
NewAttestationProducer creates an attestation producer.
func (AttestationProducer) FindLatestNonce ¶
func (a AttestationProducer) FindLatestNonce(ctx context.Context) (nonce uint32, err error)
FindLatestNonce fetches the latest nonce for a given chain.
type AttestationSubmitter ¶
type AttestationSubmitter struct {
// contains filtered or unexported fields
}
AttestationSubmitter submits updates continuously.
func NewAttestationSubmitter ¶
func NewAttestationSubmitter(domain domains.DomainClient, db db.SynapseDB, signer signer.Signer, interval time.Duration) AttestationSubmitter
NewAttestationSubmitter creates an update producer.
Click to show internal directories.
Click to hide internal directories.