fn generate_key_ownership_proof_with_context(
        &self,
        __runtime_api_at_param__: &self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >,
        context: self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ExecutionContext,
        set_id: SetId,
        authority_id: AuthorityId,
    ) -> std::result::Result<
        Option<OpaqueKeyOwnershipProof>,
        self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ApiError,
    > {
        let runtime_api_impl_params_encoded =
            self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::Encode::encode(&(
                &set_id,
                &authority_id,
            ));
        self . GrandpaApi_generate_key_ownership_proof_runtime_api_impl (__runtime_api_at_param__ , context , Some ((set_id , authority_id)) , runtime_api_impl_params_encoded) . and_then (| r | match r { self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Native (n) => { Ok (n) } self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Encoded (r) => { < Option < OpaqueKeyOwnershipProof > as self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Decode > :: decode (& mut & r [..]) . map_err (| err | self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError :: FailedToDecodeReturnValue { function : "generate_key_ownership_proof" , error : err , }) } })
    }
/// Generates a proof of key ownership for the given authority in the
/// given set. An example usage of this module is coupled with the
/// session historical module to prove that a given authority key is
/// tied to a given staking identity during a specific session. Proofs
/// of key ownership are necessary for submitting equivocation reports.
/// NOTE: even though the API takes a `set_id` as parameter the current
/// implementations ignore this parameter and instead rely on this
/// method being called at the correct block height, i.e. any point at
/// which the given set id is live on-chain. Future implementations will
/// instead use indexed data through an offchain worker, not requiring
/// older states to be available.
Generates a proof of key ownership for the given authority in the
given set. An example usage of this module is coupled with the
session historical module to prove that a given authority key is
tied to a given staking identity during a specific session. Proofs
of key ownership are necessary for submitting equivocation reports.
NOTE: even though the API takes a `set_id` as parameter the current
implementations ignore this parameter and instead rely on this
method being called at the correct block height, i.e. any point at
which the given set id is live on-chain. Future implementations will
instead use indexed data through an offchain worker, not requiring
older states to be available.
Generates a proof of key ownership for the given authority in the given set . An example usage of this module is coupled with the session historical module to prove that a given authority key is tied to a given staking identity during a specific session . Proofs of key ownership are necessary for submitting equivocation reports . NOTE : even though the API takes a ` set_id ` as parameter the current implementations ignore this parameter and instead rely on this method being called at the correct block height i . e . any point at which the given set id is live on - chain . Future implementations will instead use indexed data through an offchain worker not requiring older states to be available .
fn generate_key_ownership_proof_with_context(
        &self,
        __runtime_api_at_param__: &self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >,
        context: self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ExecutionContext,
        set_id: SetId,
        authority_id: AuthorityId,
    ) -> std::result::Result<
        Option<OpaqueKeyOwnershipProof>,
        self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ApiError,
    > {
        let runtime_api_impl_params_encoded =
            self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::Encode::encode(&(
                &set_id,
                &authority_id,
            ));
        self . GrandpaApi_generate_key_ownership_proof_runtime_api_impl (__runtime_api_at_param__ , context , Some ((set_id , authority_id)) , runtime_api_impl_params_encoded) . and_then (| r | match r { self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Native (n) => { Ok (n) } self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Encoded (r) => { < Option < OpaqueKeyOwnershipProof > as self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Decode > :: decode (& mut & r [..]) . map_err (| err | self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError :: FailedToDecodeReturnValue { function : "generate_key_ownership_proof" , error : err , }) } })
    }
fn generate_key_ownership_proof_with_context ( & self , __runtime_api_at_param__ : & self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: BlockId < Block , > , context : self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ExecutionContext , set_id : SetId , authority_id : AuthorityId , ) -> std :: result :: Result < Option < OpaqueKeyOwnershipProof > , self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError , > { let runtime_api_impl_params_encoded = self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Encode :: encode ( & ( & set_id , & authority_id , ) ) ; self . GrandpaApi_generate_key_ownership_proof_runtime_api_impl ( __runtime_api_at_param__ , context , Some ( ( set_id , authority_id ) ) , runtime_api_impl_params_encoded ) . and_then ( | r | match r { self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Native ( n ) => { Ok ( n ) } self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: NativeOrEncoded :: Encoded ( r ) => { < Option < OpaqueKeyOwnershipProof > as self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: Decode > :: decode ( & mut & r [ .. ] ) . map_err ( | err | self :: sp_api_hidden_includes_DECL_RUNTIME_APIS :: sp_api :: ApiError :: FailedToDecodeReturnValue { function : " " , error : err , } ) } } ) }
Generates a proof of key ownership for the given authority in the
given set.
Generates a proof of key ownership for the given authority in the given set .
&self
__runtime_api_at_param__
&self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >
context
self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ExecutionContext
set_id
SetId
authority_id
AuthorityId
&self
__runtime_api_at_param__
&self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::BlockId<
            Block,
        >
context
self::sp_api_hidden_includes_DECL_RUNTIME_APIS::sp_api::ExecutionContext
set_id
SetId
authority_id
AuthorityId