MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / GeneratedSessionKeyID

Function GeneratedSessionKeyID

pkg/interop/client.go:319–321  ·  view source on GitHub ↗

GeneratedSessionKeyID returns whether the session key ID is generated locally and not by the Join Server.

(id []byte)

Source from the content-addressed store, hash-verified

317
318// GeneratedSessionKeyID returns whether the session key ID is generated locally and not by the Join Server.
319func GeneratedSessionKeyID(id []byte) bool {
320 return bytes.HasPrefix(id, generatedSessionKeyIDPrefix)
321}
322
323type joinServerClient interface {
324 HandleJoinRequest(

Callers 2

fetchAppSKeyMethod · 0.92
TestHandleJoinRequestFunction · 0.85

Calls 1

HasPrefixMethod · 0.45

Tested by 1

TestHandleJoinRequestFunction · 0.68