From 95d91ea5a2ef645bddaddb852ecc32ab03b082f2 Mon Sep 17 00:00:00 2001 From: Darren Kellenschwiler Date: Tue, 21 Nov 2023 13:44:31 -0600 Subject: [PATCH] explain Signed-off-by: Darren Kellenschwiler --- bump.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bump.go b/bump.go index fdad07a..6eabc61 100644 --- a/bump.go +++ b/bump.go @@ -141,6 +141,7 @@ func (bump *BUMP) Bytes() ([]byte, error) { return bytes, nil } +// String encodes a BUMP as a hex string. func (bump *BUMP) String() (string, error) { bytes, err := bump.Bytes() if err != nil { @@ -149,6 +150,8 @@ func (bump *BUMP) String() (string, error) { return hex.EncodeToString(bytes), nil } +// Txids returns the txids within the BUMP which the client is expecting. +// This allows a client to receive one BUMP for a whole block and it will know which txids it should update. func (bump *BUMP) Txids() []string { txids := make([]string, 0) for _, leaf := range bump.Path[0] {