Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProof ¶
GetProof will receive a rootHash and an address from the client, and it will return the Merkle proof
func GetProofCurrentRootHash ¶
GetProofCurrentRootHash will receive an address from the client, and it will return the Merkle proof for the current root hash
func VerifyProof ¶
VerifyProof will receive a rootHash, an address and a Merkle proof from the client, and it will verify the proof
Types ¶
type FacadeHandler ¶
type FacadeHandler interface { GetProof(rootHash string, address string) ([][]byte, error) GetProofCurrentRootHash(address string) ([][]byte, []byte, error) VerifyProof(rootHash string, address string, proof [][]byte) (bool, error) }
FacadeHandler interface defines methods that can be used by the gin webserver
type VerifyProofRequest ¶
type VerifyProofRequest struct { RootHash string `json:"roothash"` Address string `json:"address"` Proof []string `json:"proof"` }
VerifyProofRequest represents the parameters needed to verify a Merkle proof
Click to show internal directories.
Click to hide internal directories.