Comment puis-je dériver une clé publique d'une clé privée connue?
1 réponses
- votes
-
- 2019-08-08
Je crois que vouspouvez utiliser PyTezos et à savoir ce Méthode
@classmethod def from_key(cls, key, passphrase=''): """ Creates a key object from a base58 encoded key. :param key: a public or secret key in base58 encoding :param passphrase: the passphrase used if the key provided is an encrypted private key """
I believe you can use pytezos and namely this method
@classmethod def from_key(cls, key, passphrase=''): """ Creates a key object from a base58 encoded key. :param key: a public or secret key in base58 encoding :param passphrase: the passphrase used if the key provided is an encrypted private key """
-
Enfait,ce dontj'avaisbesoinexactement étaiten fonction "de_secret_key" dumêmefichier à PyTezos.La ligne ci-dessousme laissera la reproduireen Java:Actually what I needed exactly was in function "from_secret_key" of the same file in PyTezos. The line below will let me reproduce it in Java:
- 1
- 2019-08-08
- Luiz Milfont
-
Public_key=pysodium.crypto_sign_sk_to_pk (sk=secrète_key)public_key = pysodium.crypto_sign_sk_to_pk(sk=secret_key)
- 1
- 2019-08-08
- Luiz Milfont
EDPK d'un EDSK,programmatique?