Documentation ¶
Index ¶
- func ConvertExistenceProof(p *merkle.Proof, key, value []byte) (*ics23.ExistenceProof, error)
- func CreateHashCidLink(hash []byte) cidlink.Link
- func CreateMetadataAbiMethod() abi.Method
- func CreateProof(e client.Context, txs []txtypes.Tx, rootKeyPath string) ([]byte, []*ics23.ExistenceProof, []*ics23.CommitmentProof, error)
- func GetLinkPrototype() ipld.LinkPrototype
- type AnconAPIHandler
- func (e *AnconAPIHandler) ClientCtx() client.Context
- func (e *AnconAPIHandler) GetTransactionByHash(hash string) (*sdk.TxResponse, error)
- func (e *AnconAPIHandler) QueryClient() *rpctypes.QueryClient
- func (e *AnconAPIHandler) SendRawTransaction(data hexutil.Bytes) (*sdk.TxResponse, error)
- func (e *AnconAPIHandler) VerifyMembership(root, key, value, exproof hexutil.Bytes) (*sdk.ABCIMessageLogs, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertExistenceProof ¶
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 ¶
MOVE to utils CreateHashCidLink takes a hash eg ethereum hash and converts it to cid multihash
func CreateMetadataAbiMethod ¶
func CreateProof ¶
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
Click to show internal directories.
Click to hide internal directories.