aggregator

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionSubKeyResp

type ExtensionSubKeyResp struct {
	Result ExtensionSubKeyResult `json:"result,omitempty"`
	Error  rpcError              `json:"error,omitempty"`
}

type ExtensionSubKeyResult

type ExtensionSubKeyResult struct {
	ExtensionSmtEntry string `json:"extension_smt_entry"`
	SmtRootHash       string `json:"smt_root_hash"`
	BlockNumber       uint64 `json:"block_number"`
}

type RPCClient

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

func NewRPCClient

func NewRPCClient(url string) *RPCClient

func (*RPCClient) GetExtensionSubkeySmt

func (rpc *RPCClient) GetExtensionSubkeySmt(address *address.Address, pubkeyHash []byte, algIndex alg.AlgIndex, extData uint32) (*ExtensionSubKeyResult, error)

func (*RPCClient) GetSubkeyUnlockSmt

func (rpc *RPCClient) GetSubkeyUnlockSmt(address *address.Address, pubkeyHash []byte, algIndex alg.AlgIndex) (string, error)

type SubKeyUnlockResp

type SubKeyUnlockResp struct {
	Result SubKeyUnlockResult `json:"result,omitempty"`
	Error  rpcError           `json:"error,omitempty"`
}

type SubKeyUnlockResult

type SubKeyUnlockResult struct {
	UnlockEntry string `json:"unlock_entry"`
	BlockNumber uint64 `json:"block_number"`
}

Jump to

Keyboard shortcuts

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