vaultdon

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VaultPublicKeyHex

func VaultPublicKeyHex(v *VaultDON) (string, error)

VaultPublicKeyHex returns the on-chain vault master public key for the resolved DON.

Types

type Reader

type Reader interface {
	GetDONsInFamily(ctx context.Context, family string) ([]*big.Int, error)
	GetDON(ctx context.Context, donID uint32) (capreg.CapabilitiesRegistryDONInfo, error)
	GetNodes(ctx context.Context) ([]capreg.INodeInfoProviderNodeInfo, error)
}

Reader loads vault DON metadata from a CapabilitiesRegistry contract.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver resolves the tenant vault DON for a DON family via CapabilitiesRegistry reads.

func NewResolver

func NewResolver(reader Reader, family string) *Resolver

NewResolver constructs a vault DON resolver for the given family.

func (*Resolver) ResolveVaultDON

func (r *Resolver) ResolveVaultDON(ctx context.Context) (*VaultDON, error)

ResolveVaultDON finds the unique vault@1.0.0 DON in the configured family and loads its nodes.

type VaultDON

VaultDON is the vault capability DON and its member nodes from the registry.

Jump to

Keyboard shortcuts

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