Questions tagged [cryptography]

Discipline or techniques employed in protecting integrity or secrecy of electronic messages by converting them into unreadable (cipher text) form.

Filter by
Sorted by
Tagged with
1
vote
1answer
13 views

How easy is to sell your art as NFT and make money and does it have to be an interesting art OR rather a unique art?

I'm new to cryptocurrency and NFT. (Please correct me where I have misunderstood something. I am making some assumptions too) Now I'm hearing everyone around me talking about NFT. I couldn't resist ...
1
vote
0answers
11 views

Decrypting data on chain and verifying the decryption is correct

I already know decrypting data on chain will reveal the key and the plaintext to everyone and for my use case that is exactly what I want. I want to be able to build a contract that has a pre-...
0
votes
0answers
26 views

Convert string to byte array and verify signature with go ethereum

I've been following this tutorial to generate a signature and a hash. This step all looks fine. The result are these 2 strings that I return: { "hash": "...
0
votes
1answer
43 views

Minimum and Maximum Values Returned by keccak256

In the statement: uint256 x = uint256(keccak256(abi.encodePacked(valuesToEncode))); What’s the minimum and maximum possible values for x? When I looped random valuesToEncode the smallest resulting ...
0
votes
2answers
26 views

Ethereum is not a cryptocurrency?

I am not a fan of cryptocurrencies at all... In my opinion their purpose is just gambling with extra steps. So I also never really looked into them. But recently I started reading about Ethereum and ...
0
votes
0answers
9 views

Tron api request limit

in order to get information from tron we need it's api but the question is how many request can you have with a Tron API for a crypto exchange? what about BNB API? how many in BNB request limits?
1
vote
0answers
22 views

how do exchanges move their users assets?

do big exchanges move their users assets from HD wallets different dresses to a main wallet address ? to eventually move it to cold wallet ? if the answer is YES how do they do it? that's a lot of on ...
0
votes
0answers
32 views

exchange gather all hd wallet adresses fund

every exchange has a HD wallet that stores the fund an assets of their clients but sometimes in order to keep peoples coins safe the exchanges have to move their assets to more secure wallet like ...
0
votes
0answers
28 views

Curious about the Math that makes Blockchain/Ethereum work ! Any good resources to learn it?

A bit of a background about me ; Computer Engineer but during my studies i didn't dive too deep into the maths , especially the crypto maths that makes the blockchain and cryptography work looking for ...
1
vote
0answers
33 views

How can an Ethereum address start with 0x5555555555? [duplicate]

Ethereum wallet addresses start with 0x followed by random number and letters as a hexadecimal string. How is it possible then that there are addresses visible on Etherscan that seem to be "...
1
vote
0answers
15 views

Is there only one valid r,s,parity for a given transaction signed by one private key?

As I understand it in secp256k1 there are infinitely many secrets which, for the same message to be signed, can lead to a valid signature. So the same private key can sign the exact same message and ...
0
votes
0answers
22 views

Do I need the IV, Ciphertext, and MAC to decrypt a message? Are any of these optional?

This it the encrypted message: { iv: '06ec88010977a8867a8851771b0558bd', ephemPublicKey: '...
0
votes
0answers
72 views

Trust Wallet mnemonic gives binascii.Error: Non-hexadecimal digit found

It's impossible to extract the private key from Trust Wallet. Trying to use their mnemonic in python gives me this error. There isn't a fully working solution on stack for this particular problem. ...
0
votes
0answers
10 views

What is a "short commitment" or "short proof"?

I'm trying to understand how RSA accumulators work, and I am unable to find what people mean when they say "short commitment" or "short proof." Does it refer a commitment or proof ...
0
votes
1answer
34 views

Smart contract Diffie-Hellman elliptic curve key exchange

Two accounts want to use a smart contract to exchange (with SSTORE) the public parameters for a Diffie-Hellman key exchange, and use their private keys to generate the shared symmetric key. Is there ...
0
votes
1answer
49 views

Can I store a "truly private" variable with EIP712?

I've come across EIP712 utilities in open zepplin. I also found a contract using a draft version here. I've modified their contract to something more akin to what I want to do. I was curious about ...
2
votes
1answer
63 views

How to think about the permanence of cryptographically signed messages?

I'm making a couple of assumptions about signing messages from an ethereum wallet (Metamask), like the one in the screenshot: "By default" -- without extra work on the part of 1inch -- no ...
1
vote
0answers
10 views

Understanding Hash Lock Atomic Swaps

I have trouble understanding how exactly atomic swaps take place in HTLCs. Let's take the generic example: Alice wants to trade 1 BTC with Bob in exchange for 15 ETH. Alice creates a contract where ...
0
votes
1answer
20 views

Some problem with key storage

Is there any solution if the key is lost in Ethereum or Bitcoin? Can I use the some algorithm, which can bind key and biometrics, to solve this problem? Why don't Ethereum/Bitcoin use it?
0
votes
0answers
15 views

Authenticating tokenUri before minting?

i'm tinkering with a concept for NFT minting with generative music and art and trying to work out the best way to make sure that people can only mint essentially ‘approved’ content. I.e from the ...
0
votes
0answers
32 views

ERC-721 metadata encrypted: how to deal with the transfer of ownership

I'm struggling with the following problem: I want a ERC-721 with some metadata encrypted so that only the owner can access it. The issue is: at the time of transfer, how can the metadata be encrypt ...
0
votes
0answers
14 views

Is it cryptographically secure to encrypt messages using Ethereum EOA addresses?

I understand that it is possible to do this, and have messages decrypted by the private key of an Ethereum account, but I am wondering if it is cryptographically secure (or ideally, how secure) it is ...
0
votes
1answer
169 views

Java Keccak 256 hashing implementation of multiple inputs

What's the best way to achieve the equivalent hashing in Java as below in Solidity? keccak256(abi.encodePacked(arg1,arg2,...))
0
votes
1answer
49 views

Decentralized Mobile Wallets (esp. Metamask): Security of Private Keys

I'm interested in the Metamask App (Android) and I'm wondering how exactly the sending of funds works: Since the 12 words (and the corresponding private key) are generated on my mobile device (correct?...
1
vote
1answer
36 views

Is it possible to create a vault that will open itself after a countdown (dead man's switch) on blockchain?

I know I can put an encrypted data and a timer in the contract, but what about the key? People can't know the key. It must be only used when the countdown ends, automatically.
1
vote
1answer
2k views

How to set private key for Ethers Signer

I would like to invoke a smart contract function using Ethers library. Since I have my own node I'm connecting using RPC connection and now I would like to invoke a transfer function (of an ERC20 ...
1
vote
0answers
33 views

Expiry Date for Signature

I am signing an arbitrary string by const ts = Date.now(); const hash = await web3.utils.sha3(anystring+ts); const sign = await web3.eth.personal.sign(hash, account); and check the address by const ...
1
vote
0answers
158 views

Public Key Cryptography in Solidity

I'm trying to implement a contract that stores 2 public keys from 2 separate entities. Data delivery between two entities will be securely sent by using each other's public key. However, there is a ...
0
votes
1answer
54 views

For a given contract address, does a private key exist that maps to it?

I was reading this section from Mastering Ethereum. This specific part caught my attention: However, not all Ethereum addresses represent public–private key pairs; they can also represent contracts, ...
0
votes
0answers
19 views

Can anyone assist with this contract code project of transferring any deposited eth in my contract to another contract?

const TX = require('ethereumjs-tx').Transaction let Web3 = require('web3') let url ='HTTP://127.0.0.1:7545' let web3 = new Web3(url) const contract_account1 ='...
0
votes
0answers
2k views

My metamask was hacked. How to safely remove my staked tokens?

Yesterday my metamask was hacked. It happened when I was adding metamask to a reformatted laptop. My working theory is that I downloaded an illegal copy of metamask from chrome and that stole my funds....
0
votes
0answers
15 views

Does Dapps such as Uniswap and Sushiswap transactions are made 100% on-chain?

I'm just wondering, it looks like Dapps such as Uniswap and Sushiswap transactions are made 100% on-chain, because some claimed those apps are 100% decentralized. Is it true that all transactions are ...
2
votes
1answer
42 views

Can you potentially mine for anything?

This is more of a general "blockchain" question and not specific to Ethereum so if I'm off topic here I would appreciate it if you could direct me to a more relevant stackexchange maybe. On ...
0
votes
1answer
39 views

How i can start Trading My Token

I have created token also its live on BSCSCAN , how I can start trading on it. I tried via pancakes but there I have to deposit BNB for LP is there any other way?
0
votes
1answer
54 views

How i can burn my Tokens?

how i can burn my tokens please help me also when my token is live on bscscan will its graph live also or i have to make >? and how i can make my tokens on sale like i have to make another contract ...
4
votes
1answer
155 views

How to convert public key (64 bytes) to compressed public key (33 bytes)

I currently have a generated 64-byte public key that has been recovered from an Ethereum transaction. How do I convert this key into a 33-byte compressed public-key? The problem I'm having seems ...
4
votes
2answers
6k views

Defi-Staking is it 100% safe?

I was reading on crypto staking, more precisely Defi-Staking on Binance: https://www.binance.com/en/defi-staking While I am not a native english speaker I could understand that there is no risk in ...
1
vote
0answers
19 views

How to store in `address` two kinds of addresses at once?

I have a set of address values, each of them can contain a real Ethereum account (user account or contract) or a "virtual" address (an address pseudo-randomly generated by my contract, in ...
0
votes
0answers
41 views

ETH sent to an address that was generated for contracts, how can I recover?

I have transferred money to an ethereum address that belongs to the smart contracts. const priv = "0x" + crypto.randomBytes(32).toString("hex"); const pub = "0x" + util....
0
votes
2answers
25 views

can we create our own cryptography system and use it with ethereum or hyperledger fabric frameworks?

i have a project where we have to build a fuzzy encryption for biomedical data like DNA and use it on blockchain for storage. So is it possible to create our own cryptography scheme on Ethereum and ...
1
vote
0answers
61 views

Deriving a Bitcoin Address from Ethereum Private Key

There have been many answers about how to derive an Ethereum Address from a Bitcoin private key, but a curious problem has led me to ask how one would do the reverse. I'm sure it's possible because ...
1
vote
1answer
51 views

Messaging platform with public-private key pairs as identifier [closed]

Is there any platform available for Ethereum address 0x1d53.. to message 0xcc23..., and so on? It seems like there would be a lot of demand for something like that, which suggests it exists. Off-chain,...
0
votes
1answer
38 views

Cryptographic limit to total accounts on Ethereum

Factoring in birth day attacks and all that, with 256-bit elliptic curve cryptography, what is the maximum number of accounts that are secure? It isn't 2^256 since then any time you generate a random ...
0
votes
1answer
31 views

Cryptographic hash of the entire Ethereum database

I need a cryptographic hash of the entire Ethereum database (of the information in all blocks up to a certain block number). Is there a service that calculates this hash?
0
votes
1answer
121 views

Blockchain without cryptocurrency

I am new to blockchain and am having certain doubts. Can we substitute cryptocurrency to carry out blockchain operations in any way ? Actually what i feel is that the volatility in cryptocurrencies ...
2
votes
0answers
50 views

how to calculate the message part for pedersen hash in solidity

I am trying to implement pedersen hash using solidity. Is it possible to implement and how to split the message according to the conditions of pedersen hash.
1
vote
1answer
48 views

Does the term "Ethereum ECDSA signature" have a consistent meaning?

If you were writing some instructions and one of them was: Provide the Ethereum ECDSA signature of the file using the person's Ethereum address. Would the above instruction have a consistent meaning ...
5
votes
1answer
158 views

What is the v part of transaction signature?

If I understand correctly when we send a transaction, we send an unsigned part m and a signature consisting of v, r, s. Each node verifies the signature by checking: hash(m,r) * publicKey + r = s * ...
1
vote
0answers
97 views

How to compute pairing in a smart contract

I am working on the elliptic curve and pairing stuff in Ethereum smart contract. How can I compute pairing such e(p1,p2)? I know that we have a pre-compile pairing check in Ethereum client which is ...
4
votes
0answers
489 views

How to get ethereumjs-abi's soliditySHA3 and web3 sign equivalents in ethersjs?

Hello I'd like to create a hash using ethersjs that encodes a number of arguments. I previously used ethereumjs-abi's soliditySHA3 function but not sure which of ethersjs crypto utilities is the ...