federation

package
v0.0.0-...-d96e93c Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later

SPDX-License-Identifier: AGPL-3.0-or-later

SPDX-License-Identifier: AGPL-3.0-or-later

SPDX-License-Identifier: AGPL-3.0-or-later

SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMerkleRoot

func BuildMerkleRoot(leaves [][]byte) []byte

func QueryTxByHash

func QueryTxByHash()

Queries Tendermint for a transaction by hash

Types

type FedCheckpoint

type FedCheckpoint struct {
	FederationID string
	Height       int64
	MerkleRoot   string // e.g. base64 or hex
	Signature    string
	Timestamp    string
}

type HederaAnchor

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

func NewHederaAnchor

func NewHederaAnchor(operatorID string, operatorKey string, topicID string) (*HederaAnchor, error)

NewHederaAnchor sets up a Hedera client.

func (*HederaAnchor) AnchorDigest

func (ha *HederaAnchor) AnchorDigest(data []byte) error

AnchorDigest submits a digest to Hedera Consensus Service.

type MetaFederationApp

type MetaFederationApp struct {
	abcitypes.BaseApplication

	PreviousValidators []ValidatorInfo
	// contains filtered or unexported fields
}

func (*MetaFederationApp) CheckTx

CheckTx validates incoming checkpoint transactions

func (*MetaFederationApp) FinalizeBlock

FinalizeBlock replaces BeginBlock / DeliverTx / EndBlock in ABCI++ (CometBFT v0.38).

func (*MetaFederationApp) GetActiveValidatorsFromDB

func (app *MetaFederationApp) GetActiveValidatorsFromDB() ([]ValidatorInfo, error)

func (*MetaFederationApp) Info

type OrgDirectoryServer

type OrgDirectoryServer struct {
	pb.UnimplementedOrgDirectoryServer
	// contains filtered or unexported fields
}

OrgDirectoryServer implements the OrgDirectory gRPC service

func NewOrgDirectoryServer

func NewOrgDirectoryServer() *OrgDirectoryServer

NewOrgDirectoryServer creates a new org directory service

func (*OrgDirectoryServer) QueryOrgs

QueryOrgs handles lookup by role or name

func (*OrgDirectoryServer) RegisterOrg

RegisterOrg handles registration of a new or updated OrgRecord

type ValidatorInfo

type ValidatorInfo struct {
	PubKey []byte
	Power  int64
}

Directories

Path Synopsis
SPDX-License-Identifier: AGPL-3.0-or-later cmd/chubbychecker/server.go
SPDX-License-Identifier: AGPL-3.0-or-later cmd/chubbychecker/server.go

Jump to

Keyboard shortcuts

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