vaultdon

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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