Questions tagged [cryptography]

The tag has no usage guidance.

7 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
245 views

Using recover_key with eosjs

I want to validate user signatures in my smart contract. As I understood, I am supposed to do that with recover_key function from crypto.h I am using JavaScript with eosjs and eosjs-ecc for ...
1
vote
1answer
378 views

How to use recover function in crypto.hpp to verify signature and public key

I want to sign some data in client using eosjs-ecc.sign() and result is a string like "SIG_K1_KcTmv..." I want to use the recover_key(const checksum256* digest, const char* sig, size_t siglen, char*...
1
vote
0answers
162 views

how to convert eosio::public_key to c public_key?

In the vote.cpp, they use this type of public key: namespace eosio { struct public_key { unsigned_int type; std::array<char,33> data; friend bool operator == ( const ...
0
votes
0answers
14 views

Does EOS's P2P transmission mechanism support encrypted transmission of information?

I'm not sure if this is already supported. The use case is like this: Using secret-key cryptography, Alice and Bob would have to devise a single cryptographic key that they will both know and use ...
0
votes
0answers
21 views

Is it possible to run RSA verification within contract

I am trying to implement RSA signature verification in a contract but am a bit stuck. I implemented RSA signature verification using BigInt, however, because of this, it is not possible to transfer ...
0
votes
0answers
12 views

How to use md5.sum in eos contract

I search nothing about md5 in eosio source code. When i use external md5 lib, i encounter the link error like this 'env._Z7md5sum6NSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE ...
0
votes
0answers
70 views

EOSIOSwiftVault - “Key generation failed.” How to generate keyPairs?

Following the tutorial in https://github.com/EOSIO/eosio-swift-vault for EosioSwiftVault I wrote the following function: import EosioSwiftVault func getKeyPair() let vault = EosioVault(accessGroup: ...