Trait subsocial_runtime::KeyOwnerProofSystem [−][src]
Something which can compute and check proofs of a historical key owner and return full identification data of that key owner.
Associated Types
type Proof: Codec
[src]
The proof of membership itself.
type IdentificationTuple: Codec
[src]
The full identification of a key owner and the stash account.
Required methods
pub fn prove(key: Key) -> Option<Self::Proof>
[src]
Prove membership of a key owner in the current block-state.
This should typically only be called off-chain, since it may be computationally heavy.
Returns Some
iff the key owner referred to by the given key
is a
member of the current set.
pub fn check_proof(
key: Key,
proof: Self::Proof
) -> Option<Self::IdentificationTuple>
[src]
key: Key,
proof: Self::Proof
) -> Option<Self::IdentificationTuple>
Check a proof of membership on-chain. Return Some
iff the proof is
valid and recent enough to check.
Implementations on Foreign Types
impl<Key> KeyOwnerProofSystem<Key> for ()
[src]
type Proof = Void
type IdentificationTuple = Void
pub fn prove(_key: Key) -> Option<<() as KeyOwnerProofSystem<Key>>::Proof>
[src]
pub fn check_proof(
_key: Key,
_proof: <() as KeyOwnerProofSystem<Key>>::Proof
) -> Option<<() as KeyOwnerProofSystem<Key>>::IdentificationTuple>
[src]
_key: Key,
_proof: <() as KeyOwnerProofSystem<Key>>::Proof
) -> Option<<() as KeyOwnerProofSystem<Key>>::IdentificationTuple>