This is what is reported in the thales documentation:
Private Key Import/Export Private keys can be imported and exported with existing PKCS#11 functions.
They can be imported and exported only if the HSM uses the key wrap model instead of cloning.
Import a key by calling C_Encrypt*() on the serialized key followed by C_UnwrapKey(). Exporting keys by ...
Taking a private key like this, I would like to understand how I can verify if it is valid, what the procedures are, because I would like to write a script to play around with this.
Check if the string has valid Base-58 characters (123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz)
Decode the string to get the byte array using Base-58 encoding ...
I want to change the margin of the elliptic curve to the new N value, while doing so I want to keep the parameters Standard G-point Generator Secp256k1
What do you mean by "margin"?
What you're asking for is a contradiction. The generator order N is a property of the curve and its generator. It is not something that can be chosen independently.
The elliptic curve is secp256k1: y2 = x3 + 7 (mod p)
where the field size is
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F.
The curve order of secp256k1 is:
n = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
The public key P (point) is calculated by multiplying the private key d (scalar) by the generator point G (...
The format written and read by most openssl commandline utilities, although it is textual in nature, is specifically PEM and usually named accordingly, not 'text' or 'txt' which can be (and frequently is) zillions of other formats that aren't PEM and wouldn't be usable here.
Some other things you can do with openssl that might help:
# instead of head/tail/...
Most of the exchanges divide their funds into hotwallets and coldwallets. Hotwallets usually are made of one bigger aggregate-address known publicly and a set of deposit addresses assigned to specific users.
When it comes to coldwallets the case is pretty easy, usually it's a hardware wallet or hardware wallet multisig scheme which exchange only uses ...
Most wallets (and by that, I mean almost all) will not accept a binary 256 bit private key, you will have to convert your 1's and 0's to a WIF format.
Yes. The main idea of mnemonic backups is that the mnemonic encodes a master private key. All other addresses that your wallet generates are derived from this initial secret.
To recover your transaction history and funds, you would need to go further than just to derive a single public key. You would need to rederive all of the wallet's addresses and then ...