evmproof

package
v0.0.0-...-c0e0e34 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BRI_CONSENSUS = "dsa"

Functions

func ExecuteWithBurnProof

func ExecuteWithBurnProof(v *vault.Vault, auth *bind.TransactOpts, proof *DecodedProof) (*types.Transaction, error)

func SubmitBurnProof

func SubmitBurnProof(v *vault.Vault, auth *bind.TransactOpts, proof *DecodedProof) (*types.Transaction, error)

func SubmitMintPRVProof

func SubmitMintPRVProof(v *prveth.Prveth, auth *bind.TransactOpts, proof *DecodedProof) (*types.Transaction, error)

func Withdraw

func Withdraw(v *vault.Vault, auth *bind.TransactOpts, proof *DecodedProof) (*types.Transaction, error)

Types

type CommitteePublicKey

type CommitteePublicKey struct {
	IncPubKey    []byte
	MiningPubKey map[string][]byte
}

func (*CommitteePublicKey) FromString

func (pubKey *CommitteePublicKey) FromString(keyString string) error

type DecodedProof

type DecodedProof struct {
	Instruction []byte
	Heights     [2]*big.Int

	InstPaths       [2][][32]byte
	InstPathIsLefts [2][]bool
	InstRoots       [2][32]byte
	BlkData         [2][32]byte
	SigIdxs         [2][]*big.Int
	SigVs           [2][]uint8
	SigRs           [2][][32]byte
	SigSs           [2][][32]byte
}

func GetAndDecodeBurnProofUnifiedToken

func GetAndDecodeBurnProofUnifiedToken(
	incBridgeHost string,
	txID string,
	dataIndex int,
) (*DecodedProof, error)

func GetAndDecodeBurnProofV2

func GetAndDecodeBurnProofV2(
	incBridgeHost string,
	txID string,
	rpcMethod string,
) (*DecodedProof, error)

Jump to

Keyboard shortcuts

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