rpc

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirmwareUpdate

type FirmwareUpdate struct {
	// Sequence is a counter used to ensure correct ordering of chunks of firmware.
	Sequence uint

	// Image is the firmware image to be applied.
	Image []byte

	//  Proof contains firmware transparency artefacts for the new firmware image.
	Proof config.ProofBundle
}

FirmwareUpdate represents a firmware update.

type Handler

type Handler struct {
	G uint32
	P uint32
}

Handler represents an RPC request for event handler registration.

type InstalledVersions

type InstalledVersions struct {
	OS     semver.Version
	Applet semver.Version
}

InstalledVersions represents the installed/running versions of the TrustedOS and applet.

type LEDStatus

type LEDStatus struct {
	Name string
	On   bool
}

LEDStatus represents an RPC LED state request.

type Read

type Read struct {
	Offset int64
	Size   int64
}

Read represents an RPC request for internal eMMC read.

type WitnessStatus

type WitnessStatus struct {
	// Identity is the note-compatible public key used to verify witness signatures.
	Identity string
	// IP is the currently-assigned IP address of the witness applet.
	IP string
	// IDAttestPublicKey is the stable-derived use by this device to attest to witness IDs.
	IDAttestPublicKey string
	// AttestedID is a note formatted attestation for the current witness ID.
	AttestedID string
}

WitnessStatus represents the witness applet's status.

type WriteBlocks

type WriteBlocks struct {
	LBA  int
	Data []byte
}

WriteBlocks represents an RPC request for internal eMMC write.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL