ancon

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertExistenceProof

func ConvertExistenceProof(p *merkle.Proof, key, value []byte) (*ics23.ExistenceProof, error)

ConvertExistenceProof will convert the given proof into a valid existence proof, if that's what it is.

This is the simplest case of the range proof and we will focus on demoing compatibility here

func CreateHashCidLink(hash []byte) cidlink.Link

MOVE to utils CreateHashCidLink takes a hash eg ethereum hash and converts it to cid multihash

func CreateMetadataAbiMethod

func CreateMetadataAbiMethod() abi.Method

func CreateProof

func CreateProof(e client.Context, txs []txtypes.Tx, rootKeyPath string) ([]byte, []*ics23.ExistenceProof, []*ics23.CommitmentProof, error)

func GetLinkPrototype

func GetLinkPrototype() ipld.LinkPrototype

Types

type AnconAPIHandler

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

AnconAPIHandler is the ancon_ prefixed set of APIs

func NewAPIHandler

func NewAPIHandler(
	ctx *server.Context,
	logger log.Logger,
	clientCtx client.Context,
	backend backend.Backend,

) *AnconAPIHandler

NewAPI creates an instance of the public ETH Web3 AnconAPIHandler.

func (*AnconAPIHandler) ClientCtx

func (e *AnconAPIHandler) ClientCtx() client.Context

ClientCtx returns client context

func (*AnconAPIHandler) GetTransactionByHash

func (e *AnconAPIHandler) GetTransactionByHash(hash string) (*sdk.TxResponse, error)

GetTransactionByHash

func (*AnconAPIHandler) QueryClient

func (e *AnconAPIHandler) QueryClient() *rpctypes.QueryClient

func (*AnconAPIHandler) SendRawTransaction

func (e *AnconAPIHandler) SendRawTransaction(data hexutil.Bytes) (*sdk.TxResponse, error)

SendSignTx

func (*AnconAPIHandler) VerifyMembership

func (e *AnconAPIHandler) VerifyMembership(root, key, value, exproof hexutil.Bytes) (*sdk.ABCIMessageLogs, error)

VerifyMembership

Jump to

Keyboard shortcuts

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