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§

source§

impl<'a, K> LegacyProofBuilder<'a, K>
where K: Keychain,

source

pub fn new(keychain: &'a K) -> Self

Creates a new instance of this proof builder

Trait Implementations§

source§

impl<'a, K> Drop for LegacyProofBuilder<'a, K>
where K: Keychain,

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

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>

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>

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>

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>

Check if the output belongs to this keychain
source§

impl<'a, K> Zeroize for LegacyProofBuilder<'a, K>
where K: Keychain,

source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> UnsafeAny for T
where T: Any,