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
0 answers
16 views

Fotomatriza ist Encoding

Фотоматрицу кодируют на заводе, и драйверы к фотоматрице устанавливают на заводе. Они (фотоматрицы) изготовлены из квантовых полупроводников очень маленького размера и работают с информацией через ...
PLUTON-128-HIQSY's user avatar
0 votes
0 answers
21 views

Is it still possible to swap erc20 Theta tokens to Theta main net tokens?

Is it still possible to swap erc20 Theta tokens to Theta main net tokens? I have some stored on a ledger that I forgot about and would like to change them obviously! Im hoping this is still possible. ...
user133593's user avatar
0 votes
0 answers
5 views

Implement a secure communication mechanism between the smart contract and the client."

I'm developing a dapp to allow users to chat with each other. The problem is that I need to ensure the security of the transmitted messages. What mechanism can be used to make the communication ...
grn.1002's user avatar
2 votes
0 answers
106 views

Split a private key into shares for mpc wallet with tinysig

I'm trying to split a private key into shares using tinysig but am having difficulty. I.e. I'm trying to create an MPC wallet. Ultimately I want to generate a private key, split it into two shares, A ...
Ryan's user avatar
  • 92
0 votes
1 answer
42 views

recoverPublicKey() returns undefined

function hashData(){ const data = { sendAmount: sendAmount, recipient: recipient, sender: address } return keccak256(utf8ToBytes(JSON.stringify(data))); } function ...
derkangkino's user avatar
0 votes
1 answer
31 views

I'm new to web3 and blockchain development [duplicate]

I'm just starting out in web3 and blockchain technology. Can someone recommend any resources and where to start from
OLAWALE OLALEKE's user avatar
1 vote
2 answers
94 views

Sign a transaction without loading full private key

It is possible to sign a transaction by doing: from eth_account import Account import web3 as Web3 web3 = Web3() my_private_key = Account.from_key('0x...') signed = web3.eth.account.sign_transaction(...
Ryan's user avatar
  • 92
3 votes
0 answers
69 views

BLS signatures and the Splitting Zero attack

In 2021 security researcher Quan Thoi Minh Nguyen published two papers ("0" and "Attacks and weaknesses of BLS aggregate signatures") where he highlighted some security weaknesses ...
BrainGrind's user avatar
1 vote
0 answers
24 views

can a private key have 2 public keys? [duplicate]

The deployment script for a contract has the following logic. Take private key from database -> Create an account using Web3.eth.accounts.create() -> set the account as Admin in database -> ...
Valli Nayaki's user avatar
0 votes
1 answer
27 views

How signature verification works?

I have read that to sign a message we need the private key but in the below code snippet hasing is done in the 'getMessageHash' function and 'signing' is done in the 'getEthSignedMessageHash' function....
kumar's user avatar
  • 61
0 votes
0 answers
17 views

Why registerAllowedOrderSigner function doesnt work

i created a limit order. Then what I wanted is to give access to another address who can sign the order on behalf of me. I called the registerAllowedOrderSigner method from the proxy contract and ...
sayantan mondal's user avatar
0 votes
1 answer
43 views

To what extent was the block hash malleable under proof-of-work?

To emphasise, I’m solely interested in blocks prior to the transition to PoS. Given that a miner making any change to the block header would have resulted in a completely different hash, my thinking ...
user72364's user avatar
  • 135
0 votes
0 answers
18 views

How can i validate bulk orders on nft marketplace contract?

I have a nft marketplace contract. To list nfts i am getting the order details and a signature base on order details. And list the nft on FE. When some user want to buy it i simple sent signature and ...
Furkan Sezal's user avatar
0 votes
1 answer
116 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
57 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
2 answers
809 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
234 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
12 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
212 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
213 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
842 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
38 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
141 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
2 votes
1 answer
181 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
31 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
450 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
48 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
304 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
123 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
843 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
544 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
634 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
98 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
79 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,518
1 vote
0 answers
17 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
447 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
1 vote
0 answers
30 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
48 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
712 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
  • 197
1 vote
2 answers
645 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
1 answer
116 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
132 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
642 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
2 votes
4 answers
363 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
345 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
543 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
93 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
31 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

1
2 3 4 5