pub struct ConcealedValue {
pub commitment: PedersenCommitment,
pub range_proof: RangeProof,
}
Expand description
Confidential version of the additive state.
See also revealed version RevealedValue
.
Fields§
§commitment: PedersenCommitment
Pedersen commitment to the original FungibleState
.
range_proof: RangeProof
Range proof for the FungibleState
not exceeding type boundaries.
Implementations§
Source§impl ConcealedValue
impl ConcealedValue
Sourcepub fn verify_range_proof(&self) -> Result<bool, RangeProofError>
pub fn verify_range_proof(&self) -> Result<bool, RangeProofError>
Verifies validity of the range proof.
Trait Implementations§
Source§impl Clone for ConcealedValue
impl Clone for ConcealedValue
Source§fn clone(&self) -> ConcealedValue
fn clone(&self) -> ConcealedValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommitEncode for ConcealedValue
impl CommitEncode for ConcealedValue
Source§fn commit_encode(&self, e: &mut impl Write)
fn commit_encode(&self, e: &mut impl Write)
Encodes the data for the commitment by writing them directly into a
io::Write
writer instanceSource§impl CommitVerify<RevealedValue, PedersenProtocol> for ConcealedValue
impl CommitVerify<RevealedValue, PedersenProtocol> for ConcealedValue
Source§fn commit(revealed: &RevealedValue) -> ConcealedValue
fn commit(revealed: &RevealedValue) -> ConcealedValue
Creates a commitment to a byte representation of a given message
Source§impl ConfidentialState for ConcealedValue
impl ConfidentialState for ConcealedValue
fn state_type(&self) -> StateType
fn state_commitment(&self) -> StateCommitment
Source§impl Debug for ConcealedValue
impl Debug for ConcealedValue
Source§impl<'de> Deserialize<'de> for ConcealedValue
impl<'de> Deserialize<'de> for ConcealedValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcealedValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConcealedValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ConcealedValue
impl Hash for ConcealedValue
Source§impl PartialEq for ConcealedValue
impl PartialEq for ConcealedValue
Source§impl Serialize for ConcealedValue
impl Serialize for ConcealedValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl StrictDecode for ConcealedValue
impl StrictDecode for ConcealedValue
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<ConcealedValue, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictDumb for ConcealedValue
impl StrictDumb for ConcealedValue
fn strict_dumb() -> ConcealedValue
Source§impl StrictEncode for ConcealedValue
impl StrictEncode for ConcealedValue
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictStruct for ConcealedValue
impl StrictStruct for ConcealedValue
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for ConcealedValue
impl StrictType for ConcealedValue
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB
fn strict_name() -> Option<TypeName>
impl Copy for ConcealedValue
impl Eq for ConcealedValue
impl StrictProduct for ConcealedValue
impl StructuralPartialEq for ConcealedValue
Auto Trait Implementations§
impl Freeze for ConcealedValue
impl RefUnwindSafe for ConcealedValue
impl Send for ConcealedValue
impl Sync for ConcealedValue
impl Unpin for ConcealedValue
impl UnwindSafe for ConcealedValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.