Documentation ¶
Overview ¶
Package blockchainfossilizer implements a fossilizer that fossilize hashes on a blockchain. A blockchain fossilizer should usually be wrapped inside a batch fossilizer to use less blockchain transactions.
Index ¶
Constants ¶
View Source
const ( // Name is the name set in the fossilizer's information. Name = "blockchainfossilizer" // Description is the description set in the fossilizer's information. Description = "Stratumn's Blockchain Fossilizer" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config *Config) fossilizer.Adapter
New creates an instance of a blockchain fossilizer.
Types ¶
type Config ¶
type Config struct { Version string Commit string Timestamper blockchain.HashTimestamper }
Config for the blockchain fossilizer.
type Fossilizer ¶
type Fossilizer struct {
// contains filtered or unexported fields
}
Fossilizer fossilizes data on a blockchain.
func (*Fossilizer) AddFossilizerEventChan ¶
func (a *Fossilizer) AddFossilizerEventChan(fossilizerEventChan chan *fossilizer.Event)
AddFossilizerEventChan adds a new listener.
Click to show internal directories.
Click to hide internal directories.