[][src]Function wallet_gen::cryptonote::from_seed

pub fn from_seed(coin: Coin, seed: [u8; 32]) -> Result<Wallet>

Creates a new Cryptonote wallet using the Electrum/Deterministic style, from the given random seed.

The "public" and "private" keys are only that of the spend keypair. To determine the view keys, you must perform the keccak256 hash on the private key and use the sc_reduce32 transformation to make the result usable as an ed25519 private key.