]> Repositorios git - scryer-prolog.git/commitdiff
use secp256k1 in the example
authorMarkus Triska <[email protected]>
Sun, 7 Jun 2020 09:02:18 +0000 (11:02 +0200)
committerMarkus Triska <[email protected]>
Sun, 7 Jun 2020 09:04:24 +0000 (11:04 +0200)
src/prolog/lib/crypto.pl

index 922020463835b5ad6da8783b00aed36d749fec04..7d099d2318918124cd52586269f3d2ca48755ab6 100644 (file)
@@ -689,7 +689,7 @@ ed25519_verify(Key0, Data0, Signature0, Options) :-
 
    Sample use: Establishing a shared secret S, using ECDH key exchange.
 
-    ?- crypto_name_curve(Name, C),
+    ?- crypto_name_curve(secp256k1, C),
        crypto_curve_generator(C, Generator),
        PrivateKey = 10,
        crypto_curve_scalar_mult(C, PrivateKey, Generator, PublicKey),