From fea16ddafab6b1be1ec3d0b461963cd4aff4af36 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Thu, 19 Sep 2024 07:36:39 -0700 Subject: [PATCH] chain: fix lint --- chain/hostannouncement.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chain/hostannouncement.go b/chain/hostannouncement.go index 229d312..9acf99d 100644 --- a/chain/hostannouncement.go +++ b/chain/hostannouncement.go @@ -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 @@ -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