settlement_client

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBatch

func AddBatch(witnessVector any, batchNumber int, lds *leveldb.DB) string

func AddExecutionLayer

func AddExecutionLayer() string

func VerifyBatch

func VerifyBatch(batchNumber int, proofByte []byte, ldda *leveldb.DB, lds *leveldb.DB) bool

Types

type PostAddBatchStruct

type PostAddBatchStruct struct {
	ChainID     string `json:"chain_id"`
	BatchNumber uint64 `json:"batch_number"`
	Witness     []byte `json:"witness"`
}

type PostAddExecutionLayerStruct

type PostAddExecutionLayerStruct struct {
	VerificationKey string `json:"verification_key"`
	ChainInfo       string `json:"chain_info"`
}

type VerifyBatchPostStruct

type VerifyBatchPostStruct struct {
	BatchNumber    uint64 `json:"batch_number"`
	ChainID        string `json:"chain_id"`
	MerkleRootHash string `json:"merkle_root_hash"`
	PrevMerkleRoot string `json:"prev_merkle_root"`
	ZkProof        []byte `json:"zk_proof"`
}

Jump to

Keyboard shortcuts

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