Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceKey ¶
DeviceKey implements the Signer interface that is used to encode messages sent to the device
func ParseDeviceKey ¶
ParseDeviceKey returns a parsed device key capable of encoding device messages from a hex encoded byte array
type ServerKey ¶
type ServerKey struct {
*rsa.PrivateKey
}
ServerKey objects contain the rsa private key used to secure communications w/ the api
func ReadServerKeyFromFile ¶
ReadServerKeyFromFile returns a new device key from a filename
func (*ServerKey) SharedSecret ¶
SharedSecret returns the string version of the rsa public key
Click to show internal directories.
Click to hide internal directories.