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
0 votes
1 answer
20 views

How to generate a valid Private Key using CLI?

I am trying to create a private key which is valid and can be used for production work. What tool should I use to create a Valid Private key on my system using Terminal/CLI?
Megabyte's user avatar
0 votes
2 answers
27 views

What are the best up-to-date secure approaches of generating pseudorandom number in Solidity? [duplicate]

I am thinking about creating a lottery with more than one winner and one round for users. Please don't consider usual 'commit-reveal' scheme. However, person can claim rewards on their own at the end ...
Victor's user avatar
  • 13
1 vote
1 answer
103 views

I was trying to convert private key of an account to its public key but getting an error

code: const accountFrom = web3.eth.accounts.privateKeyToAccount(privateKey); getting error: throw new web3_errors_1.InvalidPrivateKeyError(); ^ InvalidPrivateKeyError: Invalid Private Key, Not a ...
Aritra Dam's user avatar
2 votes
1 answer
77 views

Generate r, s, v permit signature variables off chain using Golang

I'm trying to generate a signature in line with https://eips.ethereum.org/EIPS/eip-712 so that I can permit spending of tokens without having to call Approve() first. this is my code so far: func ...
PopFendi's user avatar
0 votes
0 answers
11 views

Treshold signature computing

I have two questions: Can someone point me to some solution providing multi-party {t,n}-threshold ECDSA? I imagine that such scehemes works first by creating an ECDSA private key then sharding it to ...
Hristo Todorov's user avatar
0 votes
1 answer
37 views

How do you get the x and y coordinates of an uncompressed public key?

the question says it all. I want to get the x and y coordinates of an uncompressed public key such as this one but I'm not sure how: ...
xmrNoob69's user avatar
1 vote
0 answers
10 views

Implementation for Alin Tomescu's Aggregatable Subvector Commitments for Stateless Cryptocurrencies

I’m a cryptography researcher attempting to understand the problem of statelessness. I came across this paper by Alin Tomescu, et al titled “Aggregatable Subvector Commitments for Stateless ...
Adammbq's user avatar
  • 11
0 votes
1 answer
45 views

Encryption / Decryption file using metamask pub & private keys

Hey Folks, I am trying to encrypt my file before uploading it on ipfs using metamask, then I want to decrypt this file using metamask. Can any one has idea how can I achieve this.
Aayush Kasera's user avatar
0 votes
3 answers
284 views

Is it possible to brute force the missing part of my Ethereum private key?

I'm missing 22 characters out of 64 characters of my private key. I'm pretty sure I also know the first four, leaving out only 18 characters to find. Are there any ways to brute force this against my ...
cin's user avatar
  • 1
0 votes
0 answers
17 views

i want to build hardware wallet from scratch

I hope this message finds you well. I am currently embarking on a project to build my own hardware wallet, similar to popular devices like the Ledger. Firstly, I'd like to know what components are ...
Gaara's user avatar
  • 1
1 vote
1 answer
48 views

Use private key to encode your own public address

Let's say I use a wallet's private key to encode/digitally sign it's own public address, meaning that upon using its public address to decrypt that encoded/signed data, the result would be the public ...
user2340939's user avatar
1 vote
0 answers
66 views

Can I use a BLS12-381 private key to sign Ethereum transactions?

I'm new to cryptography and I've recently been studying BLS signatures. Please forgive me if I make any mistakes while writing. I've tried generating a BLS key pair and using the private key to derive ...
pgermani's user avatar
0 votes
1 answer
18 views

decode proposer pub key format to get its address

I want to get the address of the following public key for a proposer provided by the beacon node: 0x8f97b04a965ffe46247ae428892e09499511e94f6dee5366e710eab937b42bfec3861466e6575a69b39c5d23e0282bcf ...
Plus Ultra's user avatar
0 votes
1 answer
261 views

How to get Publickey of metamask by Public address?

I want to get Publickey of metamask by Public address
laravel Developer's user avatar
0 votes
2 answers
43 views

what is the best technique to encrypt any document before storing (uploading) on IPFS?

I want to encrypt document before uploading to IPFS and enable more than user to decrypt it and note that the number of users may increase or decrease in any time?
laravel Developer's user avatar
1 vote
0 answers
175 views

How to solve this error MetaMask - RPC Error: The requested account and/or method has not been authorized by the user?

I used below code from account 1 on metamask to encrypt certain text let encryptionPublicKey; await window.ethereum.request({ method: 'eth_getEncryptionPublicKey', params: [account1], // you must ...
laravel Developer's user avatar
0 votes
1 answer
59 views

Is there a Tool to find SUM of outgoing and Incoming transactions in Etherscan?

I want to find out in monetary value how much has been transferred out a Wallet address or contract address on Etherscan. I know I can see the ERC20 outgoing and transactions or view all outgoing ...
Zeeison's user avatar
1 vote
1 answer
433 views

Retrieve Ethereum public key from transaction data

I'm trying to get an Ethereum address public key from its previous transaction data. What I'm trying to achieve is to be able to get this data from a block explorer API like Etherscan API and then ...
m0j1's user avatar
  • 167
0 votes
0 answers
333 views

How to get signed transaction hash - In order to retrieve an Ethereum address's public key

I'm trying to find a way to get the public key of an Ethereum's address. I found out that if an address has an outgoing transaction it's possible. I used Etherscan's "txlist" to get the ...
m0j1's user avatar
  • 167
0 votes
2 answers
389 views

Blockhash and Block Timestamp manipulation in PoS

I was looking at generating some psuedo-random numbers in an Etheresum smart contract and understand that it is possible for miners to manipulate the blockhash and block.timestamp. The Solidity ...
chriscrutt's user avatar
0 votes
0 answers
64 views

How Threshold Signatures have the same Address / Public Key

I am learning about threshold signatures and their use cases on EVM Blockchains. I am trying to understand how they are able to always have the same address. Is the following correct? It is my ...
Anters Bear's user avatar
0 votes
0 answers
53 views

How can I find out the crypto exchange name from the below ERC20 crypto address?

How can I find out the crypto exchange name from the below ERC20 crypto addresses? I) 0xc261b02dafbe844b6b30d96bcaba14f2a04e3cc8 II) 0x699076cBd255C4e1F779C7e3CAstrong textE88e09846aDF83
pam's user avatar
  • 1
1 vote
2 answers
60 views

How can someone prove they are 18+ by smart contract?

Smart contracts are permission-less (no KYC) and decentralized, therefore, censorship resistant. IRL Smart contract applications range from ownership of digital paintings to proof of birth ...
user610620's user avatar
  • 1,446
1 vote
0 answers
15 views

Does anyone have suggestions on where i can get a VHDL implementation of any Elliptical Curve algorithm?

I know the EC is an old algorithm, but it seems I cant find the algorithm in VHDL. Any help will be highly appreciated.
Joel254's user avatar
  • 21
0 votes
1 answer
305 views

ETH ECDSA r reuse / nonce reuse solving

Reference article: https://bertcmiller.com/2021/12/28/glimpse_nonce_reuse.html Reference repo: https://github.com/Marsh61/ECDSA-Nonce-Reuse-Exploit-Example/blob/master/Attack-Main.py Objective: Solve ...
Brianleect's user avatar
0 votes
0 answers
10 views

How to withdra goerlieth from metamask? [duplicate]

Can I withdraw goerliETH TO BINANCE OR What is the use of GoerliETH IHAVE 0.17700($276)GoerliETH
Krishna hn's user avatar
1 vote
0 answers
28 views

Uncertain MerkleTree Algorithm

I'm building my own MerkleTree algorithm however I found out that the root value generated from my MK algorithm is not the same that I generated from the online generator https://prathamudeshmukh....
David's user avatar
  • 173
2 votes
1 answer
44 views

What information can I get from a hash?

Say i have a hash - I think sha256/keccak: 90ad6dec4ce7167e92c7a7122232d48a1fd5e6c5e81cb3f45c147424b6728437 What do i do with it? Is there something on etherscan that can decipher it or show what it ...
LazyOctopus's user avatar
2 votes
1 answer
470 views

How do I create a signature with Web3.js which EthCrypto can process properly?

I am building a Dapp. In the front end, I use Web3.js to generate a signature with Metamask: const accounts = await window.ethereum.request({method: 'eth_requestAccounts'}); const account = accounts[0]...
Boris K's user avatar
  • 187
1 vote
2 answers
486 views

Can I roll multiple transactions into one?

I wonder whether it is possible to roll multiple transactions into one transaction and post it on the chain, similar behavior to L2 chains. I will have a smart contract where there might be a high ...
Ahmet Yazıcı's user avatar
2 votes
0 answers
91 views

How to derive ethereum address from Elliptic Curve secp256k1 - SHA256 Digest

I am using google cloud key management service to generate and manage keys. I have generated the HSM key for Asymmetric signing using Elliptic Curve secp256k1 - SHA256 Digest. The public key is ...
DIGVJSS's user avatar
  • 200
1 vote
1 answer
85 views

Cannot generate Ethereum address from private key

I am trying to use the Bitcoin ECDSA Library to generate an Ethereum address from a private key. I took the private key from my Metamask wallet then used the following code to generate the public key. ...
Melkor's user avatar
  • 121
0 votes
0 answers
26 views

Allow decryption key to be known only after a certain time

We have a smart contract containing encrypted data that should remain encrypted till a specified timeLimit. Then, the decryption key would be made public, for everyone to read that data. We want to ...
explorer's user avatar
4 votes
2 answers
456 views

Convert EOA to contract account

EIP-2026 mentions several ways of creating a new account. One way is by: (...) converting a non-countract account into a contract account (...) Is this a hypothetical scenario or could this be done ...
Markus Schick's user avatar
1 vote
2 answers
181 views

Did anyone succeed to implement EdDSA verification using solidity?

I am trying to implement EdDSA verification using solidity as all my contracts are written in solidity.I wanted to upgrade it to use EdDSA algorithm, but I found no packages that support it that are ...
Yashwanth Reddy's user avatar
0 votes
1 answer
256 views

What is the simplest way to obtain my ethereum public key, provided that i have the private key? [duplicate]

I have been looking for an easy way to get the public key of my ethereum wallet From reading a bit on how ethereum wallets work, I understand that a Wallet Address in ethereum is actually derived from ...
Muhammad Yasir's user avatar
1 vote
0 answers
387 views

Authorization using Metamask - Signing and validating - can you find any weaknesses in this approach?

I would like to develop a webapp (frontend: ReactJs, backend: Spring Boot) in which users can interact without logging in in the traditional sense of the word (username + password) but instead using ...
user19505302's user avatar
1 vote
2 answers
69 views

Is it possible to decrypt cypher by signing from metamask?

The idea is to encrypt the message with the user's public key. Then user receives the encrypted message and needs to decrypt having metamask wallet connected. But we cannot get the user's private key ...
Abishek Bashyal's user avatar
0 votes
2 answers
30 views

Encryption or hashing with data

The data which we send via Ethereum blockchain , is it ecrypted and sent to sender only & never stored on blockchain OR is it hashed ? Hashing is a one way process . It means that the data once ...
Brijesh's user avatar
  • 43
0 votes
1 answer
98 views

Hiding partial results in a smart contract

I have the following use case. There's a smart contract based game where everyone can award 1 point to a color. At the end of the game, the smart contract reveals which color is the most popular/has ...
AndrewHoover898's user avatar
0 votes
2 answers
268 views

Price calculation of the crypto currency

I am learning solidity. I want to ask how does the value of the token is calculated. Like how does the value of a coin increase and decrease in a programmatical way? which technology or method is used ...
Mujtaba Rehman's user avatar
1 vote
0 answers
36 views

How to securly perform arbitrary operations on the value of confidential data in a Solidity smart contract?

Consider the following Solidity code: // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract ConfidentialStorage { string confidential; function setConfidential(string memory str) ...
goodUser's user avatar
  • 131
0 votes
1 answer
349 views

What makes an Ethereum keypair valid?

As I understand Ethereum (and Bitcoin) use the ECDSA algorithm which relies on the secp256k1 curve. The secp256k1 curve is what generates the public keys given a private key. However, recently, I ...
vw1262's user avatar
  • 15
1 vote
1 answer
3k views

How to recover an ethers.js signed message in go-ethereum?

I generated a signed message using ethers.js. Here's how I did that: const provider = new ethers.providers.Web3Provider(web3Provider.provider); const signer = provider.getSigner(); await signer....
hexcowboy's user avatar
0 votes
1 answer
285 views

Encrypt a message without directly using the private key of the metamask in the code

I have a question if anyone can help me! so I want to encrypt a message with my private key sign it and then send it to a person, the thing i see that it is not advisable to veil the private key of ...
Meriem Bader's user avatar
3 votes
0 answers
162 views

How to store secure private keys on a server, that are being used for 'gasless' minting using EIP-712 based messages?

NOTE: By 'gasless' I mean that I won't have to mint the tokens for the user, they can mint it themselves provided they have a valid signature. Hi, In my NFT (ERC-721) contract, I'm allowing callers to ...
Sol Man's user avatar
  • 31
0 votes
0 answers
24 views

Go Ethereum "invalid signature recovery id" when recovery byte is >= 4 [duplicate]

I have a signed message that was generated by Metamask. It looks like this: ...
hexcowboy's user avatar
3 votes
2 answers
441 views

How do you make a signature valid for only one transaction?

I asked this question before but I worded it ambiguosly. I have a function in a smartcontract that should only be accessible by users who have a signature, issued by the contract owner. The goal is, ...
HappyHippo's user avatar
0 votes
2 answers
58 views

unable to validate signature - recovered key doesn't match the actual key?

I'm trying to use ethereumjs to verify a signature. The signature verifies successfully with https://etherscan.io/verifySig using the following parameters: [Step 1] Address: ...
neubert's user avatar
  • 103
0 votes
1 answer
150 views

smart contract generated transaction

As I understand the smart contract is triggered by some action and executes another action based on input. If I want to send the amount of coin to the target address in case of some action so, the ...
aze2201's user avatar
  • 101

1
2 3 4 5