Documentation
¶
Index ¶
- type Configurer
- type Decrypter
- type Identifier
- type IdentifierAndSigner
- type IdentifierSignerAndDecrypter
- type Info
- type Informer
- type InformerAndSigner
- type MachinePathLister
- type Node
- func (n *Node) ChainID() (uint64, error)
- func (n *Node) Decrypt(cipher []byte) ([]byte, error)
- func (n *Node) Governance() (signers []common.Address, threshold uint64, set bool)
- func (n *Node) Info() Info
- func (n *Node) MachinePaths() ([]machinepath.IMachinePathManagerMachinePath, uint64)
- func (n *Node) SetChainID(chainID uint64) error
- func (n *Node) SetExtensionID(id common.Hash) error
- func (n *Node) SetGovernance(signers []common.Address, threshold uint64) error
- func (n *Node) SetMachinePathList(paths []machinepath.IMachinePathManagerMachinePath, nonce uint64) error
- func (n *Node) SetOwner(owner common.Address) error
- func (n *Node) Sign(msgHash []byte) ([]byte, error)
- func (n *Node) State() (types.TeeState, error)
- func (n *Node) TeeID() common.Address
- type Signer
- type State
- type WalletNode
- type ZeroState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurer ¶
type IdentifierAndSigner ¶
type IdentifierAndSigner interface {
Identifier
Signer
}
type IdentifierSignerAndDecrypter ¶
type IdentifierSignerAndDecrypter interface {
Identifier
Signer
Decrypter
}
type InformerAndSigner ¶
type MachinePathLister ¶
type MachinePathLister interface {
MachinePaths() ([]machinepath.IMachinePathManagerMachinePath, uint64)
}
MachinePathLister exposes the governance-approved machine paths used to authorize direct-backup operations, along with the nonce of the last update.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func Initialize ¶
Initialize generates node's private key and sets the teeID.
func (*Node) ChainID ¶
ChainID returns the configured EVM chain ID, or an error if it has not been set.
func (*Node) Governance ¶
Governance returns the governance signer set, threshold, and whether governance has been configured. Signers are returned as a defensive copy.
func (*Node) MachinePaths ¶
func (n *Node) MachinePaths() ([]machinepath.IMachinePathManagerMachinePath, uint64)
MachinePaths returns a defensive copy of the governance-approved machine paths along with the nonce of the last update.
func (*Node) SetChainID ¶
SetChainID sets the EVM chain ID of the node. It can only be set once. The chain ID is bound into the governance-signed payload of SET_MACHINE_PATH_LIST.
func (*Node) SetExtensionID ¶
SetExtensionID sets the extension ID of the node. It can only be set once.
func (*Node) SetGovernance ¶
SetGovernance sets the governance signer set and threshold. It can only be set once. It computes and stores the canonical governance hash.
func (*Node) SetMachinePathList ¶
func (n *Node) SetMachinePathList(paths []machinepath.IMachinePathManagerMachinePath, nonce uint64) error
SetMachinePathList stores the governance-approved list of machine paths used to authorize direct-backup operations. The supplied nonce must be strictly greater than the currently stored one. Path slices are copied defensively.
type WalletNode ¶
type WalletNode interface {
IdentifierSignerAndDecrypter
MachinePathLister
}
WalletNode is the capability set required by the wallet instruction processor: TEE identity, signing, decryption, and the machine-path allowlist. The chain ID needed by signing-hash helpers is reached via the embedded Identifier.ChainID().