… | |
… | |
115 | source of key material, you can simply generate 32 octets from it |
115 | source of key material, you can simply generate 32 octets from it |
116 | and use this as your secret key. |
116 | and use this as your secret key. |
117 | |
117 | |
118 | $public_key = Crypt::Ed25519::eddsa_public_key $secret_key |
118 | $public_key = Crypt::Ed25519::eddsa_public_key $secret_key |
119 | Takes a secret key generated by "Crypt::Ed25519::eddsa_secret_key" |
119 | Takes a secret key generated by "Crypt::Ed25519::eddsa_secret_key" |
120 | and returns the corresponding $public_key. The derivation ios |
120 | and returns the corresponding $public_key. The derivation is |
121 | deterministic, i.e. the $public_key generated for a specific |
121 | deterministic, i.e. the $public_key generated for a specific |
122 | $secret_key is always the same. |
122 | $secret_key is always the same. |
123 | |
123 | |
124 | This public key corresponds to the public key in the Ed25519 API |
124 | This public key corresponds to the public key in the Ed25519 API |
125 | above. |
125 | above. |