Skip to content

Commit

Permalink
chain: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 19, 2024
1 parent 521b10a commit fea16dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chain/hostannouncement.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func (ha HostAnnouncement) ToAttestation(cs consensus.State, sk types.PrivateKey
return a
}

// FromAttestation decodes a host announcement from an attestation.
func (ha *HostAnnouncement) FromAttestation(a types.Attestation) bool {
if a.Key != attestationHostAnnouncement {
return false
Expand All @@ -59,6 +60,7 @@ func (ha HostAnnouncement) ToArbitraryData(sk types.PrivateKey) []byte {
return buf.Bytes()
}

// FromArbitraryData decodes a host announcement from arbitrary data.
func (ha *HostAnnouncement) FromArbitraryData(arb []byte) bool {
var s types.Specifier
var uk types.UnlockKey
Expand Down

0 comments on commit fea16dd

Please sign in to comment.