Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anchor ¶
type Anchor struct {
// contains filtered or unexported fields
}
func NewKASAnchor ¶
func NewKASAnchor(kasConfig *KASConfig, db AnchorDB, bc BlockChain) *Anchor
func (*Anchor) AnchorBlock ¶
AnchorBlock converts given block to payload and anchor the payload via KAS anchor API.
func (*Anchor) AnchorPeriodicBlock ¶
AnchorPeriodicBlock periodically anchor blocks to KAS. if given block is invalid, it does nothing.
type BlockChain ¶
type Payload ¶
type Payload struct {
Id string `json:"id"`
types.AnchoringDataInternalType0
}
Click to show internal directories.
Click to hide internal directories.