Skip to content

bx ec multiply secrets

evoskuil edited this page Oct 17, 2014 · 7 revisions

Calculate the EC function (SECRET * SECRET) % curve-order.

$ bx ec-multiply-secrets --help
Usage: bx ec-multiply-secrets [-h] [--config VALUE] [SECRET]...          

Info: Calculate the EC function (SECRET * SECRET) % curve-order.         

Options (named):

-c [--config]        The path to the configuration settings file.        
-h [--help]          Get a description and instructions for this command.

Arguments (positional):

SECRET               The set of Base16 EC secrets to multiply. If not    
                     specified the secrets are read from STDIN.

Example 1

one secret (SECRET^1)

$ bx ec-multiply-secrets 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006

Example 2

two same secrets (SECRET^2)

$ bx ec-multiply-secrets 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
e5b87c7917f8414d2fa5caa32ea61b06fca755fee6a113179db70f5e0d5393ba

Example 3

three same secrets (SECRET^3)

$ bx ec-multiply-secrets 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006
1da46d54db3e774fe81dfeea880677b805d2ce041c1e2011b6362ee11df132d8

Example 4

three secrets (SECRET * (SECRET^2))

$ bx ec-multiply-secrets 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006 e5b87c7917f8414d2fa5caa32ea61b06fca755fee6a113179db70f5e0d5393ba
1da46d54db3e774fe81dfeea880677b805d2ce041c1e2011b6362ee11df132d8

Example 5

two secrets (SECRET * 1)

$ bx ec-multiply-secrets 1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006 0000000000000000000000000000000000000000000000000000000000000001
1bab84e687e36514eeaf5a017c30d32c1f59dd4ea6629da7970ca374513dd006

BX Menu

Clone this wiki locally