Companion

Functions

Link copied to clipboard
fun of(node: Node, isOwnNode: Boolean = false): NodeSecurityIndicator

The indicator for node, where isOwnNode marks the row for the connected radio.

Link copied to clipboard
fun resolve(firmwareVersion: String?, hasPublicKey: Boolean, mismatchKey: Boolean, signed: Boolean = false, verified: Boolean = false, isOwnNode: Boolean = false): NodeSecurityIndicator

Decides the indicator from snapshot fields alone, so the precedence is testable without a Node.

Link copied to clipboard
fun signsBroadcasts(firmwareVersion: String?): Boolean

True when firmwareVersion is known and is 2.8 or newer.