Struct grin_core::libtx::proof::ProofBuilder
source · pub struct ProofBuilder<'a, K>where
K: Keychain,{ /* private fields */ }
Expand description
The new, more flexible proof builder
Implementations§
Trait Implementations§
source§impl<'a, K> Drop for ProofBuilder<'a, K>where
K: Keychain,
impl<'a, K> Drop for ProofBuilder<'a, K>where
K: Keychain,
source§impl<'a, K> ProofBuild for ProofBuilder<'a, K>where
K: Keychain,
impl<'a, K> ProofBuild for ProofBuilder<'a, K>where
K: Keychain,
source§fn proof_message(
&self,
_secp: &Secp256k1,
id: &Identifier,
switch: SwitchCommitmentType
) -> Result<ProofMessage, Error>
fn proof_message( &self, _secp: &Secp256k1, id: &Identifier, switch: SwitchCommitmentType ) -> Result<ProofMessage, Error>
Message bytes: 0: reserved for future use 1: wallet type (0 for standard) 2: switch commitment type 3: path depth 4-19: derivation path
source§fn rewind_nonce(
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
fn rewind_nonce( &self, _secp: &Secp256k1, commit: &Commitment ) -> Result<SecretKey, Error>
Create a BP nonce that will allow to rewind the derivation path and flags
source§fn private_nonce(
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
fn private_nonce( &self, _secp: &Secp256k1, commit: &Commitment ) -> Result<SecretKey, Error>
Create a BP nonce that blinds the private key
source§fn check_output(
&self,
_secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
fn check_output( &self, _secp: &Secp256k1, commit: &Commitment, amount: u64, message: ProofMessage ) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
Check if the output belongs to this keychain
Auto Trait Implementations§
impl<'a, K> Freeze for ProofBuilder<'a, K>
impl<'a, K> RefUnwindSafe for ProofBuilder<'a, K>where
K: RefUnwindSafe,
impl<'a, K> Send for ProofBuilder<'a, K>
impl<'a, K> Sync for ProofBuilder<'a, K>
impl<'a, K> Unpin for ProofBuilder<'a, K>
impl<'a, K> UnwindSafe for ProofBuilder<'a, K>where
K: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more