ECC
ECC
In order to understand hex and type parameters read HASH
ECIES
Description: Public-key cryptosystem
Problem: Discrete logarithm problem
Uses: Encrypt
It only supports "type":"string"
ECDSA
Description: Public-key cryptosystem
Problem: Discrete logarithm problem
Uses: Digital signatures
It only supports "type":"string"
How to ???
In this example we generate a ECC key (secp256k1), sign and validate "Hello world!" string, we enc and dec "Hello world!" string.
On "curve" can be one of {"brainpoolP512r1","secp521r1","brainpoolP384r1","secp384r1","brainpoolP320r1","brainpoolP256r1", "secp256k1","sect571r1","sect571k1","sect409r1","sect409k1","sect283r1","sect283k1"}
The default hash function to sign is sha3256, you can change by adding "hashsign" and can be one of {"sha3_512","sha3_384","sha3_256","sha3_224","sha_512","sha_384","sha_256","sha_224","sha_1","whirlpool"}
Json to gen
Json to enc
Json to dec
Json to sign
Json to verify
Last updated
Was this helpful?