pub struct StoredTrail {
pub ticker: String,
pub name: String,
pub supply: u64,
pub privkey: String,
pub pubkey_base: String,
pub states: Vec<Mrc20State>,
pub state_strings: Vec<String>,
pub current_txid: String,
pub current_vout: u32,
pub current_amount: u64,
pub network: String,
pub date_created: String,
}Expand description
The persisted trail — the public Mrc20Trail plus the issuer secret and
creation timestamp (JSS stores all of these in one JSON blob,
token.js:290-303). Serialises with camelCase keys to match the JSS file
format byte-for-byte so a JSS-written trail loads here and vice versa.
Fields§
§ticker: String§name: String§supply: u64§privkey: StringIssuer private key (64-char hex). Secret — never placed on the
public Mrc20Trail nor in any portable proof.
pubkey_base: String§states: Vec<Mrc20State>§state_strings: Vec<String>§current_txid: String§current_vout: u32§current_amount: u64§network: String§date_created: StringImplementations§
Source§impl StoredTrail
impl StoredTrail
Sourcepub fn to_public(&self) -> Mrc20Trail
pub fn to_public(&self) -> Mrc20Trail
Project to the public Mrc20Trail (drops the secret privkey).
Sourcepub fn merge_public(&mut self, public: &Mrc20Trail)
pub fn merge_public(&mut self, public: &Mrc20Trail)
Re-absorb a public Mrc20Trail (e.g. the appended trail returned by a
transfer/anchor) while keeping this trail’s secret privkey.
Trait Implementations§
Source§impl Clone for StoredTrail
impl Clone for StoredTrail
Source§fn clone(&self) -> StoredTrail
fn clone(&self) -> StoredTrail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredTrail
impl Debug for StoredTrail
Source§impl<'de> Deserialize<'de> for StoredTrail
impl<'de> Deserialize<'de> for StoredTrail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StoredTrail
impl RefUnwindSafe for StoredTrail
impl Send for StoredTrail
impl Sync for StoredTrail
impl Unpin for StoredTrail
impl UnsafeUnpin for StoredTrail
impl UnwindSafe for StoredTrail
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