Struct grin_core::libtx::proof::LegacyProofBuilder
source · pub struct LegacyProofBuilder<'a, K>where
K: Keychain,{ /* private fields */ }
Expand description
The legacy proof builder, used before the first hard fork
Implementations§
Trait Implementations§
source§impl<'a, K> Drop for LegacyProofBuilder<'a, K>where
K: Keychain,
impl<'a, K> Drop for LegacyProofBuilder<'a, K>where
K: Keychain,
source§impl<'a, K> ProofBuild for LegacyProofBuilder<'a, K>where
K: Keychain,
impl<'a, K> ProofBuild for LegacyProofBuilder<'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-3: 0 4-19: derivation path All outputs with this scheme are assumed to use regular switch commitments
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 LegacyProofBuilder<'a, K>
impl<'a, K> RefUnwindSafe for LegacyProofBuilder<'a, K>where
K: RefUnwindSafe,
impl<'a, K> Send for LegacyProofBuilder<'a, K>
impl<'a, K> Sync for LegacyProofBuilder<'a, K>
impl<'a, K> Unpin for LegacyProofBuilder<'a, K>
impl<'a, K> UnwindSafe for LegacyProofBuilder<'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