pub struct PointInFiniteField {
pub x: BigNumber,
pub y: BigNumber,
}Expand description
A point in GF(p) representing (x, y) coordinates for polynomial evaluation.
All arithmetic is performed mod p (the secp256k1 field prime). This matches the TS SDK’s PointInFiniteField class.
Fields§
§x: BigNumber§y: BigNumberImplementations§
Source§impl PointInFiniteField
impl PointInFiniteField
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Serialize this point as “base58(x).base58(y)”.
Sourcepub fn from_string_repr(s: &str) -> Result<Self, PrimitivesError>
pub fn from_string_repr(s: &str) -> Result<Self, PrimitivesError>
Parse a point from “base58(x).base58(y)” format.
Trait Implementations§
Source§impl Clone for PointInFiniteField
impl Clone for PointInFiniteField
Source§fn clone(&self) -> PointInFiniteField
fn clone(&self) -> PointInFiniteField
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PointInFiniteField
impl !RefUnwindSafe for PointInFiniteField
impl Send for PointInFiniteField
impl Sync for PointInFiniteField
impl Unpin for PointInFiniteField
impl UnsafeUnpin for PointInFiniteField
impl !UnwindSafe for PointInFiniteField
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