rom

package
v0.0.0-...-d12bbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain func() error

Chain represents the next stage in the boot process.

func Reset

func Reset(storagePath string) (Chain, error)

Reset is intended to emulate the early stage boot process of a device.

It's separate from the device emulator code to highlight that the process of verifying the local firmware/proofs/etc. could be done on-device at as part of the boot-ROM execution to provide some tamper-resistant properties to the firmware installed on the device.

Other, real-world, devices with secure elements may be able to optimise this process by checking once and leveraging properties of the hardware.

Returns the first link in the boot chain as a func.

type Resolver

type Resolver struct{}

Resolver defines imports for WebAssembly modules ran in Life.

func (*Resolver) ResolveFunc

func (r *Resolver) ResolveFunc(module, field string) exec.FunctionImport

ResolveFunc defines a set of import functions that may be called within a WebAssembly module.

func (*Resolver) ResolveGlobal

func (r *Resolver) ResolveGlobal(module, field string) int64

ResolveGlobal defines a set of global variables for use within a WebAssembly module.

Jump to

Keyboard shortcuts

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