vectors

package
v0.1.85 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceLeaf

type BalanceLeaf struct {
	OriginNetwork      uint32         `json:"origin_network"`
	OriginTokenAddress common.Address `json:"origin_token_address"`
}

type NullifierLeaf

type NullifierLeaf struct {
	NetworkID uint32 `json:"network_id"`
	Index     uint32 `json:"let_index"`
}

type TestVector

type TestVector[T BalanceLeaf | NullifierLeaf] struct {
	Transitions []Transition[T] `json:"transitions"`
}

type Transition

type Transition[T BalanceLeaf | NullifierLeaf] struct {
	PrevRoot   common.Hash    `json:"prev_root"`
	NewRoot    common.Hash    `json:"new_root"`
	UpdateLeaf UpdatedLeaf[T] `json:"updated_leaf"`
}

type UpdatedLeaf

type UpdatedLeaf[T BalanceLeaf | NullifierLeaf] struct {
	Key   T           `json:"key"`
	Value common.Hash `json:"value"`
	Path  string      `json:"path"`
}

Jump to

Keyboard shortcuts

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