[−][src]Trait grin_core::libtx::proof::ProofBuild
Used for building proofs and checking if the output belongs to the wallet
Required methods
fn rewind_nonce(
&self,
secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
&self,
secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
Create a BP nonce that will allow to rewind the derivation path and flags
fn private_nonce(
&self,
secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
&self,
secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
Create a BP nonce that blinds the private key
fn proof_message(
&self,
secp: &Secp256k1,
id: &Identifier,
switch: SwitchCommitmentType
) -> Result<ProofMessage, Error>
&self,
secp: &Secp256k1,
id: &Identifier,
switch: SwitchCommitmentType
) -> Result<ProofMessage, Error>
Create a BP message
fn check_output(
&self,
secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
&self,
secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
Check if the output belongs to this keychain
Implementations on Foreign Types
impl ProofBuild for ViewKey
[src]
fn rewind_nonce(
&self,
secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
[src]
&self,
secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
fn private_nonce(
&self,
_secp: &Secp256k1,
_commit: &Commitment
) -> Result<SecretKey, Error>
[src]
&self,
_secp: &Secp256k1,
_commit: &Commitment
) -> Result<SecretKey, Error>
fn proof_message(
&self,
_secp: &Secp256k1,
_id: &Identifier,
_switch: SwitchCommitmentType
) -> Result<ProofMessage, Error>
[src]
&self,
_secp: &Secp256k1,
_id: &Identifier,
_switch: SwitchCommitmentType
) -> Result<ProofMessage, Error>
fn check_output(
&self,
secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
[src]
&self,
secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
Implementors
impl<'a, K> ProofBuild for LegacyProofBuilder<'a, K> where
K: Keychain,
[src]
K: Keychain,
fn rewind_nonce(
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
[src]
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
fn private_nonce(
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
[src]
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
fn proof_message(
&self,
_secp: &Secp256k1,
id: &Identifier,
_switch: SwitchCommitmentType
) -> Result<ProofMessage, Error>
[src]
&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
fn check_output(
&self,
_secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
[src]
&self,
_secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
impl<'a, K> ProofBuild for ProofBuilder<'a, K> where
K: Keychain,
[src]
K: Keychain,
fn rewind_nonce(
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
[src]
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
fn private_nonce(
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
[src]
&self,
_secp: &Secp256k1,
commit: &Commitment
) -> Result<SecretKey, Error>
fn proof_message(
&self,
_secp: &Secp256k1,
id: &Identifier,
switch: SwitchCommitmentType
) -> Result<ProofMessage, Error>
[src]
&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
fn check_output(
&self,
_secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>
[src]
&self,
_secp: &Secp256k1,
commit: &Commitment,
amount: u64,
message: ProofMessage
) -> Result<Option<(Identifier, SwitchCommitmentType)>, Error>