Generates a new Private Key, which can be used for accessing PrivMX Bridge.
This method generates a private key using an optional base string (seed) for added randomness. The generated key is returned in WIF (Wallet Import Format).
Deterministically derives a Private Key from a password and salt.
This method generates a private key using a combination of a password and salt. The resulting private key is derived in a deterministic way, ensuring the same password and salt will always produce the same private key.
func derivePrivateKey( from password: String, and salt: String ) throws -> String
Name
Type
Description
password
String
The base string (password) used for private key generation.
salt
String
A string used as salt for private key generation.
Type
Description
String
The derived private key in WIF format (Wallet Import Format) as a `String`.
Deterministically derives a Private Key from a password and salt.
This method generates a private key using a combination of a password and salt. The resulting private key is derived in a deterministic way, ensuring the same password and salt will always produce the same private key.
func derivePrivateKey2( from password: String, and salt: String ) throws -> String
Name
Type
Description
password
String
The base string (password) used for private key generation.
salt
String
A string used as salt for private key generation.
Type
Description
String
The derived private key in WIF format (Wallet Import Format) as a `String`.