Skip to main content

bootstrap_peer

Function bootstrap_peer 

Source
pub fn bootstrap_peer(
    peer_id: &str,
    parties: Vec<PartyRef>,
) -> AuthenticatedPeer
Available on crate features server and testkit only.
Expand description

An AuthenticatedPeer that still holds CREDENTIALS_TOKEN_A, for testing the scope rule.

Takes the parties for the same reason registered_peer does: the ownership check compares the URL’s owner against them, so a helper that guessed would make every ownership test a test of the guess.