pub struct Minter { /* private fields */ }Expand description
The bundled minting policy: NOID xdigit + check IDs from a seeded PRNG.
Minting is delegated to moid: a moid::Minter over the canonical
alphabet ([canonical_minter]) driven by a moid::SeededRng. The RNG is
xorshift64 — not cryptographic, and not claimed to be: these are opaque
internal handles whose uniqueness is enforced by rejection, not by entropy.
Both parts are Clone/Debug, which keeps this policy (and any workspace
carrying it) Clone/Debug, and a fixed seed makes tests deterministic. A
deployment wanting stronger opacity (or ARK permalinks, like diaryx)
implements IdentityPolicy itself.
Implementations§
Source§impl Minter
impl Minter
Sourcepub fn lazy(seed: u64) -> Self
pub fn lazy(seed: u64) -> Self
Register only on a durable reference (the recommended default),
randomizing from seed.
Sourcepub fn with(registration: Registration, seed: u64) -> Self
pub fn with(registration: Registration, seed: u64) -> Self
Register on a custom trigger set, randomizing from seed. A zero seed is
nudged off xorshift64’s fixed point by moid::SeededRng.