Documentation ¶
Index ¶
- func AllDataHash(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest) (data_hash []byte)
- func CalculateContentHashForRelayData(relayRequestData *pairingtypes.RelayPrivateData) []byte
- func DataToSignRelayResponse(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest) (dataToSign []byte)
- func DataToSignResponseFinalizationData(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest, ...) (dataToSign []byte)
- func DataToSignResponseFinalizationDataInner(latestBlock int64, sessionID uint64, blockHeight int64, relayNum uint64, ...) (dataToSign []byte)
- func DataToVerifyProviderSig(request *pairingtypes.RelayRequest, data_hash []byte) (dataToSign []byte)
- func ExtractSignerAddress(in *pairingtypes.RelaySession) (sdk.AccAddress, error)
- func GenerateFloatingKey() (secretKey *btcSecp256k1.PrivateKey, addr sdk.AccAddress)
- func GetKeyName(clientCtx client.Context) (string, error)
- func GetPrivKey(clientCtx client.Context, keyName string) (*btcSecp256k1.PrivateKey, error)
- func GetSignerForVRF(dataReliability pairingtypes.VRFData) (signer sdk.AccAddress, err error)
- func HashMsg(msgData []byte) []byte
- func RecoverProviderPubKeyFromQueryAndAllDataHash(request *pairingtypes.RelayRequest, allDataHash []byte, providerSig []byte) (secp256k1.PubKey, error)
- func RecoverProviderPubKeyFromVrfDataAndQuery(request *pairingtypes.RelayRequest) (secp256k1.PubKey, error)
- func RecoverProviderPubKeyFromVrfDataOnly(dataReliability *pairingtypes.VRFData) (providerAccAddress sdk.AccAddress, err error)
- func RecoverPubKey(sig []byte, msgHash []byte) (secp256k1.PubKey, error)
- func RecoverPubKeyFromRelay(relay pairingtypes.RelaySession) (secp256k1.PubKey, error)
- func RecoverPubKeyFromRelayReply(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest) (secp256k1.PubKey, error)
- func RecoverPubKeyFromResponseFinalizationData(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest, ...) (secp256k1.PubKey, error)
- func RecoverPubKeyFromVRFData(vrfData pairingtypes.VRFData) (secp256k1.PubKey, error)
- func SignRelay(pkey *btcSecp256k1.PrivateKey, request pairingtypes.RelaySession) ([]byte, error)
- func SignRelayResponse(pkey *btcSecp256k1.PrivateKey, relayResponse *pairingtypes.RelayReply, ...) ([]byte, error)
- func SignResponseFinalizationData(pkey *btcSecp256k1.PrivateKey, relayResponse *pairingtypes.RelayReply, ...) ([]byte, error)
- func SignVRFData(pkey *btcSecp256k1.PrivateKey, vrfData *pairingtypes.VRFData) ([]byte, error)
- func ValidateSignerOnVRFData(signer sdk.AccAddress, dataReliability pairingtypes.VRFData) (valid bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDataHash ¶ added in v0.9.0
func AllDataHash(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest) (data_hash []byte)
func CalculateContentHashForRelayData ¶ added in v0.9.0
func CalculateContentHashForRelayData(relayRequestData *pairingtypes.RelayPrivateData) []byte
func DataToSignRelayResponse ¶ added in v0.9.0
func DataToSignRelayResponse(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest) (dataToSign []byte)
func DataToSignResponseFinalizationData ¶ added in v0.9.0
func DataToSignResponseFinalizationData(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest, clientAddress sdk.AccAddress) (dataToSign []byte)
func DataToSignResponseFinalizationDataInner ¶ added in v0.9.0
func DataToVerifyProviderSig ¶ added in v0.9.0
func DataToVerifyProviderSig(request *pairingtypes.RelayRequest, data_hash []byte) (dataToSign []byte)
func ExtractSignerAddress ¶
func ExtractSignerAddress(in *pairingtypes.RelaySession) (sdk.AccAddress, error)
func GenerateFloatingKey ¶
func GenerateFloatingKey() (secretKey *btcSecp256k1.PrivateKey, addr sdk.AccAddress)
func GetPrivKey ¶
func GetPrivKey(clientCtx client.Context, keyName string) (*btcSecp256k1.PrivateKey, error)
func GetSignerForVRF ¶ added in v0.9.0
func GetSignerForVRF(dataReliability pairingtypes.VRFData) (signer sdk.AccAddress, err error)
func RecoverProviderPubKeyFromQueryAndAllDataHash ¶ added in v0.9.0
func RecoverProviderPubKeyFromQueryAndAllDataHash(request *pairingtypes.RelayRequest, allDataHash []byte, providerSig []byte) (secp256k1.PubKey, error)
func RecoverProviderPubKeyFromVrfDataAndQuery ¶ added in v0.9.0
func RecoverProviderPubKeyFromVrfDataAndQuery(request *pairingtypes.RelayRequest) (secp256k1.PubKey, error)
func RecoverProviderPubKeyFromVrfDataOnly ¶ added in v0.9.0
func RecoverProviderPubKeyFromVrfDataOnly(dataReliability *pairingtypes.VRFData) (providerAccAddress sdk.AccAddress, err error)
func RecoverPubKeyFromRelay ¶ added in v0.9.0
func RecoverPubKeyFromRelay(relay pairingtypes.RelaySession) (secp256k1.PubKey, error)
func RecoverPubKeyFromRelayReply ¶ added in v0.9.0
func RecoverPubKeyFromRelayReply(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest) (secp256k1.PubKey, error)
func RecoverPubKeyFromResponseFinalizationData ¶ added in v0.9.0
func RecoverPubKeyFromResponseFinalizationData(relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest, addr sdk.AccAddress) (secp256k1.PubKey, error)
func RecoverPubKeyFromVRFData ¶ added in v0.9.0
func RecoverPubKeyFromVRFData(vrfData pairingtypes.VRFData) (secp256k1.PubKey, error)
func SignRelay ¶ added in v0.9.0
func SignRelay(pkey *btcSecp256k1.PrivateKey, request pairingtypes.RelaySession) ([]byte, error)
func SignRelayResponse ¶ added in v0.9.0
func SignRelayResponse(pkey *btcSecp256k1.PrivateKey, relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest) ([]byte, error)
func SignResponseFinalizationData ¶ added in v0.9.0
func SignResponseFinalizationData(pkey *btcSecp256k1.PrivateKey, relayResponse *pairingtypes.RelayReply, relayReq *pairingtypes.RelayRequest, clientAddress sdk.AccAddress) ([]byte, error)
func SignVRFData ¶ added in v0.9.0
func SignVRFData(pkey *btcSecp256k1.PrivateKey, vrfData *pairingtypes.VRFData) ([]byte, error)
func ValidateSignerOnVRFData ¶ added in v0.9.0
func ValidateSignerOnVRFData(signer sdk.AccAddress, dataReliability pairingtypes.VRFData) (valid bool, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.