Struct parity_rpc::v1::SecretStoreClient
source · [−]pub struct SecretStoreClient { /* private fields */ }
Expand description
Parity implementation.
Implementations
sourceimpl SecretStoreClient
impl SecretStoreClient
sourcepub fn new(store: &Arc<AccountProvider>) -> Self
pub fn new(store: &Arc<AccountProvider>) -> Self
Creates new SecretStoreClient
Trait Implementations
sourceimpl SecretStore for SecretStoreClient
impl SecretStore for SecretStoreClient
sourcefn generate_document_key(
&self,
address: H160,
password: Password,
server_key_public: H512
) -> Result<EncryptedDocumentKey>
fn generate_document_key(
&self,
address: H160,
password: Password,
server_key_public: H512
) -> Result<EncryptedDocumentKey>
Generate document key to store in secret store.
Arguments: account
, password
, server_key_public
. Read more
sourcefn encrypt(
&self,
address: H160,
password: Password,
key: Bytes,
data: Bytes
) -> Result<Bytes>
fn encrypt(
&self,
address: H160,
password: Password,
key: Bytes,
data: Bytes
) -> Result<Bytes>
Encrypt data with key, received from secret store.
Arguments: account
, password
, key
, data
. Read more
sourcefn decrypt(
&self,
address: H160,
password: Password,
key: Bytes,
data: Bytes
) -> Result<Bytes>
fn decrypt(
&self,
address: H160,
password: Password,
key: Bytes,
data: Bytes
) -> Result<Bytes>
Decrypt data with key, received from secret store.
Arguments: account
, password
, key
, data
. Read more
sourcefn shadow_decrypt(
&self,
address: H160,
password: Password,
decrypted_secret: H512,
common_point: H512,
decrypt_shadows: Vec<Bytes>,
data: Bytes
) -> Result<Bytes>
fn shadow_decrypt(
&self,
address: H160,
password: Password,
decrypted_secret: H512,
common_point: H512,
decrypt_shadows: Vec<Bytes>,
data: Bytes
) -> Result<Bytes>
Decrypt data with shadow key, received from secret store.
Arguments: account
, password
, decrypted_secret
, common_point
, decrypt_shadows
, data
. Read more
sourcefn servers_set_hash(&self, servers_set: BTreeSet<H512>) -> Result<H256>
fn servers_set_hash(&self, servers_set: BTreeSet<H512>) -> Result<H256>
Calculates the hash (keccak256) of servers set for using in ServersSetChange session.
Returned hash must be signed later by using secretstore_signRawHash
method.
Arguments: servers_set
. Read more
sourcefn sign_raw_hash(
&self,
address: H160,
password: Password,
raw_hash: H256
) -> Result<Bytes>
fn sign_raw_hash(
&self,
address: H160,
password: Password,
raw_hash: H256
) -> Result<Bytes>
Generate recoverable ECDSA signature of raw hash.
Passed hash is treated as an input to the sign
function (no prefixes added, no hash function is applied).
Arguments: account
, password
, raw_hash
. Read more
sourcefn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Create an IoDelegate
, wiring rpc calls to the trait methods.
Auto Trait Implementations
impl !RefUnwindSafe for SecretStoreClient
impl Send for SecretStoreClient
impl Sync for SecretStoreClient
impl Unpin for SecretStoreClient
impl !UnwindSafe for SecretStoreClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more