Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
nit: doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxcanfly committed Feb 12, 2024
1 parent 6533c4e commit 49591b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions celestia/celestia.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,13 @@ func (c *CelestiaDA) Validate(ctx context.Context, ids []da.ID, daProofs []da.Pr
// This is 8 as uint64 consist of 8 bytes.
const heightLen = 8

// MakeID returns the ID from the height and commitment.
func makeID(height uint64, commitment da.Commitment) da.ID {
id := make([]byte, heightLen+len(commitment))
binary.LittleEndian.PutUint64(id, height)
copy(id[heightLen:], commitment)
return id
}

// SplitID returns the height and commitment from the ID.
func splitID(id da.ID) (uint64, da.Commitment) {
if len(id) <= heightLen {
return 0, nil
Expand Down

0 comments on commit 49591b2

Please sign in to comment.