• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 16298099473

15 Jul 2025 03:51PM UTC coverage: 55.226% (-12.1%) from 67.338%
16298099473

Pull #10080

github

web-flow
Merge 00914431e into df6c02e3a
Pull Request #10080: sqldb+graph/db: prefix graph SQL objects with "graph_"

0 of 211 new or added lines in 3 files covered. (0.0%)

23795 existing lines in 293 files now uncovered.

108588 of 196626 relevant lines covered (55.23%)

22290.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.5
/watchtower/wtdb/session_id.go
1
package wtdb
2

3
import (
4
        "encoding/hex"
5

6
        "github.com/btcsuite/btcd/btcec/v2"
7
)
8

9
// SessionIDSize is 33-bytes; it is a serialized, compressed public key.
10
const SessionIDSize = 33
11

12
// SessionID is created from the remote public key of a client, and serves as a
13
// unique identifier and authentication for sending state updates.
14
type SessionID [SessionIDSize]byte
15

16
// NewSessionIDFromPubKey creates a new SessionID from a public key.
17
func NewSessionIDFromPubKey(pubKey *btcec.PublicKey) SessionID {
538✔
18
        var sid SessionID
538✔
19
        copy(sid[:], pubKey.SerializeCompressed())
538✔
20
        return sid
538✔
21
}
538✔
22

23
// String returns a hex encoding of the session id.
UNCOV
24
func (s SessionID) String() string {
×
UNCOV
25
        return hex.EncodeToString(s[:])
×
UNCOV
26
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc